Incident Triage & Health Check Runbook
First-5-minutes triage commands and symptom-first recovery playbooks for Container Apps, passwordless RBAC, order orchestration, vector ingestion, and AI pipelines.
When to Use & Blast Radius
Use this runbook as your primary starting point during any live service degradation, failed checkout, search staleness, or authentication outage. Triage commands are read-only; mitigation commands (restarting revisions or modifying RBAC) affect live traffic for the targeted <APP_NAME>.
In Staging and Production, internal /health and /alive routes are not exposed externally.
Verify service health using Container App revision status, platform system logs, and API
Gateway HTTP responses.
Incident Triage Flow
Loading graph...
Pre-Flight Check
Set the active Azure subscription and list all Container Apps in <RESOURCE_GROUP> to identify unhealthy workloads:
az account set --subscription "<SUBSCRIPTION_ID>"az containerapp list --resource-group "<RESOURCE_GROUP>" \ --query "[].{Name:name, Status:properties.runningStatus, LatestRevision:properties.latestRevisionName}" -o tableProcedure (First 5 Minutes)
Inspect revision health and replica counts
Check whether the active revision of
<APP_NAME>isHealthyor stuck inActivating/Failed:Terminal window az containerapp revision list --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" \--query "[].{Revision:name, Active:properties.active, Health:properties.healthState, Provisioning:properties.provisioningState, Replicas:properties.replicas}" \-o tableTail live console and system logs
Capture real-time application errors and Container App lifecycle events:
Terminal window az containerapp logs show --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" --type console --tail 100az containerapp logs show --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" --type system --tail 50Inspect Message Broker dead-letter queue activity
Check whether Ordering Service, Basket Service, Notification Service, or Finance Orchestrator are routing poison messages to native dead-letter queues (
bookworm.<ENV>.<SERVICE>.dead-letter-queue):Terminal window WORKSPACE_ID=$(az monitor log-analytics workspace list --resource-group "<RESOURCE_GROUP>" --query "[0].customerId" -o tsv)az monitor log-analytics query --workspace "${WORKSPACE_ID}" \--analytics-query "ContainerAppConsoleLogs_CL | where TimeGenerated > ago(1h) | where Log_s has_any ('dead-letter','ConsumeException','Failed') | project TimeGenerated, ContainerAppName_s, Log_s | order by TimeGenerated desc | take 30" \-o tableRestart a stalled revision or roll back
Restart the active revision if the container is deadlocked or recovering from a transient dependency/RBAC propagation delay. If a recent release caused the regression, roll back immediately via Deployment & Rollback RunbookCustom DocDeployment & Rollback RunbookOperator runbook for deploying BookWorm releases, shifting Container App revision traffic, and executing instant rollbac...Ownerplatform-engineering-teamOpen doc.
Terminal window az containerapp revision restart \--name "<APP_NAME>" \--resource-group "<RESOURCE_GROUP>" \--revision "<REVISION_NAME>"Consult Azure SRE Agent for automated root-cause correlation
If an Azure SRE Agent is attached to
<RESOURCE_GROUP>, inspect its active investigation threads to correlate Container Apps revision failures, Application Insights exceptions, and recent deployments before applying manual fixes:Terminal window # Retrieve the Azure SRE Agent endpoint and list recent investigation threadsSRE_ENDPOINT=$(az rest -m GET \--url "https://management.azure.com/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.App/agents/<SRE_AGENT_NAME>?api-version=2025-05-01-preview" \--query properties.agentEndpoint -o tsv)SRE_TOKEN=$(az account get-access-token --resource https://azuresre.dev --query accessToken -o tsv)curl -s -H "Authorization: Bearer ${SRE_TOKEN}" "${SRE_ENDPOINT}/api/v1/threads"Review any proposed mitigation (such as scaling overrides or revision restarts) in the Azure Portal under your SRE Agent resource before approving execution in Review mode, or use the
az sreCLI extension (az sre --help).
Domain-Specific Recovery Playbooks
Symptoms: Revision stuck in Activating/Failed, ImagePullFailed, or crash loop.
- Verify the Container Apps environment Managed Identity holds
AcrPullon<ACR_NAME>:
ACR_ID=$(az acr show --name "<ACR_NAME>" --resource-group "<RESOURCE_GROUP>" --query id -o tsv)az role assignment list --scope "${ACR_ID}" \ --query "[?roleDefinitionName=='AcrPull'].{Principal:principalId, Role:roleDefinitionName}" -o table- Confirm the target image tag exists in
<ACR_NAME>:
az acr repository show-tags --name "<ACR_NAME>" --repository "<APP_NAME>" --orderby time_desc -o table- Check console logs for missing external parameters (Message Broker, Vector Database, or SMTP relay), then redeploy via
aspire deploy --environment "<ENV>".
Symptoms: PostgreSQL token login failure, Redis NOAUTH/NOPERM, or 403 Forbidden on Cosmos DB, Blob Storage, or Microsoft Foundry. Never re-enable static passwords or shared keys as a workaround.
- Confirm PostgreSQL Entra ID admin registration (Catalog Service, Catalog Ingestion, Ordering Service, Scheduler Service only):
az postgres flexible-server ad-admin list --resource-group "<RESOURCE_GROUP>" --server-name "<POSTGRES_SERVER>" -o table- Inspect Managed Identity role assignments for
<PRINCIPAL_ID>:
az role assignment list --resource-group "<RESOURCE_GROUP>" --assignee "<PRINCIPAL_ID>" \ --query "[].{Role:roleDefinitionName, Scope:scope}" -o tableExpected datastore bindings:
- Azure Storage:
Storage Blob Data Contributorfor Catalog Service and Chat Service;Storage Blob Data Ownerfor Catalog Ingestion and Finance Orchestrator. - Microsoft Foundry:
Cognitive Services Userfor Catalog Service, Catalog Ingestion, Chat Service, and Rating Service.
- Wait 5–10 minutes for Entra ID RBAC propagation, then restart the failing revision.
Symptoms: Orders stay in New status, customer baskets do not clear, or checkout emails never send.
- Verify Finance Orchestrator (
finance) has Durable Task Scheduler and broker settings populated:
az containerapp show --name finance --resource-group "<RESOURCE_GROUP>" \ --query "properties.template.containers[0].env[?name=='DTS_CONNECTION_STRING' || name=='TASKHUB_NAME' || name=='BrokerList']" -o table- Confirm Finance Orchestrator holds
Storage Blob Data Owneron<STORAGE_ACCOUNT>and that the Container Apps outbound static IP is in the Durable Task Scheduler allowlist. - Inspect logs and dead-letter queues for Ordering Service, Finance Orchestrator, Basket Service, and Notification Service. For missing checkout emails, verify Notification Service connectivity to the Message Broker, Redis, and SMTP relay.
Symptoms: Newly created or updated books do not appear in semantic search.
- Sign in to Quartz Dashboard (
https://quartz-dashboard.<DOMAIN>/quartz) and verify the 5-minute vector batch job is executing without misfires. - Tail Catalog Ingestion logs:
az containerapp logs show --name catalog-ingestion --resource-group "<RESOURCE_GROUP>" --type console --tail 100- If Microsoft Foundry returns HTTP
429onembedding, increase model capacity. If Qdrant Cloud fails, verify the vector database connection secret.
Symptoms: Chat Service (chatting) or Rating Service (rating) returns HTTP 502/503, 429, or high latency.
- Check Privacy Analyzer and Privacy Anonymizer status:
az containerapp list --resource-group "<RESOURCE_GROUP>" \ --query "[?name=='presidio-analyzer' || name=='presidio-anonymizer'].{Name:name, Status:properties.runningStatus}" -o table- Inspect Application Insights Failures for HTTP
429throttling onchat,decision, orembeddingdeployments. - If Agent-to-Agent calls return
401/403, verify Entra Agent Identity Federated Identity Credentials using Secrets, Certificates & SecOps RotationCustom DocSecrets, Certificates & SecOps RotationSecOps runbook for verifying Managed Identities, inspecting TLS certificates, revoking compromised credentials, rotating...Ownerplatform-engineering-teamOpen doc.
Verification
Confirm the affected Container App revision is Healthy with active replicas and zero new errors in Log Analytics:
az containerapp revision list --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" \ --query "[?properties.active==\`true\`].{Revision:name, Health:properties.healthState, Replicas:properties.replicas}" -o tableExpected output:
Revision Health Replicas-------------------------- -------- ----------<APP_NAME>--<REVISION_ID> Healthy 1Rollback / Escape Hatch
If a revision restart or RBAC adjustment does not restore service within 10 minutes, roll back to the previous known-good revision using Deployment & Rollback RunbookCustom DocDeployment & Rollback RunbookOperator runbook for deploying BookWorm releases, shifting Container App revision traffic, and executing instant rollbac...Ownerplatform-engineering-teamOpen doc.