Question 200
A staging slot contains a new App Service release. During a planned slot swap, the production slot must remain online until the staging instances finish initialization. The team also requires the /health/ready endpoint to return HTTP 200 before routing production traffic to those instances. Which configuration best enforces the readiness gate?
Explanation
Correct Answer
The swap-specific warm-up path targets the application readiness endpoint, and the accepted-status list prevents the swap from completing when the response is not HTTP 200. This tests readiness gating, not connection-string stickiness.
Incorrect Answers
Keeping environment-specific secrets in their slots is important but does not configure an HTTP readiness response requirement for the swap.
WEBSITE_WARMUP_PATH applies to application restarts generally; it is not, by itself, the documented swap-specific path plus allowable HTTP status-code gate.
HTTP 500 and 503 signal application failure or unavailability. Accepting them would defeat the readiness validation requirement.