azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

WebApp:Switch-AzureWebsiteSlot should support "Swap with Preview"

Open rhythmnewt opened this issue 10 years ago • 5 comments

The azure management portal supports the "Swap with Preview" option on the web apps. It would only make sense that Switch-AzureWebsiteSlot also supported it.

rhythmnewt avatar Aug 30 '16 02:08 rhythmnewt

@akurmi can you take a look

markcowl avatar Sep 06 '16 05:09 markcowl

'Swap-AzureRmWebAppSlot' PowerShell cmdlet supports this swap mode.

akurmi avatar Sep 07 '16 16:09 akurmi

Do you have link to correct usage or sample usage? I will need to run this as part of VSO release off a build agent.

rhythmnewt avatar Sep 07 '16 16:09 rhythmnewt

Apply slot config: Swap-AzureRmWebAppSlots -ResourceGroupName Default-Web-EastAsia -Name webappslottest -SourceSlotName staging -DestinationSlotName production -SwapWithPreviewAction ApplySlotConfig

Complete slot swap: Swap-AzureRmWebAppSlots -ResourceGroupName Default-Web-EastAsia -Name webappslottest -SourceSlotName staging -DestinationSlotName production -SwapWithPreviewAction CompleteSlotSwap

Reset slot swap: Swap-AzureRmWebAppSlots -ResourceGroupName Default-Web-EastAsia -Name webappslottest -SourceSlotName staging -DestinationSlotName production -SwapWithPreviewAction ResetSlotSwap

akurmi avatar Sep 07 '16 18:09 akurmi

Thank you!

rhythmnewt avatar Sep 07 '16 18:09 rhythmnewt