Skip to main content
  1. Posts/

Azure Exam Tips Part 2 – Create an Azure VM using the Azure CLI

·118 words·1 min
Author
Gregor Suttie
Passionate about all things Azure. Microsoft Azure MVP, blogger, speaker and community enthusiast based in Scotland.

Tip #2 - I need to know how to create a Virtual Machine from the Azure CLI . I need to practice these exams tips regularly in order to try to remember them.****

Create a new Resource Group with a name and location, then do az vm create and then do az vm open-port  passing in 5 parameters.

So the points to note for Creating a VM in Azure using the CLI are the following key points:-

Create a VM using Azure CLI (know the order) 5 parameters****

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-cli

  • az group create –name GregorExamsRG –location westeurope
  • az vm create
    –resource-group GregorExamsRG
    –name myVM
    –image win2016datacenter
    –admin-username azureuser
    –admin-password ThisisMyPassword123$
  • az vm open-port –port 80 –resource-group GregorExamsRG –name myVM

Share this:

Related