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.

  2. 2 Posted by Jens Fiedler on 10 Oct, 2024 08:58 AM

    Jens Fiedler's Avatar

    Hi,

    using the Azure appService website name from the "default domain" without ".azurewebsites.net" made it.
    I had so to use the username and password from the downloaded publish profile.
    Difference is that there is a suffix (in my case "-we") which is NOT in the publish profiles msdeploySite BUT which is part of the destinationAppUrl.

    Thanks for your help.

    BR

    Jens Fiedler
    Senior software developer, Proteria AS

    [https://assets.website-files.com/6245a85e41916a082526f84c/635151ee5ec047b942187b61_signature-proteria-logo.png]

    Dronning Eufemias gate 16, 0191 Oslo
    +47 452 86 660

    :arrow_right_hook: Billigemballasje.no<http://billigemballasje.no>
    :arrow_right_hook: www.proteria.no<http://www.proteria.no>
    :arrow_right_hook: www.proteria.de<http://www.proteria.de>

    ________________________________

  3. Support Staff 3 Posted by Feodor Fitsner on 10 Oct, 2024 04:27 PM

    Feodor Fitsner's Avatar

    Thanks for letting know!

  4. Feodor Fitsner closed this discussion on 10 Oct, 2024 04:27 PM.

Comments are currently closed for this discussion. You can start a new one.

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