For me, lack of free space in app service cause that issue. Deleting some old log files via kudu resolved the issue right away
Azure Web App - VS2019 Publish - Fails randomly
I have a few deployments of the same code (dev, test, production, etc..), its a asp.net 3.1 website.
Currently I just deploy to each app service through Visual Studio 2019 Publish window. I will want to setup azure pipelines at some point but right now it isn't a priority.
The app runs fine, the problem I have is that randomly I will get this error during publish:
Severity Code Description Project File Line Suppression State
Error Web deployment task failed. (Could not connect to the remote computer ("<myapp>.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.)Could not connect to the remote computer ("<myapp>.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.
The remote server returned an error: (400) Bad Request. RiseFSM 0
It could be after 3 deploys, could be after 20, could even happen the same day as a successful publish. The only way I have fixed it is by deleting the app service and re-deploying and configuring for the environment.
Here are the links I have reviewed that didn't help.
search
web-deploy-error-codes - I don't know how to "ensure msdepsvc or wmsvc service is started on the remote server" since its a app service.
I am stuck and would really like some help fixing this issue.
2 answers
Sort by: Most helpful
-
-
brtrach-MSFT 16,431 Reputation points Microsoft Employee
2021-02-03T03:39:24.757+00:00 @Jordon Kraft We apologize for the error that you are receiving when performing your deployment.
Can you please try to set an app setting for your web app? The app setting and value are WEBSITE_WEBDEPLOY_USE_SCM = false
Please let us know if this setting resolves the error. We look forward to your reply.