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:
Then issue the following command for Windows 10
The --offer
was found by running the following
You should have a list of SKUs like the following
Terraform Usage
If you are using this information in Terraform, you would add the following for the top SKU in the list above: