Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using web deploy, how do you publish to a particular slot?

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

enter image description here

Click the "Get publish..." button to get the publish settings for a particular slot.

like image 353
richard Avatar asked Oct 21 '15 17:10

richard


People also ask

How do I deploy deployment slots?

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.

How do deployment slots work in Azure?

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.

What does deployment slot setting mean?

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.


1 Answers

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.

like image 183
BenV Avatar answered Sep 26 '22 15:09

BenV