Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Thank you for reaching us regarding the issue.
Azure App Service Health Check works by periodically sending HTTP requests to a configured URL path on your application. If that path returns any HTTP status code outside the range 200–299 (including 404), the instance is considered unhealthy.
Microsoft explicitly states:
- There is no default health check path
- The configured path must exist in the application
- 404 (Not Found) is treated as a health check failure
Because your React application is returning 404 for the configured health check URL, App Service correctly evaluates the application as unhealthy.
React applications typically serve only static files (for example, /index.html). If the health check path is set to a route that does not physically exist on the server (such as /health or /api/health without a backend), App Service will receive a 404 response, which causes the health check to fail.
Resolution steps:
- Configure the Health Check path to a valid URL that returns HTTP 200–299, such as
/, provided that it loads successfully - Ensure the configured health check path exists in the application and always returns a successful response
- Disable Health Check if it is not required for your scenario (Health Check is optional and mainly benefits multi‑instance apps)
Reference:
https://learn.microsoft.com/en-us/azure/app-service/monitor-instances-health-check?tabs=node
Kindly let us know if the above helps or you need further assistance on this issue.
Please "accept" if the information helped you. This will help us and others in the community as well.