Dan O'Leary
Dan O'Leary

Reputation: 2832

Can Azure web app deployments slots be swapped via the REST API?

I want to swap my Azure web app staging and production slots via http, is there an api to do this? This is the Powershell cmdlet of what I want to do:

Invoke-AzureRmResourceAction -ResourceGroupName {my resource group} -ResourceType Microsoft.Web/sites/slots -ResourceName {my resource name} -Action slotsswap -Parameters $ParametersObject -ApiVersion 2015-07-01

Upvotes: 0

Views: 648

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136369

Indeed, there's a REST API for swapping slots. You can find the REST API documentation here:

https://learn.microsoft.com/en-us/rest/api/appservice/webapps#WebApps_SwapSlotSlot

Upvotes: 1

Related Questions