Summary
A container-based Function App (linuxFxVersion=DOCKER|...) declared as host: function causes azd deploy to attempt a code/zip package deploy, which is incompatible and hangs.
What happens
With:
services:
function-app:
host: function
language: ts
azd deploy function-app hangs at "Uploading deployment package" for ~20 min, then exits 1. Because the deploy fails, the global postdeploy is skipped (in our case the Logic App workflow update never runs).
Current workaround
- change
azure.yaml to host: appservice, language: docker, remoteBuild: true
- a predeploy hook builds via
az acr build, sets the image name, and az functionapp config container set to repoint
- deploy then finishes in ~7 min and global
postdeploy runs
Ask
azd should detect a container-based Function App under host: function and perform a container deploy (or fail fast with a clear message) instead of attempting an incompatible zip/code package deploy that hangs.
Context: encountered while deploying a multi-component AI/chat service (App Service + Function App + Logic App + Foundry hosted agent) end-to-end with azd provision/deploy in Azure/azure-sdk-tools tools/sdk-ai-bots/deployment. We currently work around this with a TypeScript hook.
Summary
A container-based Function App (
linuxFxVersion=DOCKER|...) declared ashost: functioncausesazd deployto attempt a code/zip package deploy, which is incompatible and hangs.What happens
With:
azd deploy function-apphangs at "Uploading deployment package" for ~20 min, then exits 1. Because the deploy fails, the globalpostdeployis skipped (in our case the Logic App workflow update never runs).Current workaround
azure.yamltohost: appservice, language: docker, remoteBuild: trueaz acr build, sets the image name, andaz functionapp config container setto repointpostdeployrunsAsk
azdshould detect a container-based Function App underhost: functionand perform a container deploy (or fail fast with a clear message) instead of attempting an incompatible zip/code package deploy that hangs.Context: encountered while deploying a multi-component AI/chat service (App Service + Function App + Logic App + Foundry hosted agent) end-to-end with
azdprovision/deploy in Azure/azure-sdk-toolstools/sdk-ai-bots/deployment. We currently work around this with a TypeScript hook.