Code for creating a VM in Azure sandbox training is not working

Wesley Millwood 0 Reputation points
2024-05-25T14:23:53.4033333+00:00

I am working through Azure training and at the Point of creating a VM in the sandbox.

I have typed in exactly what is said in the training in both bash and powershell and both give the same error.

Whereas in the training picture the code creates a new VM.

This question is related to the following Learning Module

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,183 questions
{count} votes

1 answer

Sort by: Most helpful
  1. pnaroju 1,810 Reputation points Microsoft Vendor
    2024-05-26T06:50:18.2566667+00:00

    Hi Wesley Millwood,

    Based on your query we understand that you are experiencing difficulties while attempting to create a VM in the Microsoft Azure Learn sandbox.

    Upon activating the sandbox by selecting the "Activate sandbox" button, an Azure cloud shell window will appear on the right-hand side of the screen.

    Within the Cloud Shell, execute the "az vm create" command to generate a Linux VM. To execute this command, simply copy the provided code block in the document using the copy function located at the top right corner of the code block, and then paste it into the Azure cloud shell window.

    Please refer to the attached screenshot, where you will notice the sandbox resource group identified with a name commencing with "learn," and the successful creation of a VM named "my-vm," currently in a running state:VMIMAGE1 Should you continue to encounter challenges, please provide relevant screenshots for further assistance, ensuring all private details are appropriately concealed prior to submission.

    If you find this information beneficial, please indicate your acknowledgment by selecting the "Upvote" and "Accept Answer" buttons associated with the post.

    Thank you.

    0 comments No comments