Skip to content

Fail to deploy using az functionapp deployment source config-zip #12251

@Hazhzeng

Description

@Hazhzeng

CLI version
2.0.81

Describe the bug
When deploying a local function app content to Azure Functions on Linux, the deployment can possibly fails if it requires changes in app settings.

There's a race condition here:

  1. If the app settings are changed before the deployment is initiated, the build succeeds.
  2. If the app settings are changed at the same time as the deployment is initiated, the /deployments/latest endpoint will return 5xx errors due to KuduLite restart.
  3. If the app settings are changed after the deployment is started, the build will be interrupted and marked as failed deployment.

To Reproduce

  1. Create a Python Function App in Linux Premium Plan
  2. Prepare a simple Python app content, and compress it into a zip file.
  3. Run the command az functionapp deployment source config-zip -g <resource_group> -n <app_name> --src <local_zip_file>
  4. Wait a while and will see the deployment failure error

Expected behavior
The deployment should succeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Functionsaz functionappService AttentionThis issue is responsible by Azure service team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions