Retrieve the list of supported storage Locations for a subscription RRS feed

  • Question

  • I am using Microsoft.Azure.Management.ResourceManager.1.1.1-preview nuget package to retrieve the list of supported storage locations for a subscription using the following code

    Provider storageProvider = await(resourceManagementClient.Providers.GetAsync("Microsoft.Storage"));
    IList<string> storageLocations = storageProvider.ResourceTypes.First(x => x.ResourceType == "storageAccounts").Locations;

    The returned list doesn't seem to match with the displayed list of locations for a new storage account in Portal.

    Any thoughts?

    Sankaranarayanan MG

    Saturday, June 11, 2016 4:47 AM

All replies