Azure CLI 2.0 (az) で、リソースどこに置くかとかで location を指定するときに、リージョン名前一覧が欲しかったのでここにメモ。
az account 公式リファレンス
→ https://docs.microsoft.com/ja-jp/cli/azure/account
location 全表示
az account list-locations
テーブル (表) 表示
-o table
で、アウトプットを指定します
az account list-locations -o table
表示名と名前だけテーブル表示
クエリ --query "[].{DisplayName:displayName, Name:name}"
を追加します
az account list-locations --query "[].{DisplayName:displayName, Name:name}" -o table
DisplayName Name
-------------------- ------------------
East Asia eastasia
Southeast Asia southeastasia
Central US centralus
East US eastus
East US 2 eastus2
West US westus
North Central US northcentralus
South Central US southcentralus
North Europe northeurope
West Europe westeurope
Japan West japanwest
Japan East japaneast
Brazil South brazilsouth
Australia East australiaeast
Australia Southeast australiasoutheast
South India southindia
Central India centralindia
West India westindia
Canada Central canadacentral
Canada East canadaeast
UK South uksouth
UK West ukwest
West Central US westcentralus
West US 2 westus2
Korea Central koreacentral
Korea South koreasouth
France Central francecentral
France South francesouth
Australia Central australiacentral
Australia Central 2 australiacentral2
UAE Central uaecentral
UAE North uaenorth
South Africa North southafricanorth
South Africa West southafricawest
Switzerland North switzerlandnorth
Switzerland West switzerlandwest
Germany North germanynorth
Germany West Central germanywestcentral
Norway West norwaywest
Norway East norwayeast