Unable to login to Azure account with Azure DevOps CLI

Kevin GUIMARD 20 Reputation points


I'm running through this tutorial:
and I encounter an issue when running the command "azd auth login" in GitHub Codespaces' terminal. This very command opens an URL of the kind "http://localhost:43927/?code=0.AQMAoZ4s1SF8sUe..." on my personal laptop, which triggers an error since nothing is running locally on that port. I guess it tries to connect to the server deployed on the Cloud.


Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
307 questions
0 comments No comments
{count} votes

Accepted answer
  1. AirGordon 1,385 Reputation points Microsoft Employee

    I use codespaces quite a lot, and tend to find that logging into Azure needs the --use-device-code flag set.

    Eg. az login --use-device-code or azd auth login --use-device-code

    Hope this helps you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful