Azure App Service 持续部署 Webhook 不起作用
Azure App Service Continuous Deployment Webhook doesn't work
(我已经 asked in the Microsoft Forum 但没有得到答案。)
我有一个应用服务使用私有注册表并启用了持续部署。该应用 运行 完全没问题,但持续部署的 Webhook URL 不工作。
这是对 webhook 的 HTTP GET 请求的输出:
$ curl https://$MySiteName:SomeLongPassword@mysite.scm.azurewebsites.net/docker/hook
"No route registered for '/docker/hook'"
Microsoft 论坛中的某个人告诉我尝试 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>
我在 Microsoft Azure 文档中没有找到如何使用 webhook 的任何地方。
经过更多的搜索,我找到了this answer。
答案建议执行以下操作:
curl https://$MySiteName:SomeLongPassword@mysite.scm.azurewebsites.net/docker/hook -H "" -d ""
不知道为什么会这样,我希望 Azure 文档中有一些东西。
(我已经 asked in the Microsoft Forum 但没有得到答案。)
我有一个应用服务使用私有注册表并启用了持续部署。该应用 运行 完全没问题,但持续部署的 Webhook URL 不工作。
这是对 webhook 的 HTTP GET 请求的输出:
$ curl https://$MySiteName:SomeLongPassword@mysite.scm.azurewebsites.net/docker/hook
"No route registered for '/docker/hook'"
Microsoft 论坛中的某个人告诉我尝试 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>
我在 Microsoft Azure 文档中没有找到如何使用 webhook 的任何地方。
经过更多的搜索,我找到了this answer。
答案建议执行以下操作:
curl https://$MySiteName:SomeLongPassword@mysite.scm.azurewebsites.net/docker/hook -H "" -d ""
不知道为什么会这样,我希望 Azure 文档中有一些东西。