azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Update README.md to use in codespaces device code

Open olivMertens opened this issue 1 year ago • 4 comments

if not the codesapces azd auth login will fail

Purpose

  • Launch azd auth login in codespaces will failed, added the correct process to permit use azd auth login in codespaces

Does this introduce a breaking change?

[ ] Yes
[ x ] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ x ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

olivMertens avatar Feb 22 '24 14:02 olivMertens

Codespaces should autodetect that device code must be used. If its not, thats a bug. Is this local Codespaces extension or in the browser?

cc @vhvb1989 @jongio

pamelafox avatar Feb 22 '24 15:02 pamelafox

Codespaces should autodetect that device code must be used. If its not, thats a bug. Is this local Codespaces extension or in the browser?

cc @vhvb1989 @jongio

Within the browser @pamelafox .

azd checks if you are running in codespaces and in a web-browser and automatically set use-device-code=true

azd runs the command code --status, which would return: "The --status argument is not yet supported in browsers" and uses as a way to know about how vscode is running (web or non web). As such, is vscode changes this behavior and implement code --status for the web, azd would stop knowing about it.

vhvb1989 avatar Feb 22 '24 18:02 vhvb1989

Codespaces should autodetect that device code must be used. If its not, thats a bug. Is this local Codespaces extension or in the browser?

cc @vhvb1989 @jongio

in the browser Yesterday i just used azd login in my codespace and i failed i used the command with use-device-code and its starts correctly

olivMertens avatar Feb 23 '24 11:02 olivMertens

Can you screenshot what happened when you ran azd auth login? Can you also screenshot the results of running code --status?

pamelafox avatar Feb 23 '24 15:02 pamelafox

Closing this as we haven't heard back.

pamelafox avatar Mar 06 '24 13:03 pamelafox