I'm using web deploy (with appveyor) to publish to my web app. How can I publish to a particular slot though (i.e. staging) and not to the production slot?
What is the server url for a particular slot?
Edit
If the app scm is:
https://myappprod.scm.azurewebsites.net:443/msdeploy.axd?site=myappprod
Things I've tried:
https://myappprod.scm.azurewebsites.net:443/msdeploy.axd?site=myappprod-staging
https://myappprod-staging.scm.azurewebsites.net:443/msdeploy.axd?site=myappprod-staging
https://myappprod-staging.scm.azurewebsites.net:443/msdeploy.axd?site=myappprod
No love so far...
Solution - For posterity
Click the "Get publish..." button to get the publish settings for a particular slot.
Use the following steps to create a deployment setting: Navigate to Deployment slots in the function app, and then select the slot name. Select Configuration, and then select the setting name you want to stick with the current slot. Select Deployment slot setting, and then select OK.
Azure makes sure that the staging slot has the same configuration values. As a result, it uses the same database and cache values that the production slot does. Now that the new version is ready in the deployment slot, it is to be deployed in production. You can push the new version to production by swapping.
Deployment Slot Setting With this setting in place, database connection strings are not swapped when the slots are swapped. So staging slot will always point to the staging database and production slot will always point to the production database.
You can download the publishsettings file for a specific deployment slot. From looking at one of those, it seems the publish URL is of the form
https://myappprod-staging.scm.azurewebsites.net:443/msdeploy.axd?site=myappprod__staging.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With