简体   繁体   English

Azure App Service连续部署Webhook不起作用

[英]Azure App Service Continuous Deployment Webhook doesn't work

(I already asked in the Microsoft Forum but didn't get an answer.) (我已经在Microsoft论坛中问过,但没有得到答案。)

I have an App Service using a private registry with Continuous Deployment enabled. 我有一个使用私有注册表并启用了持续部署的应用程序服务。 The app is running totally fine but the Webhook URL for the Continuous Deployment doesn't work. 该应用程序运行正常,但持续部署的Webhook URL不起作用。

Here's the output of an HTTP GET request to the webhook: 这是对Webhook的HTTP GET请求的输出:

$ curl https://\$MySiteName:SomeLongPassword@mysite.scm.azurewebsites.net/docker/hook
"No route registered for '/docker/hook'"

Someone in the Microsoft Forum told me to try a POST request, so here's the output of that: 微软论坛中的某人告诉我尝试POST请求,所以这是输出:

$ curl -X POST https://\$MySiteName:SomeLongPassword@mysite.scm.azurewebsites.net/docker/hook
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>

I haven't found anywhere in the Microsoft Azure docs how to use the webhook. 我没有在Microsoft Azure文档中的任何地方找到如何使用Webhook。

After more searching, I found this answer . 经过更多搜索,我找到了这个答案

The answer suggests to do the following: 答案建议执行以下操作:

curl https://\$MySiteName:SomeLongPassword@mysite.scm.azurewebsites.net/docker/hook -H "" -d ""

No idea why this works and I wish there was something in the Azure docs. 不知道为什么这行得通,我希望Azure文档中有一些东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VSTS的Azure App Service连续部署 - Azure App Service Continuous Deployment with VSTS Azure Function 服务总线触发器在部署后不起作用 - Azure Function Service Bus Trigger Doesn't Work After the Deployment Azure容器注册表中的Azure App Service连续部署 - Azure App Service continuous deployment from Azure Container Registry 使用Github的Azure&#39;Linux Web App&#39;应用服务连续部署被破坏 - Azure 'Web App on Linux' app service continuous deployment with Github is broken Azure- 函数应用的 zip 推送部署不起作用 - Azure- zip push deployment for a function app doesn't work 从Visual Studio Team Services到Azure App Service的连续部署 - Continuous deployment from Visual Studio Team Services to Azure App Service Azure 管道部署到应用服务失败:“资源不存在。资源在部署之前应该存在”。 但应用服务正在运行 - Azure Pipeline Deployment to App Service fails: "Resource doesn't exist. Resource should exist before deployment". But App Service is running Azure云服务连续部署服务配置 - Azure Cloud service continuous deployment service configuration 在Azure上部署后授权不起作用 - Authorization doesn't work after deployment on azure 在调用服务之前,Azure上的.net核心应用程序部署不会启动 - .net core app deployment on Azure doesn't bootstrap until a service is invoked
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM