Deployment — Production
Deployment — Production
Diagram type: Deployment (C4 supporting diagram) Scope: where each container runs in production: one Azure region, one Fabric tenant with a production capacity and a pausable burst capacity, a Power Platform environment for approvals, and the vendor clouds. Audience: platform operators, IT Security, FinOps. Structurizr view:
Deployment-Productionin structurizr/workspace.dsl
Overview
Everything the platform owns sits in one Azure region, chosen to match the Fabric capacity. Fabric items are split across three workspaces on one F8 capacity: restricted (landing files, Bronze, Silver, control, orchestration, all engineering notebooks including the Gold jobs and the erasure job, and the only identity with vault access), analytics (Gold, semantic models, the report generator) and real-time (Activator). A second, normally paused F64 capacity exists for the historical backfill. Azure consumption services live in one resource group: the Function App (adapters, dispatcher, delivery adapter) with its storage account for runtime and adapter state, the token vault (Azure SQL Database under a customer-managed key), the immutable evidence store, Service Bus, Key Vault and the optional push gateway. Approvals run as a Power Automate flow. Dev and test repeat the topology with F2 and F4 capacities paused outside working hours.
Diagram
C4Deployment
title Deployment diagram for the Marketing Data Platform - Production
Deployment_Node(azure, "Microsoft Azure", "One region, same as the Fabric capacity") {
Deployment_Node(rg, "rg-acme-ingest-prod", "Resource group, Bicep or Terraform") {
Deployment_Node(func, "func-ingest-prod", "Azure Functions, Flex Consumption, .NET 10 isolated") {
Container(fnhs, "HubSpot adapter", ".NET 10")
Container(fngads, "Google Ads adapter", ".NET 10")
Container(disp, "Webhook dispatcher", ".NET 10")
Container(delivery, "Delivery adapter", ".NET 10")
}
Deployment_Node(st, "stacmeingestprod", "Azure Storage account") {
ContainerDb(state, "Adapter state store", "Table Storage")
}
Deployment_Node(sqlv, "sql-acme-vault-prod", "Azure SQL Database S1 (zone-redundant General Purpose on SLA need), TDE with CMK, Entra-only, PIM") {
ContainerDb(vault, "Token vault", "token_map, subject_link")
}
Deployment_Node(stev, "stacmeevidenceprod", "Azure Storage account, immutable container") {
ContainerDb(evidence, "Erasure evidence store", "WORM blobs, hash chain")
}
Deployment_Node(sbn, "sb-acme-prod", "Azure Service Bus Standard") {
ContainerQueue(sb, "Service Bus", "queue and topic")
}
Deployment_Node(kvn, "kv-acme-prod", "Azure Key Vault, RBAC, purge protection") {
Container(kv, "Key Vault", "secrets and keys")
}
Deployment_Node(ca, "ca-push-gateway-prod (optional)", "Azure Container Apps, consumption") {
Container(sse, "Push gateway", "ASP.NET Core, .NET 10")
}
}
Deployment_Node(pp, "Power Platform environment", "Power Automate") {
Container(approval, "Approval workflow", "Approvals in Teams")
}
Deployment_Node(fabric, "Microsoft Fabric tenant", "SaaS") {
Deployment_Node(cap, "Capacity F8 prod", "Fabric capacity, pay-as-you-go then reserved") {
Deployment_Node(wsr, "acme-ingest-restricted-prod", "Fabric workspace, data-engineer role only; vault access") {
Container(orch, "Orchestrator", "Data Factory pipelines")
Container(cj, "Salesforce copy activity", "Data Factory")
Container(loader, "Bronze loader", "Notebook")
ContainerDb(bronze, "lh_bronze", "Lakehouse; landing files")
Container(silverjobs, "Silver jobs", "Notebooks")
ContainerDb(silver, "lh_silver and control", "Lakehouse")
Container(sync, "State sync", "Notebook")
Container(goldjob, "Gold jobs", "Notebooks")
Container(recon, "Reconciler", "Notebook")
Container(relay, "Relay", "Notebook")
Container(erase, "Erasure job", "Pipeline and notebook")
}
Deployment_Node(wsa, "acme-analytics-prod", "Fabric workspace, analyst and consumer roles") {
ContainerDb(gold, "lh_gold", "Lakehouse; Files/publications")
Container(sem, "Semantic models", "Power BI, Direct Lake")
Container(reportgen, "Report generator", "Notebook, Python")
}
Deployment_Node(wst, "acme-realtime-prod", "Fabric workspace, same region") {
Container(act, "Activator", "Real-Time Intelligence")
}
}
Deployment_Node(burst, "Capacity F64 burst", "Fabric capacity, paused unless backfilling") {
Container(backfill, "Backfill runs", "Fabric capacity assignment", "Workspaces reassigned here for the historical load")
}
}
}
Deployment_Node(sfc, "Salesforce", "Vendor cloud") {
Container(sf, "Salesforce", "SaaS")
}
Deployment_Node(hsc, "HubSpot", "Vendor cloud") {
Container(hs, "HubSpot", "SaaS")
}
Deployment_Node(gc, "Google", "Vendor cloud") {
Container(gads, "Google Ads", "SaaS")
}
Deployment_Node(rc, "Report recipients", "Client and partner systems") {
Container(recipient, "Report recipients", "SFTP, HTTPS API, mailboxes")
}
Rel(cj, sf, "Reads from", "REST, Bulk API 2.0")
Rel(fnhs, hs, "Reads from", "CRM v3 API")
Rel(hs, fnhs, "Webhooks to", "HTTPS")
Rel(fngads, gads, "Reads from", "GAQL over REST searchStream")
Rel(fnhs, bronze, "Lands files in", "OneLake API")
Rel(fngads, bronze, "Lands files in", "OneLake API")
Rel(loader, vault, "Lookup-or-create tokens", "TDS, Entra")
Rel(loader, kv, "Lookup key", "workspace identity")
Rel(erase, vault, "Deletes mapping", "TDS, PIM")
Rel(erase, evidence, "Appends evidence", "Blob, immutable")
Rel(fnhs, state, "Writes cursors to", "managed identity")
Rel(disp, state, "Reads subscribers, writes deliveries", "managed identity")
Rel(delivery, state, "Writes delivery evidence", "managed identity")
Rel(sync, state, "Mirrors into control", "Table Storage REST")
Rel(fnhs, sb, "Nudges via", "AMQP")
Rel(relay, sb, "Publishes to", "AMQP")
Rel(sb, disp, "Delivers to", "AMQP")
Rel(sb, sse, "Delivers to", "AMQP")
Rel(sb, act, "Feeds eventstream of", "Service Bus source, SAS key")
Rel(goldjob, gold, "Writes across workspaces into", "OneLake")
Rel(reportgen, gold, "Reads pinned versions; writes publications", "OneLake")
Rel(orch, approval, "Requests sign-off", "Power Automate trigger")
Rel(approval, orch, "Returns decision", "Fabric REST")
Rel(delivery, gold, "Reads approved files", "OneLake API")
Rel(delivery, recipient, "Delivers reports", "SFTP, HTTPS, email")
Rel(fnhs, kv, "Reads secrets", "managed identity")
Rel(sem, gold, "Direct Lake", "OneLake")
Legend
- Deployment node: a place where containers run (subscription, resource group, Function App, storage account, database, capacity, workspace, Power Platform environment, vendor cloud); nested nodes show containment.
- Container instances: the same containers as in 02-container.md, placed where they run. External systems are shown in their clouds for completeness.
- "Backfill runs" is an infrastructure node in Structurizr; Mermaid has no infrastructure-node element, so it is drawn as a plain container here.
- Relationships are a subset of the container view, limited to those that cross a deployment boundary.
Elements
| Node | Type | Technology | Holds |
|---|---|---|---|
| Microsoft Azure | Deployment node | Azure subscription, one region | Resource group, Power Platform environment, Fabric tenant |
| rg-acme-ingest-prod | Deployment node | Resource group from Bicep or Terraform | Function App, storage accounts, token vault, Service Bus, Key Vault, optional Container Apps, Application Insights |
| func-ingest-prod | Deployment node | Azure Functions, Flex Consumption, .NET 10 isolated | HubSpot adapter, Google Ads adapter, Webhook dispatcher, Delivery adapter |
| stacmeingestprod | Deployment node | Azure Storage account | Function runtime storage; adapter state tables |
| sql-acme-vault-prod | Deployment node | Azure SQL Database S1 at launch, zone-redundant General Purpose serverless if the vault SLA requires it; TDE with customer-managed key, Entra-only, PIM, auditing | Token vault |
| stacmeevidenceprod | Deployment node | Azure Storage account with an immutable container (time-based retention) | Erasure evidence store |
| sb-acme-prod | Deployment node | Azure Service Bus Standard | Service Bus queue and topic |
| kv-acme-prod | Deployment node | Azure Key Vault, RBAC, purge protection | Key Vault (secrets, vault lookup key, customer-managed key) |
| ca-push-gateway-prod | Deployment node (optional) | Azure Container Apps, consumption | Push gateway |
| appi-acme-prod | Infrastructure node | Application Insights, Log Analytics | Telemetry and alerts; payload logging forbidden (Structurizr only) |
| Power Platform environment | Deployment node | Power Automate | Approval workflow |
| Microsoft Fabric tenant | Deployment node | SaaS | Capacities |
| Capacity F8 prod | Deployment node | Fabric F SKU | Three workspaces |
| acme-ingest-restricted-prod | Deployment node | Fabric workspace | Orchestrator, copy activity, Bronze loader, lh_bronze, Silver jobs, lh_silver and control, State sync, Gold jobs, Reconciler, Relay, Erasure job |
| acme-analytics-prod | Deployment node | Fabric workspace | lh_gold, semantic models, Report generator |
| acme-realtime-prod | Deployment node | Fabric workspace | Activator (and its eventstream, configured by runbook) |
| Capacity F64 burst | Deployment node | Fabric F SKU, paused | Backfill runs |
| Salesforce, HubSpot, Google, Report recipients | Deployment nodes | Vendor and recipient systems | The external systems |
Key relationships
| From | To | Intent | Protocol / Technology |
|---|---|---|---|
| Copy activity, adapters | Vendor clouds | Read | HTTPS |
| HubSpot | Function App | Webhooks | HTTPS (public endpoint, signature-validated) |
| Function App | Restricted workspace | Landing files | OneLake ADLS Gen2 API with managed identity |
| Restricted workspace (Bronze loader) | Token vault | Lookup-or-create tokens | TDS with Entra token |
| Restricted workspace (Erasure job) | Token vault, evidence store | Delete mapping; append evidence | TDS (PIM); Blob immutable |
| Function App | Storage account | Adapter state, delivery evidence | Table Storage with managed identity |
| Function App, Bronze loader | Key Vault | Secrets and the lookup key | Managed identity; workspace identity |
| Relay, Function App | Service Bus | Publish, nudge | AMQP |
| Service Bus | Function App, Container Apps, Real-time workspace | Deliver | AMQP; eventstream source with SAS key |
| Restricted workspace (Gold jobs) | Analytics workspace | Rebuild Gold; insert business events | OneLake cross-workspace write |
| Orchestrator | Power Platform | Sign-off request and decision | Power Automate trigger; Fabric REST |
| Function App (Delivery adapter) | Report recipients | Approved report files | SFTP, HTTPS API, email |
Notable architectural decisions
- Three workspaces so that the landing files, the vault-capable identity and the engineering notebooks stay on the restricted side (ADR 2, ADR 6).
- The token vault and the evidence store are Azure resources, not lakehouse tables, so their blast radius and access model differ from the data they protect (ADR 6).
- One production capacity to start, with a separate paused burst capacity for backfills (technology architecture).
- Public endpoints with Entra authentication at launch; private endpoints as later hardening (ADR 10).
Assumptions
- Region not yet chosen; the Fabric capacity region decides it; EU residency assumed.
- F8 is the starting SKU; the Capacity Metrics app decides the reserved size after three months.
- Dev (F2) and test (F4) environments mirror this topology and are not drawn separately.
- IT Security has not yet confirmed public endpoints at launch (open question B5).