Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs

az login command

October 31, 2023 by Rajkishore

Log in to Azure using the az login cmdlet. Once you execute the az login cmdlet, it will prompt you to provide the Azure user name and password or Azure account credentials.

Table of Contents

  • syntax
  • Example

syntax

Below is the syntax of the az login command.

az login
az login [--allow-no-subscriptions] [--identity] [--password] [--service-principal]
         [--tenant] [--use-cert-sn-issuer] [--use-device-code] [--username]

Example

After executing the below command, It prompted me to enter the credentials and after entering the credentials and On successful login, it showed me the below pop-up with the successful log in message “You have logged into Microsoft Azure!”. Check out the below screen shot for your reference.

az login
az login

You may also like following the below articles

  • az account show
  • az account set subscription

Conclusion

In this Azure article, we discussed the syntax and usage of the az login command with examples. Thanks for reading this article !!!

Microsoft Azure
Rajkishore

I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.

az account set subscription
The term ‘get-azuresubscription’ is not recognized

Recent Posts

  • HttpRequest does not contain a definition for content
  • Get-AzureRmVM
  • Get-AzureADGroup
  • AWS Workspaces VS Azure Virtual Desktop
  • ‘this.client.subscriptionid’ cannot be null.
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2023 Azure Lessons