Training Sandbox returns strange error when trying to create an Azure virtual machine from lesson

Patrick Mulvany 25 Reputation points
2024-07-17T21:29:52.6133333+00:00

Able to access the sandbox but when I do the first Task in the lesson https://learn.microsoft.com/en-us/training/modules/describe-azure-compute-networking-services/3-exercise-create-azure-virtual-machine
Running the command:
az vm create --resource-group "learn-29bfc9a1-7e0e-4aea-9aa7-38a2bcc5d01b" --name my-vm --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys

I get the following error.Screenshot from 2024-07-17 22-17-56

The detailed error I get is as follows:

{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/63fb4ccd-8431-455e-81bc-f7242ec2650c/resourceGroups/learn-29bfc9a1-7e0e-4aea-9aa7-38a2bcc5d01b/providers/Microsoft.Resources/deployments/vm_deploy_Nz2CyCa61KCqPDjRaMGXRnaMZsAXY9nT","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/63fb4ccd-8431-455e-81bc-f7242ec2650c/resourceGroups/learn-29bfc9a1-7e0e-4aea-9aa7-38a2bcc5d01b/providers/Microsoft.Compute/virtualMachines/my-vm","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"AllocationFailed","message":"Allocation failed. We do not have sufficient capacity for the requested VM size in this region. Read more about improving likelihood of allocation success at http://aka.ms/allocation-guidance\nPlease try alternative sizes 'Standard_DS2_v2', 'Standard_DS11_v2', or 'Standard_F2s_v2' instead for higher likelihood of success."}]}]}}

Is this something I am doing wrong of is there an issue with my sandbox as I had a previous issue https://learn.microsoft.com/en-us/answers/questions/1811160/stuck-at-configuring-cloud-shell-for-sandbox-acces

Also tried using method for copy and paste from https://learn.microsoft.com/en-us/answers/questions/1533946/unable-to-complete-task-1-create-a-linux-virtual-m but with no success.

Not sure if being in the UK is affecting the region issue.

Thanks for your help

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,288 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RDash 1,345 Reputation points Microsoft Vendor
    2024-07-19T03:43:59.29+00:00

    Hi Patrick Mulvany,

    We are really glad to know that the issue is resolved for you. If the issue persists, please contact us, and we'll be glad to assist you further.

    Please don't hesitate to reach out to us if you have any further queries. I hope the information provided has been helpful to you! If so, please accept the answer by clicking the Accept Answer / Upvote on the post. We value your feedback, and it will help to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Q&A!

    Thank you.

    0 comments No comments