Inconsistent result while executing az vm list-skus
#30626
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
Compute
az vm/vmss/image/disk/snapshot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
We use terraform to provision our infrastructure in Azure.
Because of limits related with available VM types in different zones we check before deployment VM availability.
To check actual list of zones where VM is available we use command
az vm list-skus
. Then we pass returned list of zones as input variable to the terraform.Unfortunately sometimes even if we get a response like:
our deployment fails because error like: "The VM size of Standard_E32as_v5 is only allowed in zones [2] in your subscription in location 'westeurope'. "
Looks like terraform takes list of zones for v6 instead of v5 or az cli command returns incorrect values in a list!
Related command
Errors
Issue script & Debug output
none
Expected behavior
I'd like to get a real list of zones where VM is available!
Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: