# Azure IoT Hub

Azure IoT Hub is a managed cloud messaging service that securely connects IoT devices to backend applications for telemetry ingestion and device management.

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

> Azure IoT Hub provides per-device identity, authenticated connectivity, and message routing between connected devices and cloud services. Its Standard tier adds bidirectional communication, device twins, direct methods, and fleet-management operations, while downstream services provide durable storage, analytics, and application workflows.

## 10 key features of Azure IoT Hub

1. **Per-device identity and authentication**: Register devices with individual identities and authenticate them using symmetric keys or X.509 certificates. Individual identities allow operators to disable a compromised device without replacing credentials across the entire fleet.
2. **Device telemetry ingestion**: Receive device-to-cloud messages over supported MQTT, AMQP, and HTTPS connections. Use Azure IoT SDKs to implement connection recovery and messaging without writing all protocol interactions yourself.
3. **Content-based message routing**: Filter telemetry using message properties, supported body queries, and device context, then route it to downstream services. For example, send fault events to an operational workflow while archiving all measurements in Azure Storage.
4. **Device and module twins**: Standard-tier twins maintain JSON documents containing desired properties, reported properties, and service-side tags. Use them to distribute persistent configuration and query fleet state, not as a replacement for a telemetry history database.
5. **Cloud-to-device operations**: Standard supports queued cloud-to-device messages and request-response direct methods. Use a direct method for an online diagnostic action, and select persistent configuration or queued messaging when immediate connectivity cannot be assumed.
6. **Fleet configuration jobs**: Schedule supported twin updates and direct-method operations across selected devices in Standard-tier hubs. Track job outcomes and implement device-side validation so unsupported configuration changes are rejected safely.
7. **Event Hubs-compatible telemetry endpoint**: Consume telemetry through a partitioned built-in endpoint using compatible event-processing clients. Separate consumer groups isolate application read positions, while configurable retention supports short-term replay for up to seven days.
8. **Device-initiated file uploads**: Coordinate device uploads to an associated Azure Blob Storage container instead of sending large files as telemetry messages. The device transfers file content directly to storage, which has its own access, capacity, and billing considerations.
9. **Operational monitoring**: Use platform metrics and diagnostic logs to investigate connection errors, throttling, and routing failures. Configure alerts against sustained failures and compare hub metrics with destination-service metrics to locate delivery bottlenecks.
10. **Azure Device Registry integration**: Eligible Standard hubs can optionally link to an Azure Device Registry namespace for shared device-management capabilities. Operational X.509 certificate management supports issuance, renewal, and revocation, subject to regional and connection-profile requirements.

## Where Azure IoT Hub is used

1. **Industrial equipment monitoring**: Collect vibration, temperature, and fault telemetry from machines or industrial gateways. Route measurements to analytics and storage services, then use Standard-tier device operations for approved diagnostic or configuration actions.
2. **Cold-chain monitoring**: Receive temperature and location readings from refrigerated vehicles or containers and evaluate excursions in a downstream stream-processing service. Buffer readings locally during cellular outages and include device timestamps so delayed events can be interpreted correctly.
3. **Connected product management**: Maintain individual identities and configuration state for deployed appliances or commercial equipment. Use twin desired properties to request settings changes and reported properties to confirm the configuration actually applied.
4. **Smart-building telemetry**: Connect meters, environmental sensors, and building gateways to a common ingestion layer. Route data by site or device type to storage and operational applications while keeping safety-critical control loops local.
5. **Remote equipment diagnostics**: Request diagnostic actions from online devices through direct methods and upload resulting log files to Blob Storage. Record command outcomes in an application database and handle timeouts explicitly rather than treating a request as proof of execution.

## How Azure IoT Hub is priced

- **Free tier for evaluation**: The F1 tier provides Standard-style capabilities with limited capacity: up to 8,000 metered messages per day, using 0.5 KB message metering blocks. It is intended for testing and evaluation, cannot be scaled with additional units, and cannot be upgraded directly to a paid tier.
- **Basic tier capacity units**: Basic hubs use paid B1, B2, or B3 capacity units for device-to-cloud workloads. Each size provides a defined daily message allowance and associated throughput limits; paid-tier messages are generally metered in 4 KB blocks, so larger messages consume multiple blocks. Basic does not include device twins, direct methods, or cloud-to-device messaging.
- **Standard tier capacity units**: Standard hubs use paid S1, S2, or S3 capacity units and include bidirectional communication and device-management features. Select size and unit count using telemetry volume, message size, and operation-specific limits; some non-telemetry operations also consume message allowance under their documented metering rules. Standard sizes provide daily per-unit allowances of 400,000, 6 million, and 300 million messages respectively.

