Container registry webhook to App Service with private endpoint gets 403 Forbidden

Marek Čambál 11 Reputation points
2021-03-18T12:41:55.217+00:00

Situation
We have: App Service with VNet integration and private endpoint, Application Gateway (for SSL offloading) routing public requests to App Service, DNS zone and Private DNS zone are set up. One picture for thousand words:

79169-webhook-problem.png

Problem
Continuous deployment process does not work: in the deployment center of the App Service I have configured to pull the image tagged as latest from the Container registry (it gets deployed just fine) and I have also checked the Continuous deployment "yes". The App Service created a webhook in Container registry's configuration.

  • When a new image tagged as latest is pushed to Container registry the webhook is triggered but receives 403 Forbidden from the App Service's SCM endpoint.
  • When trying to ping the webhook from Container registry's configuration page manually it also receives 403 Forbidden from the App Service's SCM endpoint.
  • When making manual HTTP POST request from the Linux Virtual Machine (using wget or curl) it receives 401 Unauthorized from the App Service's SCM endpoint.

I have double checked:

  • the username/password is correct
  • the URL & Authorization header in wget/curl are correct
  • application gateway with App Service works correctly (App Service's private endpoint is reachable)
  • manual request (wget, curl) to App Service from Linux Virtual Machine also works just fine (App Service's private endpoint is reachable)
  • DNS lookup for mywebapp.azurewebsites.net resolves correctly to private IP address
  • DNS lookup for mywebapp.scm.azurewebsites.net resolves correctly to private IP address

Why we are always receiving 403 Forbidden / 401 Unauthorized from App Service's SCM endpoint?

Any help/ideas would be appreciated, I need to finish up setting the CD process.

Thank you.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

6 answers

Sort by: Most helpful
  1. Raymond de Jong 81 Reputation points
    2025-07-17T11:52:24.7266667+00:00

    3 years old issue and still not working when only using private endpoints. We have a workaround to restart the app after pushing an new image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.