Platform designer
Build Harbour Mutual's data platform on Azure from parts, against the brief's requirements: ingestion, processing, reports, networking, personal data, recovery, operations and cost. Each part says which requirements justify it, and the design exports as Bicep.
Exercise: 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 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.
- ✓ Batch loads from the source systems · Data Factory pipelines load the source systems.
- ✕ Claims events in near real time · No part receives the claims events.
- ✓ Spark on the lake · Azure Databricks runs Spark on the lake.
- ✓ Reports for the board · Power BI reads the gold layer.
- ✕ No data store on the internet · ADLS Gen2 would be reachable from the internet: add private endpoints.
- ✕ Personal data classified and protected · Missing for personal data: Microsoft Purview, Key Vault, Entra groups.
- ✕ Recovery target met · Losing the region would lose the lake: choose a copy in a second region.
- ✓ One place for the logs · Every service sends its logs to one Log Analytics workspace.
- ✓ Within the budget · About €3,650 a month, within the budget of €5,000.
The Bicep (96 lines)
// 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'
var suffix = uniqueString(resourceGroup().id)
var tags = {
workload: 'data-platform'
environment: environment
}
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_ZRS'
}
properties: {
isHnsEnabled: true
minimumTlsVersion: 'TLS1_2'
supportsHttpsTrafficOnly: true
allowBlobPublicAccess: false
allowSharedKeyAccess: false
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 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'
}
}
output lakeName string = lake.name
Used in
- Chapter 4 · Data platforms from warehouse to lakehouse, and Azure's frame
- Chapter 28 · A modern data platform on Azure
- Chapter 29 · Integration patterns: batch, streaming, APIs and sharing
- Chapter 35 · Architecture principles
- Chapter 43 · Stage 6: The platform
Glossary: LakehousePrivate endpointManaged identityInfrastructure as code