Cannot create VM Azure-Socket-01 in resource group (lsnc)ResourceGroup in location westus2

Kelvin Jefferson 0 Reputation points
2023-03-28T14:25:32.7766667+00:00

Starting Build 2023 event, "az vm/vmss create" command will deploy Trusted Launch VM by default. To know more about Trusted Launch, please visit https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch

It is recommended to use parameter "--public-ip-sku Standard" to create new VM with Standard public IP. Please note that the default public IP used for VM creation will be changed from Basic to Standard in the future.

{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'vm_deploy_rRNv9TvHQf2k7VKALJhXkZCZeqOZtsRf' is not valid according to the validation procedure. The tracking id is '78a00734-ecb5-461e-a558-264ab4a8b595'. See inner errors for details.","details":[{"code":"SkuNotAvailable","message":"The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_D2s_v4' is currently not available in location 'westus2'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details."}]}}

Cannot create VM Azure-Socket-01 in resource group (lsnc)ResourceGroup in location westus2

kelvin [ ~ ]$

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,772 Reputation points Microsoft Employee Moderator
    2023-03-28T20:40:28.4133333+00:00

    @Kelvin Jefferson Thanks for posting your query on Microsoft Q&A.

    From your post, my understanding is that you are trying to create a VM using Azure CLI. The error message indicates that the requested VM size Standard_D2s_v4 is currently not available in location westus2.

    You receive this error in the following scenarios:

    • When the resource SKU you've selected, such as VM size, isn't available for a location or zone.
    • If you're deploying an Azure Spot VM or Spot scale set instance, and there isn't any capacity for Azure Spot in this location. For more information, see Spot error messages.

    Solution: The recommendation in this case is to try another VM size or deploy to a different location or different zone as westus2 location has capacity constraints currently for VM size Standard_D2s_v4.
    Alternatively, if a SKU isn't available for your subscription in a location or zone that meets your business needs, you can try submitting a SKU request to Azure Support.

    To determine which SKUs are available in a location or zone, use the az vm list-skus command. You can view all the compute resources for a location's availability zones. By default, only SKUs without restrictions are displayed. To include SKUs with restrictions, use the --all parameter. More detailed commands here.

    Reference documentation: Resolve errors for SKU not available

    If you have any query specific to trusted launch or creating new VM with Standard public IP, please elaborate on the issue and I can investigate it.

    Hope that helps.

    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If this helps, please 'Accept answer' so that it can help others in the community looking for help on the same topic.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.