VM Creation - SkuNotAvailable when creating VM in region
In the CLI, I tried creating a VM in 'West US' in my subscription but kept on getting a ResourceDeploymentFailure with code SkuNotAvailable.
At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details. {
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
"details": [
{
"code": "Conflict",
"message": "{\r\n \"error\": {\r\n \"code\": \"SkuNotAvailable\",\r\n \"message\": \"The requested tier for resource '/subscriptions/.../resourceGroups/commute-dev/providers/Microsoft.Compute/virtualMachines/commutedev1' is currently not available in location 'westus' for subscription '...'. Please try another tier or deploy to a different location.\"\r\n }\r\n}"
}
]
}
]
}
}
I tried many VM sizes and kept getting the same result.
I then tried in the portal and get the error message "Your subscription doesn't support virtual machine creation in West US."
The CLI doesn't show a list of supported regions and there doesn't appear to be a way to get this.
Can we use the same logic/API calls as the portal?
ARM team is working to give us a new API to query the regions
Will move to a particular sprint once we get more details from Compute RP team
CRP will provide API in mid-late Feb.
@yugangw-msft any news on new API? we struggle with this issue using python SDK with Ansible
Hey guys, whats up? we are waiting for this feature
@sauryadas, this has to be done at compute RP first. I have forwarded an internal mail to you, could you please coordinate to get the API surface to the SDK?
@yugangw-msft is there any information about new API?
I encountered this as well and it took a while to figure out that the actual problem was not having permissions in the given location rather than specifying an unavailable VM size. The message in the portal is much clearer.
FYI, the /skus api is being finalized by Azure Compute team which will return the permission and restrictions information which CLI can leverage for better errors/suggestions.
Essentially each subscription has its own restrictions due to capacity or offer type, CLI will try to surface actionable messages with the assistance of the new API
@yugangw-msft this RestAPI will be in Swagger right? So update to the compute package?
@lmazuel , correct
az vm list-skus is in so people can cross check themselves. For more integrated experience, 2 things should be done:
- on
vm create, use the new api to cross check vm size and emit out a good message - on
vm availability-set create, use the same api to default FD to the maximum number
This is still a problem... I cannot specify which SKU and this is very frustrating.

When will this be fixed?
@prashanthv did you use the vm list-skus command?
Hi @tjprescott - Thanks. Yes I did. But the documentation doesn't tell the user after using the vm list-skus command what should be the next command to create a VM?
@yugangw-msft can you take this one after Ignite?
@tjprescott , @yugangw-msft. This issue hasn't been fixed. Do we have a solution. After doing list-skus command what is the next command we should use to create a VM?
The flow, which we can emphasize in document, is you run “az vm list-skus -r virtualMachines -l