Tuesday, May 10, 2016

Powershell commands for Deployment slots

1. Powershell commands to set 2 app settings "Sticky to a Slot":

SET-AzureWebsite -Name "mySite" -SlotStickyAppSettingsName @("mySlot", "mySlot2")

2. Powershell Command for Autoswap between Staging and Production Slot:

 SET- AzureWebsite -Name "mySite" -SlotStaging - AutoSwapSlotName Production

3. Poweshell Command to set 2 connection strings as "Sticky to a Slot":

Set-AzureWebsite -Name "mySite" -SlotStickyConnectionStringName @("myConn","MyConn2")

No comments:

Post a Comment