Azure Classroomnotes 11/Mar/2023

Azure CLI

  • Azure has three interfaces
    • Web interface:
      • Azure portal
    • Command Line interface
      • Azure CLI
      • Azure Powershell
    • Code interface
      • Azure SDK
        Preview
  • Install azure cli Refer Here
  • Azure CLI sign in Refer Here
  • Azure CLI has the following pattern
az <service> [<sub-service>] <action> [{--arg1 value1} .. {--argn valuen}]
  • Azure commmand return json by default
  • To find the commands Refer Here

Create a Linux VM using Azure CLI

  • Getting Started
    • Install azure cli tools extension to vs code
    • Create a file with extension .azcli
  • To Create VM
    • resource group
    • region
    • vm image:
      • publisher: Canonical
      • offer: 0001-com-ubuntu-server-jammy
      • sku: 22_04-lts-gen2
    • instance size: Standard_B1s
    • ports to be opened: 22, 80
  • Steps:
    • Create a resource group Refer Here for changeset
      Preview
    • Create a vm Refer Here for the changeset
      Preview
    • Login into the instance and ssh <username>@<publicip>
    • install apache
  • Refer Here for changes to install apache and open 80 port

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube