This guide shows how to install the Azure CLI on an Ubuntu OS. Azure CLI can be used for deploying Azure resources using ARM templates.



  • Azure Portal account and credentials


Installation and Login

01. Run the following command to run a script from Microsoft to install the CLI

$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash


02. Login to Azure. A URL and a code will be returned, open it in a browser.

$ az login


03. Open the link on the browser and enter the code returned in the previous step.


04. You will then be asked to enter your Azure credentials. Note that this screen might not be shown if you opened the link in an already authenticated Azure browser session and you will just need to select an account to use.

screen


screen with an authenticated Azure Portal web session


05. After authentication you will be shown the following message.


06. The CLI session will now have been authenticated and will give you the following message to notify that az login command was successful.


07. Congratulations you have now installed Azure CLI and authenticated your CLI session.

Previous How To Create A Bucket And Manage Its Lifecycle In GCP
Next 5 Mind-Numbing Facts About 5G