Skip to content

[Bug] azd deploy hangs/times out for a container-based Function App on host: function #9250

Description

@qiaozha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/functionsAzure FunctionsbugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions