Azure Classroom Series – 02/Dec/2021

Azure CLI

  • Azure CLI is an Command line interface to work with Azure
  • Azure CLI is an easy to use Azure Commands developed in python language
  • The azure cli commands are easy to use and properly documented
  • The Syntax of azure cli
az <service> [<sub services>] <command> [--arg1 value ... --arg2 value2]
  • Once you install Azure CLI on your system
    • use az --version to verify if the installation is successful
    • To login into azure from cli use az login
    • If you want to use azure cli/azure powershell the other option is cloud shell, where there is no need to login
  • Visual Studio Setup
    • Ensure Azure CLI Tools Extension is installed
    • Ensure Powershell Extension is installed to help us with Azure Powershell
  • Documentation:
    • Refer Here
    • Navigate to the references section
    • NOw find the relevant section from reference
  • Now lets create a new azure cli from a script in visual studio code
  • Steps:
    • Create a Resource group Refer Here for group documentation
    • to create a resource Refer Here
    • Lets create a sql server Refer Here
    • Lets create a sql single database
    • Refer Here for the commands used in the class

Leave a comment

Turn on JavaScript to leave a comment.

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
Exit mobile version
%%footer%%