| Reading time: | 10 min |
| Last updated: | 30 Apr 2025 |
| Reading time: |
| 10 min |
| Last updated: |
| 30 Apr 2025 |
This guide shows you how to install and use the tool with the most common configuration. For advanced options and complete reference information, see the official documentation. Some install guides also include optional next steps to help you explore related workflows or integrations.
In this section you will learn how to authenticate to the Azure environment using the Azure CLI. After log in, the CLI allows you to query and interact with Azure cloud resources.
Install the Azure CLI on your machine using the install guide .
Run the following command to initiate the log in:
az login
The output will be similar to what is shown here:
ubuntu@ip-172-31-17-218:~$ az login
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code E5NKJA2HM to authenticate.
Open the link in a browser, enter the code that you receive in the above message, and log in into your Azure account.
You will see the command line details as shown below after you log in.
After a successful log in, you will be able to use the Azure CLI and automation tools like Terraform from the terminal.
How would you rate this tool quick-install guide?
What is the primary reason for your feedback ?
Thank you! We're grateful for your feedback.