You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

从Visual Studio发布Azure云服务(扩展支持)失败:slotType属性不存在

Azure Cloud Services (Extended Support) 发布失败:slotType 属性不存在错误

问题详情

从Visual Studio发布Azure Cloud Services (extended support)实例时失败,报错详情如下:

22:25:06 - Uploading 'E:\Projects\MyCloudService\bin\Release\app.publish\MyCloudService.cspkg' as 'MyCloudService-3b0df582.cspkg' to storage account...
22:25:44 - Uploading 'E:\Projects\MyCloudService\bin\Release\app.publish\ServiceConfiguration.Cloud.cscfg' as 'ServiceConfiguration.Cloud-3b0df582.cscfg' to storage account...
22:25:44 - Checking if all the certificates exist in key vault 'https://mykeyvault.vault.azure.net/'...
22:25:46 - Preparing deployment for MyCloudService_2023-07-16T222446 with Subscription ID '...' using Resource Management URL 'https://management.azure.com/'...
22:25:46 - Starting...
22:26:12 - Deployment Status: Failed.
22:26:12 - The deployment through Azure Resource Management failed.
Code: DeploymentFailed
Message: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.
Detail: Unable to process template language expressions for resource '<resource ID>' at line '1' and column '8784'. 'The language expression property 'slotType' doesn't exist, available properties are 'loadBalancerConfigurations, swappableCloudService'.'

已尝试的解决方案

  • 处理发布配置中的<AzureSlot>节点:移除自动添加的<AzureSlot>Production</AzureSlot>,或修改为<AzureSlot>Staging</AzureSlot>,均未解决问题
  • 发现bin\Release目录下生成的部署模板和参数文件中存在slotType引用,但这类文件每次发布都会被重新生成,手动修改无法持久生效
  • 新建发布配置文件,问题依然存在
  • 尝试发布今年4月初成功部署过的旧代码版本,同样触发相同错误

怀疑原因及进展

推测是Visual Studio更新导致ARM模板生成逻辑异常,已将问题提交至微软开发者社区,寻求进一步解决思路。

内容的提问来源于stack exchange,提问作者Piedone

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 00:10:25