Azure App Service 间歇性部署故障技术求助
自8月1日起,我们的Premium App Service Plan出现间歇性无法部署更新的问题。我们主要通过微软托管的Azure DevOps Pipelines进行部署,该流水线已稳定运行1年以上,近几个月未对流水线或App Service Plan做任何修改(仅微软支持要求的变更除外)。
故障发生时,部署能力会中断长达一天,同时Visual Studio 2022直接发布(备用部署方式)也无法使用。但在此期间,托管的Web应用及Kudu(SCM)端点仍可正常访问且响应正常。
使用AzureRmWebAppDeployment@4任务时,流水线日志中出现以下错误:
Error: Error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC More Information: Could not connect to the remote computer ("XXXXX.scm.azurewebsites.net") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC. Error: The remote server returned an error: (500) Internal Server Error. Error count: 1.
应用运行环境:ASP.NET 6
已尝试的解决方案:
- 采用ZipDeploy方式部署
- 添加应用设置
WEBSITE_RUN_FROM_PACKAGE= 1后,使用ZipDeploy部署 - 添加应用设置
WEBSITE_WEBDEPLOY_USE_SCM= true - 通过Visual Studio发布配置文件部署
- 删除Kudu中的日志
- 删除Kudu中的部署记录
- 删除旧内存转储以释放空间(注:Azure显示仅使用了计划总存储空间的4%)
- 重启App Service / Kudu
- 查阅Stack Overflow上相关的ERROR_COULD_NOT_CONNECT_TO_REMOTESVC问题
已联系微软支持,但对方未理解我们使用的是App Service Plan托管应用(而非自托管或VM)。
内容的提问来源于stack exchange,提问作者Steve B
相关产品推荐
相关产品推荐

