Seemingly unable to create a VM from the Azure CLI in the training

Jeremy Ritz 25 Reputation points
2023-12-22T16:15:29.0233333+00:00

Training=
From Cloud Shell, run the following az vm create command to create a Linux VM:

Here's what happens.
[ ~ ]$ az vm create

the following arguments are required: --name/-n, --resource-group/-g

Examples from AI knowledge base:

az vm create --name MyVm --resource-group MyResourceGroup --image RedHat:RHEL:7-RAW:7.4.2018010506

Create a default RedHat VM with automatic SSH authentication using an image URN.

az vm create --name MyVm --resource-group rg1 --image debian --assign-identity /subscriptions/99999999-1bf0-4dda-aec3-cb9272f09590/resourcegroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myID

Create a debian VM with a user assigned identity.

az group create --location westus --resource-group MyResourceGroup

Create a new resource group in the West US region.

https://docs.microsoft.com/en-US/cli/azure/vm#az_vm_create

Read more about the command in reference doc

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.
2,231 questions
0 comments No comments
{count} votes

Accepted answer
  1. VarunTha 13,035 Reputation points Microsoft External Staff
    2023-12-23T04:22:04.7966667+00:00

    Hi Jeremy,

    Thank you for reaching out to Microsoft Q & A forum. 

    Where am I seeing this?

    Subject: AZ-900/Azure Fundamentals
    Learning Path: Describe Azure architecture and services
    Module: Describe Azure compute and networking services
    Unit: 3 - Create an Azure virtual machine

    Observation: It appears that the entire command specified in the exercise was not copied accurately.

    1. Begin by activating a new sandbox using the command provided in Task 1 Step 1. You can locate this command in the code window by utilizing the "Copy" button situated in the upper right corner.
    2. Proceed to paste the copied command into Cloud Shell on the right side and patiently await its completion.
    3. Upon the successful completion of Step 1, proceed to copy the command specified in Task 1 Step 2 and paste it into Cloud Shell.

    It is imperative to note that you should endeavor to complete the subsequent exercise in Unit 9 before the allocated Sandbox expires, which is within the next hour.

    If you have found the answer provided to be helpful, please click on the "Accept answer" button so that it is useful for other members in the Microsoft Q&A community.

    If you encounter any future issues, please feel free to contact us, and we will be pleased to assist you further.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.