Azure CLI 2 · Sign-in and setup

Sign in without a browser

Sign in on a machine with no browser by entering a code on another device.

az login --use-device-code

Official Azure CLI 2 documentation

More sign-in and setup commands

All sign-in and setup commands · Azure CLI 2 cheatsheet

Was this page helpful?