June 8, 2021
Create Your Free Azure and Cosmos DB Account
Azure CLI is a set of commands used to manage Azure resources. The advantages to using it are that you can access functionality not available in the portal, and you can automate your work.
You can run commands in all different shells and operating systems, but for this post, I’m going to use PowerShell and Windows 10.
You can find the latest MSI distributable here. After the installation, you can log in to your Azure subscription with the az login command.
This will load an Azure sign-in page.
Then you can use az version to check that everything is working as expected.
az configuresome defaults configuration
az account list --output tablelist subscriptions
az account show --output tablecurrent active subscription (would be used as default subscription)
az account set --subscription "My Demos"change the active subscription
az account list-locations --output tablelist locations
az find commandtosearchfind commands containing commandtosearch in the name
az upgradeupdate your CLI installation
To continue learning about Azure CLI, you can see in this link a list of popular articles by category, or you can use the Additional Resources section below.
I’m also planning some upcoming blog posts right here showing some specific tasks using Azure CLI.