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

- Create a file with .azcli extension

- visual studio code helps us running commands inline



- Ensure Azure CLI Extension is added to visual studio code
- Output from cli
- The default form of output in azure cli is json

- There are other output formats supported Refer Here
- The default form of output in azure cli is json
- Azure CLI supports filtering json using jmespath
