I am following this article to create a simple app service wiht container image pulled from an ACR: https://learn.microsoft.com/en-us/azure/app-service/tutorial-custom-container?tabs=azure-cli&pivots=container-linux.
Everything works fine, except the last webhook part where the app service will be notified in case there is an updated image available. The web hook call from ACR to app service always returning 401 unauthorized. Same behavior from fiddler call in case I try to access the web hook endpoint directly using a POST ping command. It seems the basic auth to access the SCM of the web app is not working.
Steps:
- Create an acr and pull a default image from MCR into the ACR to use later in the web app and enable admin access/keys for the ACR. 2: Create a linux based container web app pointing to above ACR using admin key & use the image pulled earlier.
At this point the web app is up in a few seconds after the initial pull.
- Now enable continuous integration in the web app, that will create a webhook in the ACR automatically.
- Go back to the webhook of the ACR & try ping test, which fails with 401 unauthorized.
- Additionally take the web app's WebHook URL & try accessing the same using a CURL/postman/fiddler POST call, same failure with 401 unauthorized.
- Try pushing the same image to ACR with --force flag to rigger the webhook, then check logs & see the same 401 error in the webhook
What am I missing here?