# Azure IoT Hub Device Provisioning Service

Azure IoT Hub Device Provisioning Service is a managed service that authenticates IoT devices and automatically registers them with an assigned Azure IoT hub.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-iot-hub-device-provisioning-service

> Azure IoT Hub Device Provisioning Service (DPS) automates device onboarding using preconfigured credentials, enrollment records, and allocation policies. It supports initial device configuration and subsequent reprovisioning across linked IoT hubs, while leaving ongoing telemetry and device communication to IoT Hub.

## 9 key features of Azure IoT Hub Device Provisioning Service

1. **Multiple device attestation methods**: Authenticate devices using X.509 certificates, symmetric keys, or TPM-based identities. Select the method according to hardware capabilities and credential lifecycle requirements, and keep device credentials separate from backend administration credentials.
2. **Individual and group enrollments**: Use individual enrollments for per-device control or enrollment groups for X.509 and symmetric-key fleets. Groups reduce enrollment administration, but each device should still have its own certificate and private key or derived symmetric key.
3. **Built-in hub allocation**: Assign devices through evenly weighted distribution, lowest-latency selection, or static enrollment configuration. Distribution assigns device identities; it does not continuously rebalance telemetry traffic or account for each device's message volume.
4. **Custom allocation with Azure Functions**: Invoke an Azure Function to select a linked IoT hub using enrollment information and optional device registration payloads. For example, look up the registered owner of a device and return that customer's designated hub.
5. **Cross-region and cross-subscription provisioning**: Link IoT hubs in multiple Azure regions and subscriptions to a DPS instance. This supports geographically distributed deployments without embedding the final hub hostname into each device at manufacture.
6. **Initial device twin configuration**: Define initial twin tags and desired properties in enrollment configuration. Use tags for backend organization and desired properties for settings that device application code reads and applies.
7. **Controlled reprovisioning**: Configure reprovisioning behavior to retain an existing assignment or allow reassignment with supported data migration or reset behavior. Device software must reconnect to DPS to perform reprovisioning; changing an enrollment alone does not initiate a device-side transition.
8. **SDKs and management APIs**: Use device SDKs for registration, service SDKs for enrollment and registration-record operations, and management SDKs for Azure resource configuration. This separates device onboarding logic from fleet administration and infrastructure deployment.
9. **Monitoring and diagnostics**: Use Azure Monitor metrics and diagnostic logs to investigate provisioning failures and request throttling. Correlate DPS errors with device-side logs and custom allocation function logs to distinguish authentication, allocation, and connectivity problems.

## Where Azure IoT Hub Device Provisioning Service is used

1. **Factory-prepared, field-activated devices**: Install provisioning credentials and an ID scope during manufacturing, then let devices discover their assigned hub when first deployed. This avoids programming a final IoT Hub hostname into each device on the production line.
2. **Geographically distributed fleets**: Link regional IoT hubs and use lowest-latency allocation to place devices near their operating locations. If regulatory or contractual placement rules are stricter than latency preferences, enforce them through explicit enrollment settings or custom allocation.
3. **Customer-specific onboarding**: Use a custom allocation function to map authenticated device identities to customer ownership records and assign the appropriate hub. Validate ownership in the backend rather than trusting a customer identifier supplied by the device.
4. **Fleet distribution across multiple hubs**: Spread new device registrations across linked hubs using evenly weighted distribution. Size hubs for expected message throughput as well as device counts, because equal registration distribution does not guarantee equal traffic.
5. **Device reassignment and redeployment**: Update enrollment and allocation settings when a device changes location, owner, or solution, then have the device initiate reprovisioning. Test twin migration or reset behavior and coordinate removal of obsolete hub identities as part of the transition.

## How Azure IoT Hub Device Provisioning Service is priced

- **Consumption-based provisioning operations**: DPS is billed by the number of operations rather than by ongoing device telemetry volume. Registration requests, registration-status polling, and service operations such as enrollment updates can contribute to usage, so one completed device onboarding can involve multiple billable operations. Estimate retries and reprovisioning activity as well as first-time registrations, and check current Azure pricing for applicable rates and billing units.
- **Separate charges for connected services**: IoT Hub capacity and messaging, custom allocation Functions, monitoring ingestion and retention, and other supporting resources are billed separately. Treat these as additional architecture costs rather than functionality included in DPS operation charges.

## Services Azure IoT Hub Device Provisioning Service works with

A typical architecture places DPS on the onboarding path and IoT Hub on the operational messaging path. Devices authenticate to DPS, receive a hub assignment, and then send telemetry directly to that hub. Link all eligible hubs in advance and use enrollment configuration to define initial twin settings and constrain placement where required.

For business-specific assignment, a custom allocation function can query an ownership store such as Azure Cosmos DB. For example, an authenticated registration ID can resolve to a customer record and an approved regional hub. Keep ownership decisions authoritative in the backend, validate device-provided payloads, and design the function to handle retries and dependency outages without creating inconsistent side effects.

Enrollment automation and allocation applications can use Azure Key Vault for their own credentials and certificate material; this does not replace device-side secure storage or certificate issuance processes. Azure Monitor provides the operational view through metrics, diagnostic logs, and alerts. Correlate DPS activity with allocation function logs and device diagnostics, while budgeting separately for IoT Hub capacity, function execution, database access, and monitoring retention.

- **[Azure IoT Hub](https://blowstack.com/tools/cloud-services-hub/azure-iot-hub)**: DPS provisions devices only to IoT hubs linked to its instance, creating the device identity and applying initial twin configuration. After assignment, devices connect directly to IoT Hub for telemetry and supported device-management operations. For example, link hubs in two regions and use enrollment settings to restrict a particular device group to its approved destination.
- **[Azure Functions](https://blowstack.com/tools/cloud-services-hub/azure-functions)**: Custom allocation invokes an Azure Function to choose a destination from the applicable linked IoT hubs. For example, the function can resolve a device registration ID against a customer ownership database and return the customer's hub. Keep the function responsive, handle dependency failures explicitly, and avoid logging credentials or sensitive registration payloads.
- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Use Azure Monitor metrics and route supported DPS resource logs through diagnostic settings to a Log Analytics workspace. For example, create alerts for registration failures or throttling and use log queries to investigate a failed rollout. Diagnostic log collection requires configuration and can incur ingestion and retention charges.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: Backend enrollment tools and allocation applications can use Key Vault to protect secrets, certificates, and keys they require. For example, a manufacturing enrollment application can retrieve a protected signing credential or enrollment secret under tightly scoped access controls. This is an application-side integration: DPS does not automatically issue device certificates or load device credentials from Key Vault.
- **[Azure Cosmos DB](https://blowstack.com/tools/cloud-services-hub/azure-cosmos-db)**: An allocation function or enrollment backend can use Cosmos DB as an authoritative mapping store for device ownership and hub assignment. For example, store a record keyed by registration ID containing the approved customer and destination hub, then validate that mapping during custom allocation. This requires application code; DPS does not directly query Cosmos DB.
- **[Azure Blob Storage](https://blowstack.com/tools/cloud-services-hub/azure-blob-storage)**: Device Provisioning Service can archive its resource logs in Azure Blob Storage through a diagnostic setting. For example, keep a record of device registration attempts to investigate provisioning failures after a fleet rollout.
- **[Azure Device Registry](https://blowstack.com/tools/cloud-services-hub/azure-device-registry)**: Device Provisioning Service handles initial onboarding in supported Azure Device Registry certificate workflows. A device can authenticate with its manufacturing-installed onboarding credential and obtain an operational certificate for connecting to its assigned IoT hub.
- **[Azure DNS](https://blowstack.com/tools/cloud-services-hub/azure-dns)**: Device Provisioning Service can use an Azure Private DNS zone to resolve its instance hostname to a private endpoint IP address. Devices on a linked virtual network can then use the provisioning hostname without reaching the public endpoint.
- **[Azure IoT Central](https://blowstack.com/tools/cloud-services-hub/azure-iot-central)**: Device Provisioning Service handles device registration and hub assignment for IoT Central applications. A device presents the application's ID scope and its enrollment credentials to get the connection information for the IoT hub behind the application.
- **[Azure IoT Edge](https://blowstack.com/tools/cloud-services-hub/azure-iot-edge)**: Device Provisioning Service can register standalone IoT Edge devices and assign them to linked IoT hubs when they first start. For example, factory gateways can use X.509 enrollment to discover their assigned hubs without storing hub hostnames in their factory configuration.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Device Provisioning Service instances can be evaluated against Azure Policy rules that target their resource type and settings. For example, a policy can flag instances that allow public network access.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Device Provisioning Service has a dedicated management page in the Azure portal. From that page, administrators can link IoT hubs, configure allocation policies, and manage individual enrollments and enrollment groups.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: Device Provisioning Service supports private endpoints through Azure Private Link. Devices can register through a private IP address, and administrators can disable public network access to the provisioning instance.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Device Provisioning Service instances can be deployed and updated through Azure Resource Manager as `Microsoft.Devices/provisioningServices` resources. An ARM template can define an instance's allocation policy, linked hubs, and networking settings.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Device Provisioning Service uses Azure RBAC to control management access to its Azure resources. For example, an operator can be allowed to view an instance's configuration without being allowed to change or delete it.
- **[Azure Service Health](https://blowstack.com/tools/cloud-services-hub/azure-service-health)**: Azure Service Health reports service incidents and advisories that affect Device Provisioning Service. Administrators can use health alerts to learn when a regional incident may disrupt device onboarding.
- **[Azure Sphere](https://blowstack.com/tools/cloud-services-hub/azure-sphere)**: Device Provisioning Service can trust a linked Azure Sphere catalog certificate for X.509 attestation. An enrollment group can then register devices from that catalog and assign them to a linked IoT hub when they first connect.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: Device Provisioning Service can be reached from an Azure Virtual Network through a private endpoint in a subnet. Devices with access to that network can register without using the public provisioning endpoint.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Device Provisioning Service can stream its resource logs to Event Hubs through a diagnostic setting. A monitoring pipeline can consume those logs to detect spikes in failed device registrations.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: Device Provisioning Service supports Microsoft Entra authentication for Azure management operations. Administrators can use their organizational identities and Azure role assignments to manage a provisioning instance; devices still use their configured attestation credentials to register.

## What is Azure IoT Hub Device Provisioning Service

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.
