Search code examples
azurevisual-studio-2017azure-functionsazure-linux

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


I tried to deploy Functions Project in VS2017 to Azure Function (Linux). However, I faced below error:

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.


Solution

  • 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.

    This error comes from the connection port to Azure. When you use VS to deploy Azure Functions but failed to connect to the port, the VS will return this error to you.

    This doesn't mean that your WebDeploy Service is not running.

    Solution:

    First solution: Have a check of the firewall, proxy server, other network settings or simply, use another machine directly under another network.

    Second solution: Change the value of WEBSITE_WEBDEPLOY_USE_SCM in the Application Settings of your website on portal to false, then download the publish setting in VS.