Error deploying code via AzureAppServiceZipDeploy to a Azure AppService deployment slot
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 ?
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
Support Staff 1 Posted by Feodor Fitsner on 27 Sep, 2024 04:44 PM
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.