Part H · Chapter 43 · Capstone: Harbour Mutual acquires Kestrel

43. Stage 6: The platform

Weeks nine to eleven. The board approves one platform for both companies next month, on a first-year budget. Design it on Azure from parts that each earn their place, build it as Bicep, and publish the Claims and Customer data products' contracts.

The reference architecture for the combined estate, built up
Playback speed

The clip builds the combined platform part by part: Event Hubs for Kestrel's portal events, OneLake to store, Microsoft Fabric to process with its own pipelines for the batch loads, Power BI to serve, then Purview, Key Vault, Entra groups, private endpoints and Log Analytics around them. Under the parts, each requirement lights up once the parts that meet it are in, and the monthly figure stays within the board's budget, while the Databricks design does not. Last, the Claims product's contract gains two columns as version 1.1.0, and Kestrel's rename of the reserve is caught as a breaking change.

The situation

Week nine. Both companies' systems load in batch, Kestrel's claims portal sends events, and the medical claims of both companies must stay protected. The board has set a first-year budget of €3,000 a month and accepts recovery within a zone. In the designer's illustrative figures, the cheapest Fabric design that meets everything costs €2,620; the cheapest Databricks one €4,520.

Each requirement and the parts that meet it, in the Fabric design on OneLake (computed by the Platform designer)
RequirementMet by
Batch loads from the source systemsMicrosoft Fabric
Claims events in near real timeEvent Hubs
Spark on the lakeMicrosoft Fabric
Reports for the boardPower BI
No data store on the internetPrivate endpoints
Personal data classified and protectedMicrosoft Purview, Key Vault, Entra groups
Recovery target metOneLake
One place for the logsLog Analytics
Within the budget–
The combined platform as Bicep (built and linted with the Bicep CLI 0.47.16 in CI)
// Harbour Mutual's data platform: generated by the Cloud Data Architecture Lab's platform engine.
// OneLake has no resource of its own: it comes with the Fabric capacity's workspaces.
// Power BI runs on the Fabric capacity.
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('The Fabric capacity\'s administrators (user principal names).')
param fabricAdmins array

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 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 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 fabric 'Microsoft.Fabric/capacities@2023-11-01' = {
  name: 'fc${prefix}${environment}'
  location: location
  tags: tags
  sku: {
    name: 'F8'
    tier: 'Fabric'
  }
  properties: {
    administration: {
      members: fabricAdmins
    }
  }
}

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'
          ]
        }
      }
    ]
  }
}

output vaultName string = vault.name

The Customer product's contract is published beside the Claims one: Harbour Mutual's customers with chapter 22's classifications, owned by Femke Jansen. Written in the Open Data Contract Standard, it validates against the standard's own schema in the lab's checks.

