Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

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.

SRE / Incident

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>.

Production Verification Note

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:

Terminal window
az account set --subscription "<SUBSCRIPTION_ID>"
az containerapp list --resource-group "<RESOURCE_GROUP>" \
--query "[].{Name:name, Status:properties.runningStatus, LatestRevision:properties.latestRevisionName}" -o table

Procedure (First 5 Minutes)

  1. Inspect revision health and replica counts

    Check whether the active revision of <APP_NAME> is Healthy or stuck in Activating / 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 table

  2. Tail 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 100
    az containerapp logs show --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" --type system --tail 50

  3. Inspect 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 table

  4. Restart 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>"

  5. 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 threads
    SRE_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 sre CLI extension (az sre --help).

Domain-Specific Recovery Playbooks

Verification

Confirm the affected Container App revision is Healthy with active replicas and zero new errors in Log Analytics:

Terminal window
az containerapp revision list --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" \
--query "[?properties.active==\`true\`].{Revision:name, Health:properties.healthState, Replicas:properties.replicas}" -o table

Expected output:

Revision Health Replicas
-------------------------- -------- ----------
<APP_NAME>--<REVISION_ID> Healthy 1

Rollback / 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.