Jeff
Jeff Cloud Systems Arcitect with a focus on Kuberetes
1 min read / TL;DR

Find Azure Image SKUs

Find Azure Image SKUs

Locating Azure VM Image SKUs using AZ CLI

Requirements

You must have an Azure Account and AZ CLI installed on your machine. I may do a write-up on using PowerShell in the future.

Finding a SKU

To find an image SKU, you must first know the Publisher and Offer. For this example, we will use Windows Server 2019

Finding a Publisher

Open a Command prompt or PowerShell window (or terminal in Linux/MacOS). If you are not logged in, do so by issuing the following:

az login

Then issue the following command for Windows 10

az vm image list --location eastus --publisher MicrosoftWindowsDesktop --offer Windows-10 --all -o table

The --offer was found by running the following

az vm image list-offers --location eastus --publisher MicrosoftWindowsDesktop -o table

You should have a list of SKUs like the following

Offer       Publisher                Sku                          Urn                                                                                  Version
----------  -----------------------  ---------------------------  -----------------------------------------------------------------------------------  ---------------------
Windows-10  MicrosoftWindowsDesktop  19h1-ent                     MicrosoftWindowsDesktop:Windows-10:19h1-ent:18362.476.1911072223                     18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-ent                     MicrosoftWindowsDesktop:Windows-10:19h1-ent:18362.535.1912042330                     18362.535.1912042330
Windows-10  MicrosoftWindowsDesktop  19h1-ent-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-ent-gensecond:18362.356.1909091636           18362.356.1909091636
Windows-10  MicrosoftWindowsDesktop  19h1-ent-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-ent-gensecond:18362.418.1910070306           18362.418.1910070306
Windows-10  MicrosoftWindowsDesktop  19h1-ent-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-ent-gensecond:18362.476.1911072223           18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-ent-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-ent-gensecond:18362.535.1912042330           18362.535.1912042330
Windows-10  MicrosoftWindowsDesktop  19h1-entn                    MicrosoftWindowsDesktop:Windows-10:19h1-entn:18362.476.1911072223                    18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-entn                    MicrosoftWindowsDesktop:Windows-10:19h1-entn:18362.535.1912042330                    18362.535.1912042330
Windows-10  MicrosoftWindowsDesktop  19h1-entn-gensecond          MicrosoftWindowsDesktop:Windows-10:19h1-entn-gensecond:18362.356.1909091636          18362.356.1909091636
Windows-10  MicrosoftWindowsDesktop  19h1-entn-gensecond          MicrosoftWindowsDesktop:Windows-10:19h1-entn-gensecond:18362.418.1910070306          18362.418.1910070306
Windows-10  MicrosoftWindowsDesktop  19h1-entn-gensecond          MicrosoftWindowsDesktop:Windows-10:19h1-entn-gensecond:18362.476.1911072223          18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-entn-gensecond          MicrosoftWindowsDesktop:Windows-10:19h1-entn-gensecond:18362.535.1912042330          18362.535.1912042330
Windows-10  MicrosoftWindowsDesktop  19h1-evd                     MicrosoftWindowsDesktop:Windows-10:19h1-evd:18362.476.1911072223                     18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-evd                     MicrosoftWindowsDesktop:Windows-10:19h1-evd:18362.535.1912042330                     18362.535.1912042330
Windows-10  MicrosoftWindowsDesktop  19h1-pro                     MicrosoftWindowsDesktop:Windows-10:19h1-pro:18362.476.1911072223                     18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-pro                     MicrosoftWindowsDesktop:Windows-10:19h1-pro:18362.535.1912042330                     18362.535.1912042330
Windows-10  MicrosoftWindowsDesktop  19h1-pro-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-pro-gensecond:18362.356.1909091636           18362.356.1909091636
Windows-10  MicrosoftWindowsDesktop  19h1-pro-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-pro-gensecond:18362.418.1910070306           18362.418.1910070306
Windows-10  MicrosoftWindowsDesktop  19h1-pro-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-pro-gensecond:18362.476.1911072223           18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-pro-gensecond           MicrosoftWindowsDesktop:Windows-10:19h1-pro-gensecond:18362.535.1912042330           18362.535.1912042330
Windows-10  MicrosoftWindowsDesktop  19h1-pro-zh-cn               MicrosoftWindowsDesktop:Windows-10:19h1-pro-zh-cn:18362.476.1911072223               18362.476.1911072223
Windows-10  MicrosoftWindowsDesktop  19h1-pro-zh-cn               MicrosoftWindowsDesktop:Windows-10:19h1-pro-zh-cn:18362.535.1912042330               18362.535.1912042330

Terraform Usage

If you are using this information in Terraform, you would add the following for the top SKU in the list above:

storage_image_reference {
  publisher = "MicrosoftWindowsDesktop"
  offer     = "Windows-10"
  sku       = "19H1-ent"
  version   = "18362.476.1911072223"
}