The Customer product's contract, version 1.0.0 (Open Data Contract Standard)
{
  "apiVersion": "v3.1.0",
  "kind": "DataContract",
  "id": "dc-customers",
  "name": "Party: customers",
  "version": "1.0.0",
  "status": "active",
  "domain": "Party",
  "dataProduct": "Party",
  "description": {
    "purpose": "A person who holds, or has held, a Harbour Mutual policy.",
    "usage": "Read by reporting, reserving and the claims assistant through the product's output port."
  },
  "team": {
    "name": "Party domain",
    "members": [
      {
        "username": "femke.jansen@harbourmutual.example",
        "name": "Femke Jansen",
        "role": "owner",
        "description": "Head of Customer Operations"
      }
    ]
  },
  "schema": [
    {
      "name": "customers",
      "physicalName": "customers",
      "physicalType": "table",
      "logicalType": "object",
      "description": "A person who holds, or has held, a Harbour Mutual policy.",
      "properties": [
        {
          "name": "customer_id",
          "logicalType": "integer",
          "physicalType": "integer",
          "required": true,
          "unique": true,
          "primaryKey": true,
          "primaryKeyPosition": 1,
          "classification": "internal",
          "description": "Surrogate key"
        },
        {
          "name": "region_id",
          "logicalType": "integer",
          "physicalType": "integer",
          "required": true,
          "unique": false,
          "classification": "internal",
          "description": "region_id"
        },
        {
          "name": "name",
          "logicalType": "string",
          "physicalType": "text",
          "required": true,
          "unique": false,
          "classification": "confidential",
          "description": "name"
        },
        {
          "name": "birth_date",
          "logicalType": "date",
          "physicalType": "date",
          "required": true,
          "unique": false,
          "classification": "confidential",
          "description": "birth_date"
        },
        {
          "name": "customer_since",
          "logicalType": "date",
          "physicalType": "date",
          "required": true,
          "unique": false,
          "classification": "internal",
          "description": "customer_since"
        },
        {
          "name": "email",
          "logicalType": "string",
          "physicalType": "text",
          "required": false,
          "unique": false,
          "classification": "confidential",
          "description": "contact address; not every customer gave one"
        }
      ],
      "quality": [
        {
          "id": "rule-customer-email-present",
          "name": "A customer has an email address",
          "dimension": "completeness",
          "type": "sql",
          "query": "SELECT 100.0 * AVG(CASE WHEN COALESCE(email IS NOT NULL, FALSE) THEN 1 ELSE 0 END) FROM customers",
          "mustBeGreaterOrEqualTo": 70,
          "unit": "percent",
          "severity": "warning"
        },
        {
          "id": "rule-customer-email-format",
          "name": "An email address has a valid format",
          "dimension": "conformity",
          "type": "sql",
          "query": "SELECT 100.0 * AVG(CASE WHEN COALESCE((email IS NULL OR email ~ '^[^@ ]+@[^@ ]+\\.[a-z]{2,}$'), FALSE) THEN 1 ELSE 0 END) FROM customers",
          "mustBeGreaterOrEqualTo": 98,
          "unit": "percent",
          "severity": "warning"
        }
      ]
    }
  ],
  "slaProperties": [
    {
      "property": "freshness",
      "value": 24,
      "unit": "h"
    },
    {
      "property": "retention",
      "value": 7,
      "unit": "y"
    }
  ]
}
Try this Open the Platform designer with the stage's brief: the head of IT's proposal is already in it.
Remember Let the brief choose the parts: every part meets a requirement, none does another's job, and the budget is a requirement too. Then publish each data product's contract, and change it only in ways its consumers can survive.

Why it matters for Alex

The platform is where every earlier decision becomes real: the gates of stage 4 run in its pipelines, the roles of stage 5 are its Entra groups, and the golden customer of stage 3 is a table in its gold layer. A design the board cannot afford is not approved; a design with a part nobody can justify is the first thing cut, with whatever depended on it.

The contracts are what the platform promises the rest of the company. Kestrel's team meant well with the rename; a consumer reading reserve at night would have failed the morning after. Catching that before it ships is the contract's job.

Where it goes wrong

  • The platform the team knows. Familiar tools are a fact to weigh, not the brief. Here the budget decides.
  • Both pipelines, to be safe. Data Factory beside Fabric's pipelines is two services to run for one job.
  • A rename as a minor version. The name gets better and every consumer that reads it breaks.
  • The contract owned by IT. Whoever runs the system cannot promise what the data means. The domain's owner can.

The stakeholders

  1. Agnieszka Lis Chief Financial Officer, Harbour Mutual

    The board approves the platform next month: one design for both companies, within €3,000 a month for the first year, with recovery inside a zone. The designer's figures are illustrative; the decision is not.

  2. Willem de Boer Kestrel Operations Director, Kestrel

    Kestrel's claims portal sends every new claim as an event. Whatever you build has to take them as they arrive.

  3. Tomasz Zielinski Head of IT Operations, Harbour Mutual
    Pushback

    Our engineers know Databricks. Build the combined platform on Databricks.

More messages arrive as the stage's checks pass.

The goal

The requirements are met within the board's budget, the Bicep builds, the contracts validate and a breaking change is caught.

This stage gives you the goal; ask for a hint when you need one.

    The stage's outcome

    0 of 4 checks passed. The stage is done when all of them have.

    Your architecture deliverable Your skills record

    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.

    One platform for both companies

    Both companies load into one platform. Their systems are loaded in batch every night, and Kestrel's claims portal sends each claim as an event. No data store may be reachable from the internet, personal data (the medical claims included) is classified and protected, and every service logs to one place. For the first year the board accepts recovery within a zone and sets a budget of €3,000 a month (the designer's figures are illustrative, not prices). Every part must earn its place.

    The lab checks that:

    • The board's targets are unchanged: recovery within a zone, €3,000 a month.
    • Both companies' batch loads and Kestrel's claim events arrive.
    • No data store is on the internet, and personal data is classified and protected.
    • Every requirement is met within the budget.
    • No part duplicates another.
    Open the brief in the Platform designer, change the design until it meets the brief, and press Check there.

    A Claims contract for both companies

    The Claims product now serves both companies' claims, so each claim must say which company it came from and carry that company's own key (stage 2's model). Kestrel's team drafted the change: it adds the company, renames reserve to reserve_eur, calls it 1.1.0, and names Kestrel's operations director as owner. Fix the draft: both new columns as text, nothing a consumer reads broken, the version the change needs, and the claims domain's owner as the contract's owner.

    The lab checks that:

    • The draft has the columns source_company and source_key, both text.
    • No change breaks a consumer.
    • The version is a new minor version of 1: higher than 1.0.0, still 1.x.
    • The contract's owner is the owner of the claims domain.
    Open the brief in the Contract editor, change the draft until it meets the brief, and press Check there.

    Additive or breaking?

    Each line is a change proposed to the Customer product's contract, version 1.0.0. Choose what kind of change it is.

    Add an optional column source_company, so Kestrel's customers fit
    Rename name to full_name, as Kestrel's team calls it
    Remove birth_date, which the analysts never use
    Promise that every customer has an email
    Classify email as special category
    Promise 90% instead of 98% on the email format rule

    Answer the stakeholders

    Each line is something a stakeholder says as the stage goes on (the thread above). Agree, or push back where the facts say otherwise.

    Our engineers know Databricks. Build the combined platform on Databricks.
    Keep Data Factory beside Fabric. Our pipelines are already written for it.
    No store that holds personal data may be reachable from the internet. Put the stores behind private endpoints.
    Rename reserve to reserve_eur in the Claims contract and publish it as 1.1.0. The name should say the unit.
    Adding the company and the source key to the Claims contract breaks nobody. It is 1.1.0.
    Drop birth_date from the Customer contract in the next minor version. The analysts never needed it.

    On Azure

    Checked against Microsoft's documentation on 18 October 2026.

    On Azure, the design becomes a data landing zone (chapter 4) with these parts in it:

    • Microsoft Fabric on a capacity sized for the first year: OneLake for bronze, silver and gold as Delta tables, Fabric pipelines and notebooks for both companies' loads, and Power BI on the same capacity.
    • Azure Event Hubs for the portal's claim events, read by Fabric's real-time features or by a notebook.
    • Microsoft Purview for classification and the catalogue, Key Vault for secrets, Entra groups for the roles, private endpoints and Fabric's private links for the network, Log Analytics for the logs.
    • Bicep in source control builds the Azure resources; Fabric workspaces and items are deployed with Fabric's own deployment pipelines or Git integration.

    The contracts live beside the pipelines, in source control, and a pipeline that would publish a breaking change without a new major version fails its build.

    Take it to work

    Target platform and contracts

    Write down the platform's parts with the requirement each meets, and the contracts its data products publish.

    Requirements

    • Each requirement, including the budget and the recovery target
    • Who set it

    Parts

    • Each part, the requirement it meets, and what it costs
    • The parts left out, and why

    Contracts

    • Each data product, its owner, version and consumers
    • How a breaking change is published

    Tools in this chapter

    • Platform designer · Build an Azure reference architecture from parts, check it against the requirements, and export its Bicep.
    • Contract editor · Write a data contract, validate it, and check whether a proposed change breaks its consumers.
    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.