28. A modern data platform on Azure
A data platform on Azure is a set of parts, each there because a requirement needs it: ingestion, a lake, processing, serving, and the governance and security around them. Fabric and Databricks are both honest answers for the processing; the brief decides.
The clip builds Harbour Mutual's platform part by part: Data Factory and Event Hubs to ingest, ADLS Gen2 to store, Azure Databricks to process, Power BI to serve, then Purview, Key Vault and Entra groups for the personal data, private endpoints and Log Analytics, and a copy of the lake in a second region. Under the parts, each of the brief's nine requirements lights up once the parts that meet it are in. The monthly figure, within the budget, is illustrative, not a price. Last, Fabric as the other way to build it.
The idea: parts that earn their place
Chapter 4 drew Azure's frame (landing zones); this chapter fills one data landing zone with parts. Five stages, the same on any platform:
- Ingest: batch pipelines from the source systems (Data Factory) and a stream for events (Event Hubs).
- Store: one lake in open tables: ADLS Gen2, or OneLake with Fabric.
- Process: Spark and SQL over the lake: Azure Databricks or Microsoft Fabric.
- Serve: Power BI for reports, and the gold tables for other consumers.
- Govern and secure: Purview for the catalogue and classification, Key Vault for secrets, Entra groups for access, private endpoints to keep stores off the internet, Log Analytics for one place to look.
A reference architecture is that set of parts written down with the requirement each one meets, so nobody adds a service because it is fashionable, and nobody removes one without seeing what it was for. Written as Bicep, it is also the thing that builds it.
A worked example: Harbour Mutual's brief
The brief has 9 requirements. Databricks on ADLS Gen2 with every governance part and a copy in a second region meets all of them at about €4,670 a month; Fabric on OneLake meets them at about €2,620. Both figures are illustrative, not prices: they compare designs, not quotes.
| Requirement | Met by |
|---|---|
| Batch loads from the source systems | Data Factory |
| Claims events in near real time | Event Hubs |
| Spark on the lake | Azure Databricks |
| Reports for the board | Power BI |
| No data store on the internet | Private endpoints |
| Personal data classified and protected | Microsoft Purview, Key Vault, Entra groups |
| Recovery target met | ADLS Gen2 |
| One place for the logs | Log Analytics |
| Within the budget | – |
// Harbour Mutual's data platform: generated by the Cloud Data Architecture Lab's platform engine.
// Power BI is a SaaS service: its workspaces are created in the Power BI service, not here.
targetScope = 'resourceGroup'
@description('Azure region for every resource.')
param location string = resourceGroup().location
@description('Environment name, part of every resource name.')
@allowed([
'dev'
'test'
'prod'
])
param environment string = 'dev'
var prefix = 'hmdata'
@description('Object id of the Entra group of data engineers (read and write on the lake).')
param dataEngineersGroupId string
@description('Object id of the Entra group of analysts (read on the lake).')
param analystsGroupId string
var suffix = uniqueString(resourceGroup().id)
var tags = {
workload: 'data-platform'
environment: environment
}
resource vnet 'Microsoft.Network/virtualNetworks@2025-05-01' = {
name: 'vnet-${prefix}-${environment}'
location: location
tags: tags
properties: {
addressSpace: {
addressPrefixes: [
'10.40.0.0/16'
]
}
subnets: [
{
name: 'snet-private-endpoints'
properties: {
addressPrefix: '10.40.1.0/24'
privateEndpointNetworkPolicies: 'Enabled'
}
}
]
}
}
resource logs 'Microsoft.OperationalInsights/workspaces@2025-07-01' = {
name: 'log-${prefix}-${environment}'
location: location
tags: tags
properties: {
sku: {
name: 'PerGB2018'
}
retentionInDays: 90
}
}
resource lake 'Microsoft.Storage/storageAccounts@2025-06-01' = {
name: take('st${prefix}${environment}${suffix}', 24)
location: location
tags: tags
kind: 'StorageV2'
sku: {
name: 'Standard_GZRS'
}
properties: {
isHnsEnabled: true
minimumTlsVersion: 'TLS1_2'
supportsHttpsTrafficOnly: true
allowBlobPublicAccess: false
allowSharedKeyAccess: false
publicNetworkAccess: 'Disabled'
}
}
resource vault 'Microsoft.KeyVault/vaults@2025-05-01' = {
name: take('kv-${prefix}-${environment}-${suffix}', 24)
location: location
tags: tags
properties: {
tenantId: subscription().tenantId
sku: {
family: 'A'
name: 'standard'
}
enableRbacAuthorization: true
enableSoftDelete: true
enablePurgeProtection: true
publicNetworkAccess: 'Disabled'
}
}
resource events 'Microsoft.EventHub/namespaces@2026-01-01' = {
name: 'evhns-${prefix}-${environment}-${suffix}'
location: location
tags: tags
sku: {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
properties: {
minimumTlsVersion: '1.2'
disableLocalAuth: true
publicNetworkAccess: 'Disabled'
}
}
resource databricks 'Microsoft.Databricks/workspaces@2026-01-01' = {
name: 'dbw-${prefix}-${environment}'
location: location
tags: tags
sku: {
name: 'premium'
}
properties: {
computeMode: 'Hybrid'
managedResourceGroupId: subscriptionResourceId('Microsoft.Resources/resourceGroups', 'rg-${prefix}-${environment}-databricks')
publicNetworkAccess: 'Enabled'
requiredNsgRules: 'AllRules'
parameters: {
enableNoPublicIp: {
value: true
}
}
}
}
resource factory 'Microsoft.DataFactory/factories@2018-06-01' = {
name: 'adf-${prefix}-${environment}-${suffix}'
location: location
tags: tags
identity: {
type: 'SystemAssigned'
}
properties: {
publicNetworkAccess: 'Disabled'
}
}
resource purview 'Microsoft.Purview/accounts@2021-12-01' = {
name: take('pview-${prefix}-${environment}-${suffix}', 63)
location: location
tags: tags
identity: {
type: 'SystemAssigned'
}
properties: {
publicNetworkAccess: 'Disabled'
managedResourceGroupName: 'rg-${prefix}-${environment}-purview'
}
}
resource lakeDfs 'Microsoft.Network/privateEndpoints@2025-05-01' = {
name: 'pe-${lake.name}-dfs'
location: location
tags: tags
properties: {
subnet: {
id: vnet.properties.subnets[0].id
}
privateLinkServiceConnections: [
{
name: 'dfs'
properties: {
privateLinkServiceId: lake.id
groupIds: [
'dfs'
]
}
}
]
}
}
resource vaultEndpoint 'Microsoft.Network/privateEndpoints@2025-05-01' = {
name: 'pe-${vault.name}-vault'
location: location
tags: tags
properties: {
subnet: {
id: vnet.properties.subnets[0].id
}
privateLinkServiceConnections: [
{
name: 'vault'
properties: {
privateLinkServiceId: vault.id
groupIds: [
'vault'
]
}
}
]
}
}
resource purviewEndpoint 'Microsoft.Network/privateEndpoints@2025-05-01' = {
name: 'pe-${purview.name}-account'
location: location
tags: tags
properties: {
subnet: {
id: vnet.properties.subnets[0].id
}
privateLinkServiceConnections: [
{
name: 'account'
properties: {
privateLinkServiceId: purview.id
groupIds: [
'account'
]
}
}
]
}
}
resource eventsEndpoint 'Microsoft.Network/privateEndpoints@2025-05-01' = {
name: 'pe-${events.name}-namespace'
location: location
tags: tags
properties: {
subnet: {
id: vnet.properties.subnets[0].id
}
privateLinkServiceConnections: [
{
name: 'namespace'
properties: {
privateLinkServiceId: events.id
groupIds: [
'namespace'
]
}
}
]
}
}
resource engineersOnLake 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(lake.id, dataEngineersGroupId, 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')
scope: lake
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')
principalId: dataEngineersGroupId
principalType: 'Group'
}
}
resource analystsOnLake 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(lake.id, analystsGroupId, '2a2b9908-6ea1-4ae2-8e65-a410df84e7d1')
scope: lake
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '2a2b9908-6ea1-4ae2-8e65-a410df84e7d1')
principalId: analystsGroupId
principalType: 'Group'
}
}
resource factoryOnLake 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(lake.id, factory.id, 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')
scope: lake
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')
principalId: factory.identity.principalId
principalType: 'ServicePrincipal'
}
}
resource factoryOnVault 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(vault.id, factory.id, '4633458b-17de-408a-b874-0445c86b69e6')
scope: vault
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '4633458b-17de-408a-b874-0445c86b69e6')
principalId: factory.identity.principalId
principalType: 'ServicePrincipal'
}
}
output lakeName string = lake.name
output vaultName string = vault.name
Why it matters for Alex
The board will ask why the platform costs what it does, and the engineers will ask why they cannot use the service they like. A reference architecture answers both with the same page: each part, the requirement it meets, and what would break without it. And because it builds as Bicep, the page and the platform cannot drift apart.
Where it goes wrong
- Every service on the poster. Parts added because they exist, each one more thing to secure and pay for.
- Public endpoints left on. A storage account reachable from the internet, protected only by a key.
- The platform war. Fabric against Databricks decided by who argues longest, not by the team, the brief and the cost.
- A diagram nobody builds from. The architecture in a slide, the platform in a portal, and the two drifting apart.
Exercises
The lab checks each one against facts written down in advance, so any answer the brief allows passes. A pass is kept in this browser.
Meet the brief in the Platform designer
Harbour Mutual's board asks for a platform that takes the claims events in near real time, keeps every data store off the internet, classifies and protects personal data, survives losing a whole region, and stays within €5,000 a month (the designer's figures are illustrative, not prices). Every part must earn its place: no part that another already covers.
The lab checks that:
- The brief's targets are unchanged: survive losing a region, within €5,000 a month.
- Batch loads and the claims events both arrive.
- No data store is on the internet, and personal data is classified and protected.
- The design survives losing a region, and its logs are in one place.
- Every requirement is met within the budget.
- No part duplicates another.
Fabric, Databricks or both
Which processing platform fits the brief? Pass all 3 situations to complete it.
A BI team that lives in Power BI and two data engineers. No machine learning planned this year. The CFO wants one bill and little to operate.
Which stage is it?
Choose the stage each part of the platform belongs to.
On Azure
The parts as Azure has them:
- Storage: ADLS Gen2 is a storage account with the hierarchical namespace on; zone-redundant storage survives losing a zone, geo-zone-redundant storage also copies to the paired region. OneLake comes with a Fabric capacity, one per tenant, and Fabric's disaster recovery setting copies its data to another region.
- Processing: Azure Databricks workspaces with Unity Catalog, injected into your own virtual network; or Microsoft Fabric capacities, sized in capacity units and shared by every workload on them.
- Security: private endpoints for storage, Key Vault, Event Hubs and Purview; Entra groups for every role assignment; Fabric uses private links at the tenant or workspace level.
- Infrastructure as code: the Bicep above deploys the resource group's parts; Fabric workspaces and Power BI live in the service and are set up through its own APIs.
Check prices in the Azure pricing calculator for your region and commitment; the designer's figures only compare designs.
Take it to work
Reference architecture
List the parts of the platform and the requirement each one meets.
Requirements
- Ingestion, processing, serving, networking, personal data, recovery, operations, cost
Parts
- Each part, its stage, and the requirement it meets
- Any part that duplicates another
Processing platform
- Fabric, Databricks or both, and the reason from the brief
Security and recovery
- Private endpoints, identity, keys
- The recovery target and how it is met
As code
- Where the Bicep lives, and who reviews a change to it
Tools in this chapter
- Platform designer · Build an Azure reference architecture from parts, check it against the requirements, and export its Bicep.
Terms taught here: Microsoft FabricAzure DatabricksOneLakeAzure Data Lake Storage Gen2Private endpointManaged identityInfrastructure as codeBicep