`bash` is not supported as shell type in azure.yaml hooks configuration
Description:
Running azd up in the Codespaces and Devcontainer environment failed with the following error:
After changing bash to sh in the hooks configuration of azure.yaml, a "permission denied" error occurred, as shown below:
Repro Steps:
- Open in
CodespacesorDevcontainer. - Run
azd auth login --use-device-code. - Run
azd up.
Environment:
- Azd version: azd version 1.15.1 (commit b8385e796d2a4b2e5b431ddf3fcc2069034d7ce3)
- OS:
CodespacesandDevcontainer
Expected behavior:
azd up command can be successfully run on Codespaces and Devcontainer.
Suggestion:
- Update
bashtoshin the hooks configuration of azure.yaml. - Run the command
sudo chmod +x ./scripts/generate-settings.shto add permissions.
@thegovind and @hemarina for notification.
fixed it in main. Please try again @faynef
@thegovind Based on the latest main branch code test, this issue has not been fixed and can still be reproduced.
@faynef - Could you please try again. I just fixed this
@thegovind This issue can still be reproduced. The root cause is that the hooks configuration in azure.yaml does not support using bash as the shell type.
You can fix it by update bash to sh in the hooks configuration of azure.yaml.
@Menghua1 - this is now fixed. Could you please try it again
@thegovind Yes, based on the latest code test, this issue has been fixed and cannot be reproduced.