Tools

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.
Back to chapter 28
Storage
Processing
Lake redundancy
Recovery target (the brief)
Monthly budget (the brief)
Parts
5
of 9 requirements met
€3,650
a month (illustrative figures, not prices)
4
kinds of resource in the Bicep
  • ✓ 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.
Each part names the requirements it meets; a red, dashed box is a gap the brief needs filled, and a cross marks a part another one already covers.
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

Try this

0 of 4 done

Add Event Hubs, private endpoints, Purview, Key Vault and Entra groups.

Look for: Every requirement is met, and each part lists the requirements that justify it.

Set the recovery target to a whole region.

Look for: Recovery fails until the lake is geo-zone redundant, which costs more each month.

Switch the compute to Microsoft Fabric.

Look for: Fabric's own pipelines meet the batch requirement, so Data Factory is flagged as a duplicate.

Download the Bicep.

Look for: The file builds and lints with the Bicep CLI in CI, role assignments for the Entra groups included.

An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to the Cloud Data Architecture Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.