How to deploy swap on Azure WebSite using Powershell?

This question relates to the Azure Server Manager (ASM) Web site application slot feature, which allows you to create a website under an existing one. I would like to swap my middleware and production environment with Powershell, but I did not find a way to do this with the currently available commands. Does anyone have an idea how to do this?

+6
source share
2 answers

Switch-AzureWebsiteSlot -Name "your website name" -Force

+5
source

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

[-Force] used to not confirm the swap operation and execute directly

Example:

 C:\PS>Switch-AzureWebsiteSlot -Name YourWebsite 
+2
source

All Articles