Provision devices to Azure IoT Hub using a DPS symmetric key enrollment group with derived per-device keys

domain: iot · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In your Device Provisioning Service instance, go to Manage enrollments > Add enrollment group and select Symmetric key as the attestation mechanism
  2. Name the group, choose auto-generated or custom keys, link the target IoT hub(s) and allocation policy, then create the group — DPS generates a primary and secondary key for it
  3. Assign each device a unique registration ID (e.g. derived from its MAC address or serial number)
  4. Derive each device's own key by computing an HMAC-SHA256 hash of its registration ID using the enrollment group's primary key, e.g. via `az iot dps enrollment-group compute-device-key --key <group_primary_key> --registration-id <device_registration_id>`
  5. Flash each device with only its ID Scope, registration ID, and derived key (never the group key) so it can attest with DPS and auto-provision to the linked IoT hub

Known gotchas

Related routes

Provision devices using Azure IoT Hub Device Provisioning Service with X.509 enrollment groups
azure-dps · 6 steps · unrated
Auto-provision IoT devices at scale using Azure Device Provisioning Service with X.509 enrollment groups
azure.microsoft.com · 6 steps · unrated
Synchronize device configuration using Azure IoT Hub device twins with correct size limits
azure-iot-hub · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans