4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ゾーン対応している Azure VM サイズを調べるよ

Posted at

こんにちは、アーキテクトのやまぱんです。

補足コメントや質問、いいね、拡散、是非お願いします🥺!
間違ってたら優しく教えてください!


最近はいろいろあって、西日本リージョンの Azure VM がゾーン対応している VM SKU を調べることになる人もいそうなのでメモしときます。
あくまで画面ショットなどは私の環境での実行結果です。

image.png

  • 参考

Azure CLI

Azure CLI
az vm list-skus --location japanwest --zone --output table
  • 実行イメージ
    image.png

Azure PowerShell

PowerShell
 Get-AzComputeResourceSku `
  | Where-Object { $_.ResourceType -eq "virtualMachines" -and $_.Locations -contains "japanwest" }
  • 実行イメージ
    image.png

カレントフォルダに CSVとしてエクスポート

ゾーン対応している Azure VM サイズを表示してCSVエクスポート
Get-AzComputeResourceSku `
  | Where-Object {
      $_.ResourceType -eq "virtualMachines" -and $_.Locations -contains "japanwest"
  } `
  | Select-Object ResourceType, Name, @{Name="Location";Expression={($_.Locations -join ",")}}, @{Name="Zones";Expression={($_.LocationInfo[0].Zones -join ",")}} `
  | Export-Csv -Path ".\japanwest-vm-skus.csv" -Encoding UTF8 -NoTypeInformation

  • こんな感じで見れます
    image.png
4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?