App Service getting 403 error against /admin/host/ping used in autoscaling.

Jonathan Smith (Admin) 5 Reputation points
2024-04-22T19:01:39.7966667+00:00

I've setup the new automatic Azure Autoscale on an App Service running under a P2V2 plan. The app configuration is pretty simple, not much in it, except for Application Insights key, Always On and Session affinty are off, no IP whitelist inplace. When I perform a load test against the app, autoscale is triggered and additional instances begin to spin up but never become fully functional. In the AI logs I noticed "GET /admin/host/ping " which is an endpoint the auto scaling uses is getting 403 errors. Not sure why. Any experienced this?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,904 questions
{count} vote

2 answers

Sort by: Most helpful
  1. hossein jalilian 2,985 Reputation points
    2024-04-22T19:29:08.0266667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    It's possible that the service could be detecting what it perceives as an attack and blocking the client.

    • Rate Limiting
    • Security Rules

    Please check the following articles:

    Quota enforcement


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

  2. VenkateshDodda-MSFT 18,436 Reputation points Microsoft Employee
    2024-05-03T04:58:50.6633333+00:00

    @Jonathan Smith (Admin) Thanks for your patience on this and thanks for sharing the requested details.

    I have checked with App service Engineering team on this and sharing the below.

    There is no effect for any pings to /admin/host/ping returning any 400-level status code (e.g. 4xx) in automatic scaling logs. You can ignore those as well which doesn't have any impact on the application performance.”

    I hope the answer helps. Please let me know if you have any further queries.

    Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.ngineering team on this and sharing the below.

    0 comments No comments