|
| 1 | +import type { RegionListItem } from '../region-list-item'; |
| 2 | + |
| 3 | +const staticAzureRegions: Record<string, string> = { |
| 4 | + australiacentral: 'Australia Central', |
| 5 | + australiacentral2: 'Australia Central 2', |
| 6 | + australiaeast: 'Australia East', |
| 7 | + australiasoutheast: 'Australia Southeast', |
| 8 | + austriaeast: 'Austria East', |
| 9 | + belgiumcentral: 'Belgium Central', |
| 10 | + brazilsouth: 'Brazil South', |
| 11 | + brazilsoutheast: 'Brazil Southeast', |
| 12 | + canadacentral: 'Canada Central', |
| 13 | + canadaeast: 'Canada East', |
| 14 | + centralindia: 'Central India', |
| 15 | + centralus: 'Central US', |
| 16 | + chilecentral: 'Chile Central', |
| 17 | + eastasia: 'East Asia', |
| 18 | + eastus: 'East US', |
| 19 | + eastus2: 'East US 2', |
| 20 | + francecentral: 'France Central', |
| 21 | + francesouth: 'France South', |
| 22 | + germanynorth: 'Germany North', |
| 23 | + germanywestcentral: 'Germany West Central', |
| 24 | + indonesiacentral: 'Indonesia Central', |
| 25 | + israelcentral: 'Israel Central', |
| 26 | + italynorth: 'Italy North', |
| 27 | + japaneast: 'Japan East', |
| 28 | + japanwest: 'Japan West', |
| 29 | + koreacentral: 'Korea Central', |
| 30 | + koreasouth: 'Korea South', |
| 31 | + malaysiawest: 'Malaysia West', |
| 32 | + mexicocentral: 'Mexico Central', |
| 33 | + newzealandnorth: 'New Zealand North', |
| 34 | + northcentralus: 'North Central US', |
| 35 | + northeurope: 'North Europe', |
| 36 | + norwayeast: 'Norway East', |
| 37 | + norwaywest: 'Norway West', |
| 38 | + polandcentral: 'Poland Central', |
| 39 | + qatarcentral: 'Qatar Central', |
| 40 | + southafricanorth: 'South Africa North', |
| 41 | + southafricawest: 'South Africa West', |
| 42 | + southcentralus: 'South Central US', |
| 43 | + southindia: 'South India', |
| 44 | + southeastasia: 'Southeast Asia', |
| 45 | + spaincentral: 'Spain Central', |
| 46 | + swedencentral: 'Sweden Central', |
| 47 | + switzerlandnorth: 'Switzerland North', |
| 48 | + switzerlandwest: 'Switzerland West', |
| 49 | + uaecentral: 'UAE Central', |
| 50 | + uaenorth: 'UAE North', |
| 51 | + uksouth: 'UK South', |
| 52 | + ukwest: 'UK West', |
| 53 | + westcentralus: 'West Central US', |
| 54 | + westeurope: 'West Europe', |
| 55 | + westindia: 'West India', |
| 56 | + westus: 'West US', |
| 57 | + westus2: 'West US 2', |
| 58 | + westus3: 'West US 3', |
| 59 | +}; |
| 60 | + |
| 61 | +export function getAzureRegionsList(): RegionListItem[] { |
| 62 | + return Object.entries(staticAzureRegions).map(([id, displayName]) => ({ |
| 63 | + id, |
| 64 | + displayName, |
| 65 | + })); |
| 66 | +} |
0 commit comments