Error deploying code via AzureAppServiceZipDeploy to a Azure AppService deployment slot

Jens Fiedler's Avatar

Jens Fiedler

27 Sep, 2024 12:27 PM

Hello,

we are deploying a webApp to Azure WebApp. Everything is working fine with the setting "AzureAppServiceZipDeploy" as long as we deploy to production slot.

But when changing to staging slot - we get the error "AzureAppServiceZipDeploy "An error occurred while sending the request".

I tried both with and without the optional parameter slot. Without web parameter 'website' has value of our webApp-slot-webApp name from Azure portal. Having the parameter slot given with the slot-name I chose website parameter to be the production (webApp) site name. Of course we did use the credentials from "user-scope" shown in the "Azure deployment center" when using the parameter slot.

Whatever combination I tried every request for deploying to slot via appveyor build failed with that general error message. Deploying to slot via VisualStudion works as fine as deployment via Appveyor to production slot.

Where could the error be ? How can we see the requests response (i.e. 401 or 501) so that we get to know what is wrong ?

  1. Support Staff 1 Posted by Feodor Fitsner on 27 Sep, 2024 04:44 PM

    Feodor Fitsner's Avatar

    Hi Jens,

    Could it be related to a random hash recently introduced by Azure web sites? Check here for the solution: https://help.appveyor.com/discussions/problems/37081-unable-to-depl...

    Deploy with credentials from a downloaded publishing profile, not a portal.

    Zip deployment is very simple from a technical standpoint. You can zip deploy to Azure websites even with curl: https://gist.github.com/atrauzzi/187e38127634bb97a77cc71dcc1ef1b0

    AppVeyor uploads to https://{website_name_from_settings}/api/ and Basic auth.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM