Azure IoT Hub Device Provisioning Service (DPS) handles the initial identity verification and hub assignment required to connect a device to Azure IoT Hub. Devices contact DPS during provisioning, receive their assigned IoT Hub hostname and device identity information, and then communicate directly with that hub. DPS is not a telemetry gateway and does not sit between devices and IoT Hub during normal operation.
Before deployment, configure each device with its provisioning endpoint, DPS ID scope, and authentication material. In public Azure, devices normally use global.azure-devices-provisioning.net; the ID scope identifies the target DPS instance. Create the corresponding enrollment records in DPS and link the destination IoT hubs. Linking a hub gives DPS the permissions needed to create device identities and initialize device twins. Destination hubs can reside in different Azure regions or subscriptions.
DPS supports X.509 certificates, symmetric keys, and Trusted Platform Module (TPM) attestation. Individual enrollments describe a single device, while enrollment groups admit devices that share an X.509 certificate trust chain or use device-specific symmetric keys derived from a group key. TPM attestation uses individual enrollments. Protect private keys and device secrets in hardware-backed storage where practical, and never distribute an enrollment group's master symmetric key to every device.
Allocation policies determine which linked IoT hub receives a device. Built-in options include evenly weighted distribution, lowest latency, and static assignment through enrollment configuration. A custom allocation policy invokes an Azure Function when business rules require information such as customer ownership or deployment location. Treat device-supplied registration payloads as untrusted input and validate them against authoritative records before making security-sensitive placement decisions.
Enrollment configuration can provide initial device twin tags and desired properties. Devices must implement application logic to read and apply desired properties; DPS does not install firmware or execute configuration changes on the device. Reprovisioning policies control reassignment and whether supported device data is migrated or reset. An enrollment update does not push a connected device to another hub: device software must initiate provisioning again.
For production fleets, use the device SDK's polling and retry behavior, add randomized startup delays, and test recovery from interrupted registration. Plan for both DPS request limits and IoT Hub capacity; documented default DPS limits include 1,000 device registrations per minute per service and 50 linked hubs. Review quotas before mass rollout and request adjustable increases early. Monitor registration failures, authentication errors, and throttling, and retain existing assignments so routine reconnects do not unnecessarily repeat provisioning.
Keep decommissioning procedures separate from onboarding. Disabling an enrollment prevents future provisioning through that enrollment but does not, by itself, revoke an existing IoT Hub identity. Disable or remove the hub identity when access must end. DPS also does not support provisioning nested IoT Edge parent-child hierarchies.