Subject: Inconsistent and undocumented SKU naming conventions for Gen1 and Gen2 Azure VM Images
Issue Summary: We have encountered inconsistencies in the SKU naming for Azure Compute Virtual Machines when differentiating between Generation 1 and Generation 2 image SKUs. While creating test virtual machines, we observed that the SKU names vary without a consistent pattern across generations. For example:
Some Gen2 images use SKU names like "server"
Others use "server-gen2"
Similar inconsistencies may exist in Gen1 SKUs as well
This lack of consistency makes it difficult to programmatically determine whether a VM image is Gen1 or Gen2 — especially important because trusted launch is only supported on Gen2, and we need to separate them out for compliance and automation.
Our Ask: We would like a comprehensive and up-to-date list of:
All possible SKU values that represent Generation 1 images
All possible SKU values that represent Generation 2 images
Additionally:
Is there any programmatic way to determine the generation of an image (e.g., property, tag, or metadata) via the Azure REST API?
- If not, can you consider exposing this parameter in the Azure VM Get API or any related API for clarity?Subject: Inconsistent and undocumented SKU naming conventions for Gen1 and Gen2 Azure VM Images Issue Summary:
We have encountered inconsistencies in the SKU naming for Azure Compute Virtual Machines when differentiating between Generation 1 and Generation 2 image SKUs. While creating test virtual machines, we observed that the SKU names vary without a consistent pattern across generations. For example:
- Some Gen2 images use SKU names like
"server"
- Others use
"server-gen2"
- Similar inconsistencies may exist in Gen1 SKUs as well
This lack of consistency makes it difficult to programmatically determine whether a VM image is Gen1 or Gen2 — especially important because trusted launch is only supported on Gen2, and we need to separate them out for compliance and automation. Our Ask:
We would like a comprehensive and up-to-date list of:
- All possible SKU values that represent Generation 1 images
- All possible SKU values that represent Generation 2 images
Additionally:
- consider exposing this parameter in the Azure VM Get API or any related API for clarity?