32
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Azure CLI (az) でリージョン一覧見るコマンド az account list-locations

Last updated at Posted at 2019-12-03

Azure CLI 2.0 (az) で、リソースどこに置くかとかで location を指定するときに、リージョン名前一覧が欲しかったのでここにメモ。

az account 公式リファレンス
https://docs.microsoft.com/ja-jp/cli/azure/account

location 全表示

az account list-locations 

Azure location cloud shell

テーブル (表) 表示

-o table で、アウトプットを指定します

az account list-locations -o table

Azure location cloud shell

表示名と名前だけテーブル表示

クエリ --query "[].{DisplayName:displayName, Name:name}" を追加します

az account list-locations --query "[].{DisplayName:displayName, Name:name}" -o table

image.png

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

Reference

32
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
32
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?