Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run azd pipeline config requires additional operations on Dev Container #72

Open
v-jiaodi opened this issue Oct 16, 2023 · 7 comments
Open

Comments

@v-jiaodi
Copy link
Member

v-jiaodi commented Oct 16, 2023

Describe the issue:
When run azd pipeline config in Dev Container, get error as follow:
image

Repro Steps:

  1. Clone the repo to local and reopen with Dev Container.
  2. Run azd auth login
  3. Run azd pipeline config

Environment:

Expected behavior:
Run azd pipeline config can pass on Dev Container.

@pamelafox for notification.

@pamelafox
Copy link
Collaborator

Looks like it might be microsoft/vscode-remote-release#8488 (comment)
cc @kjaymiller

Does it happen reliably or sporadically?

@v-jiaodi
Copy link
Member Author

@pamelafox Tried multiple times, it happen reliably.

@kjaymiller
Copy link
Contributor

This does seem to happen for me as well...

Looks like it might be microsoft/vscode-remote-release#8488 (comment) cc @kjaymiller

That issue mentioned that it was supposed to be fixed in an update to DevContainers... can we verify that Codespaces uses that new version of DevContainers or should we just add the git safe configuration to include the directory

@v-jiaodi
Copy link
Member Author

v-jiaodi commented Nov 3, 2023

@kjaymiller There is no such issue with CodeSpace and add the git safe configuration to include the directory can reslove it in DevContainer.

@pamelafox
Copy link
Collaborator

I've filed this with azd team to see if they have suggestions, since I don't know why this would be specific to our sample: Azure/azure-dev#2934

@pamelafox
Copy link
Collaborator

Comment from azd team from another thread:

"azd pipeline config won't work from codespaces if you used device-code for auth.

There's a codespaces limitation, as the container hosting the codespaces is not an enrolled-device to Msft, so it can't access MSGraph to create ServicePrincipals.

There's an ugly workaround in case you really need to run pipeline config on codespaces, but I would suggest running that command from your local computer instead"

@v-jiaodi v-jiaodi changed the title Run azd pipeline config requires additional operations on CodeSpace Run azd pipeline config requires additional operations on Dev Container Nov 16, 2023
@v-jiaodi
Copy link
Member Author

@pamelafox I'm sorry for the misunderstanding caused by my mistake. This issue occurs on Dev Container instead of CodeSpace.

For testing azd pipeline config inside codespaces, azd team provided us with specific documents, refer to: https://microsoft.sharepoint.com/:w:/t/AzureDeveloperCLIazdPartners/Eb8miZZ_b01NsmOI1wPoDxEBC1h6SE8wqDNfgDrP4A-7QQ?e=BmYI2p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants