简体   繁体   English

可以通过 REST API 交换 Azure Web 应用部署槽吗?

[英]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?我想通过 http 交换我的 Azure Web 应用程序暂存和生产槽,是否有 api 可以做到这一点? This is the Powershell cmdlet of what I want to do:这是我想要做的 Powershell cmdlet:

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

Indeed, there's a REST API for swapping slots.事实上,有一个用于交换插槽的 REST API。 You can find the REST API documentation here:您可以在此处找到 REST API 文档:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何设置我的Azure帐户以通过REST API进行ARM部署? - How can I set up my Azure account in order to make ARM deployments via the REST API? Azure-每个Web应用程序多个部署? - Azure - Multiple Deployments per Web App? Azure Web应用程序Kudu部署C#6 - Azure web app kudu deployments C# 6 在 Azure Linux Web 应用程序上交换插槽很慢 - Swapping slots on Azure Linux web app slow 具有数据库迁移的Azure Web App部署槽 - Azure Web App deployment slots with database migration 获取要使用PowerShell交换的Azure Web应用程序设置的列表 - Get the list of azure web app settings to be swapped using PowerShell 在 Azure 合作伙伴中心通过 cmdlet 或 rest Z8A5DA52ED126427DA859 注册 Azure 应用程序 - Register Azure App in Azure Partner Center via a cmdlet or rest api Azure Web 应用部署槽,我可以将槽应用换成主生产,然后删除旧的吗? - Azure Web App deployment slots, can I swap a slot app for the main production, then delete the old one? 我可以在 Azure 存储静态网站中使用部署槽之类的东西吗? - Can I use something like deployments slots with Azure Storage Static Website? Azure Web App管理-通过REST进行应用程序设置 - Azure Web App Management - Application Settings via REST
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM