Using the Azure CLI
When interacting with Azure resources, you have multiple paths to take to choose from.
- Using the Azure portal
- Leveraging the REST API of Azure Resource Manager
- Using the REST APIs of deployed resources
- Installing the Azure PowerShell module
- Implementing an Infrastructure-as-Code approach
- Installing the Azure CLI
In this chapter, we will focus on understanding the Azure CLI as our main tool for daily tasks as it’s detached from the standard Microsoft technology stack and can be easily understood by people using the command-line interface on a daily basis.
Note
While most tasks can be done with both Azure PowerShell and the Azure CLI, there are some minor differences (for example, some SQL database operations can be done only by using Azure PowerShell). Using Azure PowerShell requires at least basic knowledge of PowerShell, thus we’re not going to cover it in this book.
The Azure CLI is installed by a simple...