azureazure-cliazure-cli2

Azure CLI Show Resource Group Locations


So i'm trying to let the Azure CLI show all the possible location i can use for making a resource group

I am searching for a command similar to az account list-locations the reason i am not using the account list-location line is because for an example one of the locations is Australiacentral2 which does not exist for making a resource group but does exist for account locations


Solution

  • First I need to point out, the Azure CLI command az account list-locations does in fact list all the available areas for your subscription. However, some of these regions such as Australia Central 2 or the India regions require you go apply to deploy there.

    And it seems there is no other command can do better than it as the portal. Seems like a gap between the Portal Experience and the CLI experience.

    You can bring up this issue directly to the Azure CLI team using this link.