Using the latest version of the Azure CLI
In this blog post, I wanted to quickly cover how you can keep the Azure CLI up to date on your local system and within Azure. I use the Azure CLI as my go-to choice for writing deployment scripts in Azure. The reason you want to keep this up to date is for new additions as we all bug fixes for previous versions.
The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
Its super simple to keep this up to date and you can do this by opening a PowerShell or Bash script window and typing:-
But instead of doing this maybe you want to keep it up to date without having to keep checking, you can also do this by using the following command:-
az config set auto-upgrade.enable=yes
But even better yet you can keep the Azure CLI up to date without ever being prompted by using the following command:-
az config set auto-upgrade.prompt=no
And that’s it, no you no longer need to worry about am I using the latest version of the Azure CLI.
You can read more on this at the following URL: – https://docs.microsoft.com/en-us/cli/azure/update-azure-cli?WT.mc_id=AZ-MVP-5003451
Don’t forget to subscribe to my YouTube Channel.