When Deploy FunctionApp to slot -> Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

Malte Tönjes 6 Reputation points
2021-05-04T15:15:59.937+00:00

When I deploy my Windows FunctionApp to a slot I get this error:

2021-05-04T13:10:14.0501876Z ##[error]Failed to deploy web package to App Service.
2021-05-04T13:10:14.0521125Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

Strangly there is no problem when I deploy the same release pipeline to production with this option "Deploy to Slot or App Service Environment" unchecked.
Since its working for production for me this is very weird...So do anybody have an idea whats going on?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Sergey Nosov 21 Reputation points
    2021-09-15T23:08:10.02+00:00

    In the Function App, go to the "Deployment Center" blade, and click on the "Disconnect" button on top.

    After that re-run the release pipeline.

    HTH

    4 people found this answer helpful.

  2. MayankBargali-MSFT 70,936 Reputation points Moderator
    2021-05-07T06:57:09.36+00:00

    @Malte Tönjes Welcome to Microsoft Q&A! Thanks for posting the question.

    As per the error message you are doing the Zip deployment. Can you please confirm if you have configured any other deployments like bitbucket, GitHub, etc for your function app? If this is the case, then you could observe the above issue.

    0 comments No comments

  3. vinay chitrakathi 1 Reputation point
    2021-07-15T06:53:14.297+00:00

    Hi @MayankBargali-MSFT ,
    I am trying to deploy a python flask app from GitHub but it gives me this same error-

    Error: Failed to deploy web package to App Service.
    Error: Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer to the logs for more details.

    My Github repo structure is -

    static
    templates
    Procfile
    README.md
    app
    requirements
    runtime

    This is the repo link - https://github.com/vinrok/LoanPredictionApp

    Kindly help me to solve this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.