Add Azure region enum and helper methods to azurecore (#10776)

* Add Azure region enum and helper methods

* change module definition

* Add comments

* fix names

* Optional param
This commit is contained in:
Charles Gagnon
2020-06-08 07:39:45 -07:00
committed by GitHub
parent 193ecddb98
commit 3e5421dc43
7 changed files with 255 additions and 19 deletions

View File

@@ -930,9 +930,9 @@ async function handleSelectedSubscriptionChanged(context: AzureAccountFieldConte
* Map of known Azure location friendly names to their internal names
*/
const knownAzureLocationNameMappings = new Map<string, string>([
['East US', 'eastus'],
['East US 2', 'eastus2'],
['Central US', 'centralus']
['East US', azurecore.AzureRegion.eastus],
['East US 2', azurecore.AzureRegion.eastus2],
['Central US', azurecore.AzureRegion.centralus]
]);
/**