question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VM Creation - SkuNotAvailable when creating VM in region

See original GitHub issue

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.”

screen shot 2017-01-19 at 11 26 43 am

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?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
yugangw-msftcommented, May 1, 2017

@lmazuel , correct

0reactions
yugangw-msftcommented, Mar 23, 2019

This issue has been largely mitigated with enhanced az vm list-skus, particularly in the help

    List all available vm sizes in the East US2 region which support availability zone with name
    like "standard_ds1...".
        az vm list-skus -l eastus2 --zone --size standard_ds1

And yes, once you find the available the sizes, you can use this size for vm/vmss create. We have talked to compute team, and there are nothing else planned on this area. Hence i am closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SKU not available errors - Azure Resource Manager
This article describes how to resolve errors when a SKU isn't available in an Azure subscription's region or availability zones. Examples of ...
Read more >
Create and start a VM instance - Compute Engine
This document explains how to create a virtual machine (VM) instance by using a boot disk image, a boot disk snapshot, or a...
Read more >
Azure: Error creating or updating virtual machine ...
The challenge is I am not able to find a single VM that is available in ANY region. I go to create virtual...
Read more >
How to check the available VM Sizes (SKUs) by Azure Region
While the teams are working hard to make services available in these regions, it can happen that certain Azure services and virtual machine...
Read more >
Why Some Azure VM Sizes are Unavailable When Resizing in ...
I wanted to change one of my Development VMs to a DS12_v2, but that choice ... If you create a support request, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found