iMind Developers Blog

iMind開発者ブログ

Azure CLIで利用可能なリージョンの一覧を取得する

概要

リージョン一覧自体は下記ページなどに載っているけど、利用可能でないリージョンも載っていたりAzure CLIで指定するNameが載っていなかったりする。

Azure Locations | Microsoft Azure

CLIを利用して利用可能なリージョンとそのNameについても取得する。

バージョン情報

  • azure-cli 2.0.54-1

リージョン一覧の表示

Azure CLIの下記コマンドで取得できる。

$ az account list-locations --output table

DisplayName          Latitude    Longitude    Name
-------------------  ----------  -----------  ------------------
East Asia            22.267      114.188      eastasia
Southeast Asia       1.283       103.833      southeastasia
Central US           41.5908     -93.6208     centralus
East US              37.3719     -79.8164     eastus
East US 2            36.6681     -78.3889     eastus2
West US              37.783      -122.417     westus
North Central US     41.8819     -87.6278     northcentralus
South Central US     29.4167     -98.5        southcentralus
North Europe         53.3478     -6.2597      northeurope
West Europe          52.3667     4.9          westeurope
Japan West           34.6939     135.5022     japanwest
Japan East           35.68       139.77       japaneast
Brazil South         -23.55      -46.633      brazilsouth
Australia East       -33.86      151.2094     australiaeast
Australia Southeast  -37.8136    144.9631     australiasoutheast
South India          12.9822     80.1636      southindia
Central India        18.5822     73.9197      centralindia
West India           19.088      72.868       westindia
Canada Central       43.653      -79.383      canadacentral
Canada East          46.817      -71.217      canadaeast
UK South             50.941      -0.799       uksouth
UK West              53.427      -3.084       ukwest
West Central US      40.890      -110.234     westcentralus
West US 2            47.233      -119.852     westus2
Korea Central        37.5665     126.9780     koreacentral
Korea South          35.1796     129.0756     koreasouth
France Central       46.3772     2.3730       francecentral
France South         43.8345     2.1972       francesouth
Australia Central    -35.3075    149.1244     australiacentral
Australia Central 2  -35.3075    149.1244     australiacentral2
South Africa North   -25.731340  28.218370    southafricanorth
South Africa West    -34.075691  18.843266    southafricawest

利用できないリージョンについて

CLIでは2019年3月時点で全32リージョンが表示された。

しかし下記によるとAzureでは42リージョンがAvailableで用意されているらしい。

Azure Regions | Microsoft Azure

上記の数にはUS DoD(米国国防総省)等の一般向けでないリージョンや、契約が一筋縄ではいかない中国リージョンが含まれている。

改定履歴

Author: Masato Watanabe, Date: 2019-03-05, 記事投稿