Azure Classroomnotes 16/May/2023

Azure Commandline

  • Azure has two popular command line interfaces

    • Azure CLI
    • Azure Powershell
  • Azure CLI: Azure CLI works on any platform

Azure CLI

  • Installation: Refer Here
  • To login into your azure account az login
  • Now to work with azure cli lets understand how to use documentation Refer Here
  • resource group cli docs Refer Here

Activity 1

  • Create a resource group called as hellosqlfromcli
  • Check if the resource group is created
#!/bin/bash

az group create --location 'eastus' --name 'hellosqlfromcli'

az group exists --name 'hellosqlfromcli'
  • Working with CLI – Dev Setup
    • Ensure Azure CLI Extension is added to visual studio code
      Preview
    • Create a file with .azcli extension
      Preview
    • visual studio code helps us running commands inline
      Preview
      Preview
      Preview
  • Output from cli
    • The default form of output in azure cli is json
      Preview
    • There are other output formats supported Refer Here
  • Azure CLI supports filtering json using jmespath

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