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

AZ CLI DevContainer Feature doesn't install extensions #286

Open
damoodamoo opened this issue Apr 26, 2023 · 1 comment
Open

AZ CLI DevContainer Feature doesn't install extensions #286

damoodamoo opened this issue Apr 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@damoodamoo
Copy link
Member

The json for the devcontainer in the repo doesn't install the extensions specified, and a workaround has to be used to 'manually' install the extension currently.

@damoodamoo damoodamoo added the bug Something isn't working label Apr 26, 2023
@damoodamoo damoodamoo mentioned this issue Apr 26, 2023
2 tasks
@martinpeck
Copy link
Member

This appears to be due to an interaction between the azure-cli feature and the azure-cli-persistence feature within the dev container.

The azure-cli-persistence feature creates and mounts a volume so that the contents of the .azure folder persist across devcontainer builds. This allows a developer's login to persist, but it also means that extensions installed manually persist.

For now, the work around is:

  • remove any reference to installing azcli extensions from the devcontainer.json
  • install the required azcli extensions using a postCreate command, and a bash script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants