10

I am trying to deploy my code to azure app service using git. But I am getting error "deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details". It was working perfectly 2 days back but suddenly it starts crashing.

There is nothing helpfull in logs.

Error Screenshot

Muhammad Faizan
  • 101
  • 1
  • 1
  • 4

5 Answers5

10

You can try the following workarounds to resolve this issue:

  1. If you are using the VS code then use the VS Code Azure Tool Extension.

  2. In App service -->go to the "Deployment Center" blade, and click on the "Disconnect" button on top. After that re-run the release pipeline.

RKM
  • 1,234
  • 1
  • 4
  • 9
  • 9
    Disconnecting the application from source control in the "Deployment Center", then de-deploying the app again worked for me. But it seems like it's not a permanent fix as I have had to do it several times already over the span of a few days (this was never an issue before a couple days ago). Do you know if this is a known issue, or even if there's a reason for it? – agw2021 May 27 '22 at 17:35
  • @agw2021, do you get any permanent solution for this ? I'm also facing the same issue. – Ajit Medhekar Aug 11 '23 at 12:33
1

For me it was ENABLE_ORYX_BUILD flag (in App Service Configuration) which was enabled on newly created function for some reason. I managed to find a reason after I've disabled it. The requirements of my app failed to install and that's why build was failing.

Mr Patience
  • 1,564
  • 16
  • 30
0

I got this error accompanied by several other messages on the output log. One of the other messages was:

Malformed SCM_RUN_FROM_PACKAGE when uploading built content.

There is another StackOverflow topic which tries to solve this error.

When I tried to create a Function App through Azure Portal and then upload locally developed Functions to that Function App, I would get these errors.

My solution was to create the Function App through VSCode directly, using the VSCode Azure Extension.

Maybe this solution will work the same for App Services.

Vinícius Queiroz
  • 849
  • 1
  • 7
  • 19
0

I got this error twice in a row when attempting to re-deploy from the Azure extension within VSCode. I had been attempting the deployment after first stopping the app service. When I started the app service, then ran the deployment, it worked OK with no error.

I don't know whether that was the solution or whether something else happened in the background, because every time I deploy to Azure I get a different/new error or issue to overcome, but maybe this will help someone anyway.

Jess
  • 151
  • 12
-1

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

After that re-run the pipeline/release in AzureDevOps.