A common architecture separates device connectivity from data processing. Devices authenticate to IoT Hub, while Device Provisioning Service handles initial assignment to hubs. Message routing sends telemetry to the services responsible for storage, processing, or application workflows. Keep onboarding, telemetry ingestion, and backend authorization as distinct security boundaries.
For real-time processing, Stream Analytics can read the built-in endpoint and evaluate windowed calculations, while Azure Functions can run application-specific handlers through an Event Hubs trigger. Give independent consumers separate consumer groups and preserve checkpoints. Direct routing to Microsoft Fabric eventstreams provides another path for real-time analysis. In every case, retain device timestamps and identifiers so downstream systems can handle delayed and duplicate events correctly.
Use Blob Storage for long-term archives and Azure Cosmos DB for operational queries that require indexed access to device records. Event Grid connects supported device lifecycle and connection events to reactive workflows. Azure Monitor provides a separate operational view of connections, throttling, and routing health. Validate routing rules, destination permissions, retry behavior, and downstream capacity together; accepting telemetry at the hub does not prove that every destination has processed it successfully.
Azure IoT Hub Device Provisioning Service
Device Provisioning Service authenticates onboarding devices and assigns them to linked IoT hubs according to enrollment and allocation settings. For example, a manufacturer can provision devices using X.509 enrollment groups and have each device discover its assigned hub at first boot. Provisioning does not replace the device's subsequent authenticated connection to IoT Hub, and DPS has separate quotas and charges.
Azure Stream Analytics
Azure Stream Analytics can read IoT Hub telemetry as a streaming input and evaluate time-windowed queries. For example, calculate a five-minute average motor temperature and write threshold violations to an alert-processing destination. Use a dedicated consumer group and configure event-time handling for late or out-of-order device readings.
Azure Blob Storage
Route telemetry to a Blob Storage container for durable archival and batch processing. For example, retain factory measurements in time-organized blobs for later investigation or model training. IoT Hub also coordinates device file uploads to Blob Storage, but that is a separate workflow from telemetry routing.
Azure Cosmos DB
Configure a supported Azure Cosmos DB for NoSQL container as a custom routing endpoint to store device telemetry directly. For example, write vehicle readings into a container queried by a fleet application. Design partition keys, including synthetic partition keys where appropriate, against expected query patterns and write distribution, and provision sufficient database throughput.
Azure Functions
Azure Functions can process messages from IoT Hub's built-in Event Hubs-compatible endpoint through the Event Hubs trigger. For example, a function can validate a sensor payload and update an application-specific device-status record. Use a dedicated consumer group, configure checkpoint storage, and make external writes idempotent to tolerate retries and duplicate processing.
Event Grid
Subscribe to supported IoT Hub events with Event Grid to connect device activity to event-driven applications. For example, a device-created event can initiate an inventory-registration workflow, while connection-state events can update an operational view. Treat connection events as notifications rather than a continuously authoritative online-status database, and configure subscriber retry and dead-letter behavior.
Azure Monitor
Use Azure Monitor metrics and diagnostic settings to observe hub behavior and send selected resource logs to Log Analytics. For example, alert on sustained telemetry throttling and correlate routing failures with destination-service errors. Resource logs require explicit diagnostic configuration and incur destination ingestion and retention charges where applicable.
Microsoft Fabric
Route device telemetry directly to a Microsoft Fabric Real-Time Intelligence eventstream through a supported routing endpoint. For example, stream production-line measurements into Fabric for real-time transformation and operational analysis. Configure managed-identity authentication and destination permissions, and account for the CloudEvents representation carrying device identity and event context.
Azure Container Registry
IoT Hub can deploy IoT Edge modules packaged as images in Azure Container Registry. The IoT Edge runtime uses the registry credentials in the deployment manifest to pull the specified images.
Azure Data Explorer
IoT Hub can feed device-to-cloud messages directly to an Azure Data Explorer table through an IoT Hub data connection. For example, ingest equipment readings as they arrive and query them for recurring temperature spikes.
Azure Data Lake Storage
IoT Hub message routing can write device telemetry to a container in an Azure Data Lake Storage Gen2 account. This lets you retain raw readings for historical analysis or batch processing.
Azure Databricks
IoT Hub exposes device-to-cloud messages through a built-in Event Hubs-compatible endpoint that Azure Databricks can read with Spark Structured Streaming. A streaming job can decode the messages and write cleaned readings to a Delta table.
Azure Device Registry
An eligible Standard IoT hub can link to an Azure Device Registry namespace so its devices are represented as Azure Resource Manager resources. Multiple hubs can share a namespace for fleet management, and supported connection profiles can use the registry to manage operational X.509 certificates.
Azure DevOps
Azure Pipelines can use the Azure IoT Edge task to publish deployment configurations to IoT Hub. For example, a release pipeline can deploy a new module version to a pilot group of gateways selected by device twin tags.
Azure DNS
IoT Hub private endpoints can use Azure Private DNS to resolve the hub's service hostname to a private IP address. Devices on a linked virtual network can keep using the hub hostname rather than connecting by IP address.
Azure IoT Central
IoT Central uses managed IoT Hub instances internally for device connectivity and messaging. Those hubs are managed by IoT Central and are not exposed as separate IoT Hub resources in the application's Azure subscription.
Azure IoT Edge
IoT Hub registers IoT Edge devices and modules, maintains their twins, and distributes module deployments to targeted devices. It also receives upstream telemetry from the edge runtime, such as readings aggregated by a gateway module.
Azure Machine Learning
IoT Hub can deploy a model packaged by Azure Machine Learning as a module on registered IoT Edge devices. For example, a gateway can score sensor readings locally while IoT Hub manages which devices receive each module version.
Azure Managed Grafana
IoT Hub publishes metrics to Azure Monitor that Azure Managed Grafana can query through its Azure Monitor data source. A dashboard can plot connected devices, telemetry throughput, and routing failures for a hub.
Azure Marketplace
When configuring an IoT Edge deployment in IoT Hub, you can select a module offered in Azure Marketplace. IoT Hub distributes the deployment configuration, and the targeted edge devices pull and run the module.
Azure Policy
IoT Hub resources can be evaluated by built-in Azure Policy definitions for settings such as public network access and local authentication. Assign those policies to audit hubs that do not meet your requirements or to block noncompliant configurations where the policy supports denial.
Azure portal
IoT Hub has dedicated management pages in the Azure portal for registering devices, inspecting device twins, configuring message routes, and deploying IoT Edge modules. For example, you can test a routing query against a sample message before enabling the route.
Azure Private Link
IoT Hub supports Azure Private Link through a private endpoint with an IP address in your virtual network. You can disable public network access to the hub and have clients connect through the private endpoint.
Azure Resource Manager
Azure Resource Manager provisions IoT hubs as `Microsoft.Devices/IotHubs` resources. A deployment can configure the hub's tier, managed identity, and message routes alongside its destination resources.
Azure role-based access control (Azure RBAC)
IoT Hub supports Azure RBAC for both resource management and supported data-plane operations. For example, the IoT Hub Twin Contributor role lets an operator read and update twins without granting permission to administer the hub itself.
Azure Service Health
IoT Hub exposes individual hub health through Resource Health and reports relevant Azure incidents and planned maintenance through Service Health. You can configure alerts for events that affect your hubs.
Azure Sphere
IoT Hub can authenticate Azure Sphere devices using certificates backed by the Azure Sphere catalog's certificate authority, with Device Provisioning Service handling enrollment. Once connected, a device can send telemetry, report twin properties, and receive direct method calls.
Azure Virtual Network
IoT Hub can be reached from an Azure virtual network through a private endpoint placed in a subnet. This gives devices and backend clients in the network a private path to the hub without enabling its public endpoint.
Event Hubs
IoT Hub provides a built-in Event Hubs-compatible endpoint for reading device-to-cloud messages. It can also route selected messages to a separate Event Hubs namespace and event hub for downstream consumers.
HDInsight
IoT Hub's built-in Event Hubs-compatible endpoint can stream device messages into Apache Spark on HDInsight using the Spark Event Hubs connector. For example, a Spark job can aggregate telemetry into per-device time windows.
Logic Apps
IoT Hub can publish device events through Event Grid to trigger a logic app. For example, a device-created event can start a workflow that opens an onboarding ticket and notifies the operations team.
Microsoft Defender for Cloud
Microsoft Defender for Cloud can surface security posture findings for IoT Hub resources through Azure Policy assessments. For example, it can flag a hub that allows public network access when the assigned policy requires that access to be disabled.
Microsoft Defender for IoT
The legacy device-builder integration lets supported IoT Hub deployments surface device security alerts and recommendations in Microsoft Defender for IoT. These findings help operators identify devices that need investigation or configuration changes.
Microsoft Entra ID (formerly Azure AD)
IoT Hub accepts Microsoft Entra ID tokens for supported service-side operations and can use an Entra managed identity to authenticate to supported routing destinations. For example, a hub can send telemetry to Event Hubs without storing an endpoint access key.
Service Bus
IoT Hub can route matching device messages to a Service Bus queue or topic. For example, a route can send equipment fault messages to a queue for a maintenance workflow while sending routine readings elsewhere.