## Services Azure IoT Hub works with

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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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)](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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)](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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.

## Alternatives to Azure IoT Hub in other clouds

### AWS

**[AWS IoT Core](https://blowstack.com/tools/cloud-services-hub/aws-iot-core)**: AWS IoT Core and Azure IoT Hub securely connect IoT devices to cloud applications and route device data to downstream services. AWS IoT Core meters connection time and messaging usage, while Azure IoT Hub uses capacity tiers with daily message allowances and supports AMQP alongside MQTT and HTTPS.

| | Azure IoT Hub | AWS IoT Core |
| --- | --- | --- |
| Paid billing model | Capacity units with daily message quotas | Usage-based: messages, minutes, ops |
| Device connection protocols | MQTT, AMQP, HTTPS, WebSockets | MQTT, HTTPS, WebSockets |
| Free offer | F1: up to 8,000 metered messages/day | Up to $200 in credits for new customers |

Compared Nov 2026.

**[AWS IoT Device Management](https://blowstack.com/tools/cloud-services-hub/aws-iot-device-management)**: AWS IoT Device Management and Azure IoT Hub both support secure device registration, monitoring, and remote fleet management. AWS meters device-management operations as they’re used, while Azure IoT Hub offers fleet management in its paid Standard tier, priced by capacity units with daily message allowances.

| | Azure IoT Hub | AWS IoT Device Management |
| --- | --- | --- |
| Paid billing model | Capacity units with message allowances | Usage by management operation |
| Fleet job operations | Twin updates and direct methods | Remote actions such as firmware updates |
| Free offering | F1: 8,000 metered messages/day max | Up to $200 in new-customer credits |

Compared Nov 2026.

## What is Azure IoT Hub

Azure IoT Hub acts as the device-facing gateway in an IoT architecture. Devices authenticate individually, establish encrypted connections, and send telemetry such as temperatures, equipment status, or fault events. Backend applications consume this telemetry through the built-in Event Hubs-compatible endpoint or through configured routing destinations. IoT Hub handles connectivity and messaging; it is not a general-purpose telemetry database, dashboard, or analytics engine.

For conventional IoT Hub connections, device applications can use MQTT, AMQP, or HTTPS, with WebSockets options for MQTT and AMQP. Azure IoT device SDKs simplify authentication, connection recovery, and supported messaging operations. Protocol capabilities differ, so select the protocol and SDK against the operations the device needs. Conventional MQTT connectivity uses service-defined topics rather than providing an unrestricted MQTT broker. A separate MQTT v5 connection profile with customer-defined publish topics is available in preview and requires a new hub.

Each device has its own identity and credentials. Symmetric-key authentication and X.509 certificates support different manufacturing and provisioning workflows. Use device-specific credentials rather than distributing hub-level shared access credentials to devices. Protect private keys in hardware where possible, maintain trusted root certificates, and plan credential rotation before deployment. Device Provisioning Service can assign devices to hubs during onboarding instead of requiring a hub hostname to be embedded in every device image.

The Basic tier supports device-to-cloud scenarios. Standard adds cloud-to-device messages, device twins, direct methods, and device-management capabilities. Use twin desired properties for persistent configuration that a device can retrieve after reconnecting, and reported properties for device-reported state. Use direct methods when an online device must return an immediate application response. These operations require device-side handlers; IoT Hub does not implement equipment behavior on the device's behalf.

Message routes filter events using supported message properties, body fields, and device context, then deliver matching events to configured endpoints. For routing queries against JSON body fields, set the appropriate content type and encoding. Destinations include Azure Storage, Event Hubs, Service Bus, Azure Cosmos DB, and Microsoft Fabric eventstreams. Review the built-in endpoint and fallback-route behavior when adding routes so existing consumers continue receiving their intended traffic.

Plan capacity using both daily message allowances and operation-specific throttling limits. Message size affects metered consumption, and increasing units does not eliminate every service limit. The built-in telemetry endpoint retains messages for a configurable period of up to seven days; use downstream storage for longer retention. Give independent consumers separate consumer groups, checkpoint processing progress, and make processing idempotent because duplicate delivery can occur.

Monitor connection failures, throttled requests, routing latency, and destination delivery failures with Azure Monitor. Devices should use DNS names rather than pinned service IP addresses and implement reconnect backoff with jitter. Test network interruptions, credential renewal, destination outages, and regional recovery procedures. Durable offline telemetry buffering must be implemented on the device or gateway rather than assumed to be provided by the cloud connection.
