Reputation: 2832
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
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