Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure App Service Continuous Deployment Webhook doesn't work

(I already asked in the Microsoft Forum but didn't get an answer.)

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.

Here's the output of an HTTP GET request to the webhook:

$ curl https://\$MySiteName:[email protected]/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:

$ curl -X POST https://\$MySiteName:[email protected]/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.

like image 804
Eyal C Avatar asked Jul 20 '26 15:07

Eyal C


1 Answers

After more searching, I found this answer.

The answer suggests to do the following:

curl https://\$MySiteName:[email protected]/docker/hook -H "" -d ""

No idea why this works and I wish there was something in the Azure docs.

like image 68
Eyal C Avatar answered Jul 23 '26 07:07

Eyal C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!