Visual Studio 2017 - deploy to Azure Function v2 (.NetCore v2.1) error: required process (“Web Management Service”) is started

Visual Studio 2017 - deploy to Azure Function v2 (.NetCore v2.1) error: required process (“Web Management Service”) is started

我尝试将 VS2017 中的 Functions Project 部署到 Azure Function (Linux)。但是,我遇到了以下错误:

error : Could not connect to the remote computer (“XXX.scm.azurewebsites.net”). On the remote computer, make sure that Web Deploy is installed and that the required process (“Web Management Service”) is started.

error : Could not connect to the remote computer (“XXX.scm.azurewebsites.net”). On the remote computer, make sure that Web Deploy is installed and that the required process (“Web Management Service”) is started.

此错误来自 Azure 的连接端口。当你使用VS部署Azure Functions但是连接端口失败时,VS会return给你这个错误。

这并不意味着您的 WebDeploy 服务不是 运行。

解法:

第一种解决方法:检查一下防火墙,代理服务器,其他网络设置或者干脆,直接用别的机器下另一个网络。

方案二:在Application中更改WEBSITE_WEBDEPLOY_USE_SCM的值在门户网站上设置您的网站 false,然后在 VS 中下载发布设置。