Azure Classroom Series – 01/Nov/2020

Azure Networking contd..

  • Lets try to create the same network in Azure CLI

Azure CLI

  • Azure CLI will have the commands in the format of
az <service> [<sub service>] <action> --param1 value1 ... --param-n value-n
  • Refer Here for azure cli reference
  • To connect to azure cli after installation execute
az login
  • Create a folder and open the visual studio code. Ensure Azure CLI tools is installed.
  • Create a file with extension .azcli Preview
  • Lets create a resource group . Refer Here for official docs
  • Refer Here for the virtual network cli commands
  • Refer Here for vnet creation documentation
  • Now create the subnets Refer Here for official documentation
  • Refer Here for the azure cli used in class.
  • Azure CLI and Azure Powershell can be executed from cloud-shell. Preview Preview Preview Preview Preview Preview Preview Preview
  • Exercise: Create azure cli based script for creating a vnet in a region with zones.
  • Refer Here for the solution

Azure VNET details

  • Look at the below image Preview
  • Lets create a vm in the web subnet with public ip address Preview Preview Preview Preview
  • Lets login into this instance using ssh
ssh qtdevops@<public-ip>

Preview *

Leave a Reply

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

About learningthoughtsadmin