Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/container-apps/health-probes.md
1# Container Apps Health Probes23Always configure health probes for production workloads.45## Liveness Probe67Detects if container is alive. Failure triggers restart.89```bicep10probes: [11{12type: 'liveness'13httpGet: {14path: '/health'15port: 808016}17initialDelaySeconds: 1018periodSeconds: 3019failureThreshold: 320}21]22```2324## Readiness Probe2526Detects if container is ready to receive traffic.2728```bicep29probes: [30{31type: 'readiness'32httpGet: {33path: '/ready'34port: 808035}36initialDelaySeconds: 537periodSeconds: 1038failureThreshold: 339}40]41```4243## Startup Probe4445For slow-starting containers. Delays other probes until startup succeeds.4647```bicep48probes: [49{50type: 'startup'51httpGet: {52path: '/health'53port: 808054}55initialDelaySeconds: 056periodSeconds: 1057failureThreshold: 30 // 30 * 10s = 5 min max startup58}59]60```6162## Recommendations6364| Probe | Path | Initial Delay | Period |65|-------|------|---------------|--------|66| Liveness | `/health` | 10s | 30s |67| Readiness | `/ready` | 5s | 10s |68| Startup | `/health` | 0s | 10s |69