1. Run the login command.

    az login
    

    You get a code to use in the next step.

  2. Use a web browser to open the page https://aka.ms/devicelogin and enter the code to authenticate.

    You are prompted to log in using your credentials.

  3. Log in.