Open v-jiaodi opened 1 year ago
Looks like it might be https://github.com/microsoft/vscode-remote-release/issues/8488#issuecomment-1549107575 cc @kjaymiller
Does it happen reliably or sporadically?
@pamelafox Tried multiple times, it happen reliably.
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
@kjaymiller There is no such issue with CodeSpace and add the git safe
configuration to include the directory can reslove it in DevContainer.
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: https://github.com/Azure/azure-dev/issues/2934
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"
@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
Describe the issue: When run
azd pipeline config
in Dev Container, get error as follow:Repro Steps:
azd auth login
azd pipeline config
Environment:
Expected behavior: Run
azd pipeline config
can pass on Dev Container.@pamelafox for notification.