Day 3: Create VM using Azure CLI - SkuNotAvailable

Hi, when I am trying to create a VM via CLI, facing sku error.

Day 1 - (Jan 1st)

Error - {“error”:{“code”:“InvalidTemplateDeployment”,“message”:“The template deployment ‘vm_deploy_BITH4XSyjtkrzfLNJIJERaVgwhfbJBcB’ is not valid according to the validation procedure. The tracking id is ‘70022609-940f-4faf-aa43-2fe193e1e2cc’. See inner errors for details.”,“details”:[{“code”:“SkuNotAvailable”,“message”:“The requested VM size for resource ‘Following SKUs have failed for Capacity Restrictions: Standard_B2s’ is currently not available in location ‘westus’. Please try another size or deploy to a different location or different zone. See SKU not available errors - Azure Resource Manager | Microsoft Learn for details.”}]}}

Command - az vm create --name nautilus-vm --resource-group kml_rg_main-c72ad8fd26254238 --image Ubuntu2204 --size Standard_B2s --admin-username azureuser --generate-ssh-keys --os-disk-size-gb 30 --storage-sku Standard_LRS

Even though I created with another size, I was not able to pass the check. Is there any possible way to fix this?

Day 2 - (Jan 2nd)

I tried it today, but it still shows the same error.

~ ➜ az group list
[
{
“id”: “/subscriptions/acd62f7d-cb02-4fd9-aa3e-3bbdea281b68/resourceGroups/kml_rg_main-e3ed1752c58749ef”,
“location”: “westus”,
“managedBy”: null,
“name”: “kml_rg_main-e3ed1752c58749ef”,
“properties”: {
“provisioningState”: “Succeeded”
},
“tags”: null,
“type”: “Microsoft.Resources/resourceGroups”
}
]

~ ➜ az vm create
–name nautilus-vm
–resource-group kml_rg_main-e3ed1752c58749ef
–image Ubuntu2204
–size Standard_B2s
–admin-username azureuser
–generate-ssh-keys
–os-disk-size-gb 30
–storage-sku Standard_LRS
SSH key files ‘/root/.ssh/id_rsa’ and ‘/root/.ssh/id_rsa.pub’ have been generated under ~/.ssh to allow SSH access to the VM. If using machines without permanent storage, back up your keys to a safe location.
{“error”:{“code”:“InvalidTemplateDeployment”,“message”:“The template deployment ‘vm_deploy_3ySCG6GT8K2Mcq6f5SlAFMxbmuJ4WAMP’ is not valid according to the validation procedure. The tracking id is ‘b3c06ebf-b2e7-49cd-a40f-8c54bff72d64’. See inner errors for details.”,“details”:[{“code”:“SkuNotAvailable”,“message”:“The requested VM size for resource ‘Following SKUs have failed for Capacity Restrictions: Standard_B2s’ is currently not available in location ‘westus’. Please try another size or deploy to a different location or different zone. See SKU not available errors - Azure Resource Manager | Microsoft Learn for details.”}]}}

Hello, I am also facing this issue and when I tried the available SKU, I faced the same issue. Please kindly let me know when a resolution has been suggested

I’m facing the same issue.

I’m also stuck at this exercise…I think there is a problem in westus location with storage capacity provision. Kodekloud team should look into it.

Now it is fixed, I can able to create a VM with the specified configuration