Question:
In Azure App Service Health Checks, when using your own authentication system, how can you authenticate the health check request and ensure that it is originating from the App?
Answer:
For private endpoints check if x-ms-auth-internal-token request header equals the hashed value of WEBSITE_AUTH_ENCRYPTION_KEY environment variable. You should first use features such as IP restrictions, client certificates, or a Virtual Network to restrict application access.