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.
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

You may also like following the below articles
Conclusion
In this Azure article, we discussed the syntax and usage of the az login command with examples. Thanks for reading this article !!!

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.