Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.94k stars 4.08k forks source link

"Azd auth login" fails in Github Codespaces #1855

Closed GiuseppeGalilei closed 3 weeks ago

GiuseppeGalilei commented 2 months ago

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run azd auth login from github codespace

During the login phase you get redirected to a localhost webpage that doesn't exist, which causes the login to fail. instead, using azd auth login --use-device-code seems to work fine. A similar issue has been reported here: https://github.com/Azure/azure-cli/issues/20315

To fix it, I guess it would be enough to provide this alternative command on the README, for codespace users.

pamelafox commented 2 months ago

The azd CLI is meant to autodetect that device code must be used. Can you file an issue at https://github.com/Azure/azure-dev/ or comment on https://github.com/Azure/azure-dev/issues/1250 that you found yourself needing to use device code?