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

[bug] azure.yaml schema says default shell is "sh" but error says otherwise #2346

Closed
heaths opened this issue Jun 2, 2023 · 0 comments · Fixed by #2378
Closed

[bug] azure.yaml schema says default shell is "sh" but error says otherwise #2346

heaths opened this issue Jun 2, 2023 · 0 comments · Fixed by #2378
Assignees

Comments

@heaths
Copy link
Member

heaths commented Jun 2, 2023

The azure.yaml.json schema says that the default shell is "sh", but if you don't specify it, something like the following errors:

# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/azure-dev-cli_1.0.1/schemas/v1.0/azure.yaml.json
name: azd
hooks:
  postprovision:
    run: |
      env

ERROR: failed running post hooks: failed running scripts for hooks 'provision', hook configuration for 'postprovision' is invalid, unable to determine script type. Ensure 'Shell' parameter is set in configuration options

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

Successfully merging a pull request may close this issue.

3 participants