Deploying the dashboard to Azure
Azure Container Apps is the supported Azure hosting path. Azure Functions runtime, deployment commands, receipts and the local Core Tools harness are retired. There is no native Azure apply command or replacement deployment automation.
Prepare an offline review bundle
Section titled “Prepare an offline review bundle”Install the native CAO CLI and the official standalone
Bicep CLI
on PATH, then:
gh cao deploy init --deployment azure-container-apps --out /private/operator/containers.yaml# Replace sample identities, networks, image references and secret names.gh cao deploy generate --config /private/operator/containers.yaml \ --out /private/operator/containers-plangh cao deploy check /private/operator/containers-planGeneration compiles the emitted Bicep and produces a hash-bound review bundle with dependency diagrams, architecture checks, parameter references and an operator runbook. These commands do not call Azure, create resources, grant credentials, install GitHub Apps or verify live prerequisites. Operators separately review and execute the Container Apps templates. See deployment bundle generation for the complete parameter and activation contract.
Azure resources and boundaries
Section titled “Azure resources and boundaries”| Resource | Responsibility |
|---|---|
| Container Apps Consumption environment and one hosted Go replica | Managed HTTPS ingress; built dashboard, GitHub OAuth, query API and revision events on one origin |
| Private PostgreSQL Flexible Server | Canonical dashboard data and separately owned PostgreSQL operational state |
| Separate manual provisioning job | Privileged schema provisioning isolated from the runtime |
| Always-on collector app and manual backfill job | Continuous native collection from a read-only GitHub App; the web app only admits its signed webhooks |
| Key Vault and managed identities | Scoped secret resolution; no secret values in reviewed policy, parameters, logs or browser payloads |
| Azure Container Registry | Operator-approved, immutable dashboard, provisioning and collector images |
| VNet, delegated subnets and private DNS | Private database connectivity with separately verified ingress proxy peers |
| Log Analytics | Container logs, not canonical data or evidence of application telemetry delivery |
The base profile uses public OAuth ingress and continuous native collection,
the only hosted acquisition path. The collector runs as its own
always-on Container App with one minimum replica, sharing the PostgreSQL
operational queue with the dashboard, so the hosted dashboard stays current
without scheduled Actions snapshots. Its reach is the collection App’s
installations and the last 7 days of run history; it never widens CAO rollout policy.
Actions snapshot ingestion is not a hosted option, and requirements that still
set features.acquisition are rejected. The profile provisions neither Redis nor Application Insights.
Optional session-lake and webhook-gateway infrastructure remains separately
selected and staged; it grants no runtime activation or broader authority. The
base profile does not support OTLP or base ADX analytics. Unsupported feature
combinations fail closed.
Keep GitHub user/organization/team authorization explicit. The browser never receives database credentials or GitHub tokens and never falls back to Pages, static operational shards or IndexedDB when hosted services fail. Keep the dashboard and OAuth on the same origin. Configure independently verified ingress proxy CIDRs, including Azure’s reserved workload-profile ranges where applicable; do not treat sample CIDRs or forwarded headers as proof of trusted peers.
Operator-run activation
Section titled “Operator-run activation”Follow the generated runbook for the exact reviewed configuration:
- Review instance-owned policy, OAuth registration and allowlists, secret
references, private networking, retention and immutable image references.
The dashboard and collector images must contain the reviewed
cao.jsonwithtarget.module: container,target.replicas: 1andoperational-store.backend: postgres. Create the read-only collection GitHub App and store its private key in the input vault. - Bootstrap ACR and prepare approved images independently. Deploy reviewed
infrastructure with
runtimeEnabled: false, the default; this stages infrastructure and manual job definitions without creating the web app. - Run privileged database provisioning to successful completion, then pin
the reviewed source inventory with
cao-dashboard provision-inventoryusing the bundle’snativeInventoryDigest. Neither ARM dependencies nor bundle checks run or verify these steps. Do not silently substitute empty or synthetic demo data. - Only after independent verification, regenerate and approve a bundle with
runtimeEnabled: true, then deploy it explicitly. This creates the web app and the always-on collector app and backfill job. Point the collection App webhook at thegithubAppWebhookUrloutput. - Verify configured image digests, the registered OAuth callback, allowed and
denied sign-in, same-origin API behavior, readiness, trusted proxy handling
and revision-stream reconnection. With collection, also verify webhook
admission and
/api/admin/collection/statusprogress. Platform probes use an internal health listener on port 8081 that ingress never routes:/startupzand/livezprove the process serves HTTP, and/readyzreturns the redacted database health. The public port enforces the trusted proxy, host and HTTPS policy, which direct pod probes can’t meet.
Keep schema-owner credentials out of the web runtime and collector, and keep the collection App private key out of the web runtime. Provisioning, acquisition enrollment and CAO rollout authority are separate: infrastructure credentials and a successful deployment never authorize new repositories, operations, safe outputs or live mode.
Acceptance and maintenance
Section titled “Acceptance and maintenance”Bundle generation and offline checks are not live Azure acceptance, production image assurance, backup evidence, OAuth validation or proof of backend parity. Retain independently reviewed source/image provenance, scan and SBOM results, deployed digest observations, job outcomes and tenant-specific operational evidence. The retired Functions deployment receipt and release-evidence receipt option are not part of this path.
Review database backup/restore, secret rotation, cleanup-debt draining, log redaction, cost and rollback with the actual tenant and GitHub organization. One minimum replica, ACR, Key Vault, PostgreSQL and logs incur costs; this is not scale-to-zero. Private archives require their own persistent single-owner publisher and real destination acceptance; an ephemeral container filesystem is not a durable spool.
For local development use the existing Go/PostgreSQL server and an explicitly
acquired operational snapshot; no Azure Functions emulator, Core Tools harness
or simulated native Azure install journey is maintained. The only local Azurite
path is the opt-in CAO_ASPIRE_AZURITE=true container in the Aspire AppHost.
It tests the session archive Blob adapter only and never points the server at
Azurite; see Local Azure emulation. See the
deployment overview and
server guide.