Azure Classroom Series – 28/Nov/2020

Azure VM Creation using Azure CLI

  • Azure CLI Setup and Configuration Refer Here
  • Azure CLI is a commandline approach for creating azure resources. The commands will be in the form of az <service> [<sub-service>] <action> --param1 <value1> ... --paramn <valuen>
  • Example:
az group create --name learningcli --location eastus
  • Finding the CLI
  • Lets find a command to view resource groups
  • To use azure cli install azure cli as mentioed in the above video or Refer Here
  • Now login into azure from cli
az login 
  • You can perform azure cli from cloud shell as well. Open the azure portal
  • Ensure you have visual studio code extension for azure cli
  • Lets create a Windows virtual machine
    • Lets create a resource group Refer Here
    • Lets create a vm Refer Here
      • Lets find the image for windows vm image
      az vm image list-publishers
      az vm image list-offers
      az vm image list-skus
      az vm image list
      
      • Lets find the image for ubuntu vm image

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%