How to perform deployment swap on an Azure WebSite using Powershell? How to perform deployment swap on an Azure WebSite using Powershell? powershell powershell

How to perform deployment swap on an Azure WebSite using Powershell?


Switch-AzureWebsiteSlot -Name "your web site name" -Force


You can use this PowerShell cmdlet:Switch-AzureWebsiteSlot [[-Name] ] [[-Slot1] ] [[-Slot2] ] [-Force] [-Confirm] [-WhatIf] [ ]

[-Force] parameter is used in order to not confirm the swap operation and directly execute

An Example:

C:\PS>Switch-AzureWebsiteSlot -Name YourWebsite