I have App Service plan with pricing Standard S1. There is App Service for container with 2 slots (production and slot). Deployed container has endpoint /health and doesn’t have endpoint /healthcheck. When I set “Health check” path as “/healthcheck” (for testing purposes) for non production slot I see that it has Unhealthy state and it's correct:

AppService HealthCheck

Unhealthy Status

After that I run my release which has next steps:

Pipeline tasks

Tasks in YAML view:

AppService Deploy

Swap Slots

And I have success result, but it shouldn’t be. Pipeline Success

Even I use variables described here https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots?tabs=portal#specify-custom-warm-up for deployment slot: WEBSITE_SWAP_WARMUP_PING_PATH=“/healthcheck” WEBSITE_SWAP_WARMUP_PING_STATUSES=“200” I see that warming up was success, but my container doesn’t have endpoint “/healthcheck”

My goal to do pipeline which doesn’t do swap if deployment slot after deploy has Unhealthy state.

0

There are 0 best solutions below