interactive-login.md
August 28, 2025 ยท View on GitHub
-
Run the
az logincommand.az loginIf Azure CLI can open your default browser, it initiates authorization code flow and opens the default browser to load an Azure sign-in page.
Otherwise, it initiates the device code flow and instructs you to open a browser page at https://aka.ms/devicelogin. Then, enter the code displayed in your terminal.
If no web browser is available or the web browser fails to open, you can force device code flow with
az login --use-device-code. -
Sign in with your account credentials in the browser.