Skip to content

Fix azure.yaml to use language: js for azd deploy support#12

Open
ggailey777 wants to merge 2 commits intoAzure-Samples:mainfrom
ggailey777:fix/azure-yaml-language-js
Open

Fix azure.yaml to use language: js for azd deploy support#12
ggailey777 wants to merge 2 commits intoAzure-Samples:mainfrom
ggailey777:fix/azure-yaml-language-js

Conversation

@ggailey777
Copy link
Copy Markdown
Contributor

Summary

The azd CLI does not have a built-in framework packager for PowerShell.
Using language: powershell causes azd deploy to fail, and using
language: custom with dist: requires alpha opt-in.

This PR changes the service language to js, which uses the generic ZIP
packager that works correctly for any Functions runtime. The actual runtime
is determined by the FUNCTIONS_WORKER_RUNTIME app setting (set to
powershell in Bicep), not by this field.

See also: Azure/azure-dev#4538

Changes

  • Set language: js in the services block of azure.yaml

  • Added explanatory comment

  • Removed postprovision hook (no longer needed — azd deploy handles deployment)

  • Deleted scripts/deploy.ps1 and scripts/deploy.sh

@ggailey777 ggailey777 force-pushed the fix/azure-yaml-language-js branch 5 times, most recently from c6f86fb to 91ed5c2 Compare April 28, 2026 23:03
The postprovision hook ran 'func azure functionapp publish' to deploy.
With a services block using 'language: js', azd deploy handles this
natively via the generic ZIP packager. The deploy scripts are no longer
needed. The actual runtime is set by FUNCTIONS_WORKER_RUNTIME=powershell
in Bicep.
@ggailey777 ggailey777 force-pushed the fix/azure-yaml-language-js branch from 91ed5c2 to 5f2cb10 Compare April 28, 2026 23:06
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

Successfully merging this pull request may close these issues.

1 participant