Internative Logo

What Is Azure IoT Hub? Microsoft's Managed Hub for IoT Devices

What Is Azure IoT Hub? Microsoft's Managed Hub for IoT Devices

Connecting one sensor to the cloud is easy. Connecting thousands of devices that sit behind firewalls, drop off the network, run out of battery and need their own credentials is not. Someone has to decide which devices may connect, receive their data reliably, send them commands, and route the data to the systems that use it. Azure IoT Hub is Microsoft's managed service for exactly that layer, so teams can build the IoT application instead of the messaging plumbing underneath it.

This article explains what Azure IoT Hub is, how it works, where it fits, when another option is better, and how it compares with the alternatives.

What is Azure IoT Hub?

Azure IoT Hub is a managed cloud service that acts as the central message hub between an IoT application and the devices it manages. It gives every device its own identity, carries data from devices to the cloud and commands from the cloud to devices, and keeps track of each device's state. Microsoft documents it as scaling to millions of simultaneously connected devices and millions of events per second.

Microsoft offered IoT Hub as a public preview in 2015 and announced general availability on 4 February 2016. At that point it already supported MQTT 3.1.1 natively, alongside AMQP and HTTPS, so devices could connect with standard protocols instead of a custom gateway.

IoT Hub is a platform service, not a finished application. It does not draw dashboards or run business logic; it is the secure, scalable connection point that the rest of an Azure IoT solution is built around.

How Azure IoT Hub works

Device identity. Every IoT hub has an identity registry. A device must be registered before it can connect, and it authenticates with either a SAS token based on a symmetric key or an X.509 certificate. Certificates are the stronger option for fleets that can manage them. For large rollouts, the IoT Hub Device Provisioning Service registers devices automatically the first time they come online.

Device-to-cloud telemetry. Devices send messages, such as temperature readings, error codes or status updates, over MQTT, AMQP or HTTPS, all secured with TLS. Messages land on a built-in endpoint that keeps them for up to seven days.

Cloud-to-device control. The service can send messages to a device, call a direct method on it (a request-reply call such as "reboot" that succeeds or fails within a timeout), and accept file uploads from devices.

Device twins. Each device has a twin: a JSON document in the cloud that holds the device's desired settings and its last reported state. You can change a setting while a device is offline, and the device picks it up when it reconnects.

Message routing. Rules send each message to the right place, such as Azure Storage, Event Hubs, Service Bus queues and topics, or Cosmos DB, without custom code. IoT Hub also publishes events to Azure Event Grid for event-driven processing, and data can flow on to Stream Analytics, Logic Apps or Azure Machine Learning.

Key features

  • Per-device identity and authentication with SAS tokens or X.509 certificates.
  • Standard protocols: MQTT, AMQP and HTTPS, with WebSocket options for restrictive networks.
  • Bidirectional communication: telemetry, cloud-to-device messages, direct methods and file upload.
  • Device twins for configuration and state, even for intermittently connected devices.
  • Message routing to Azure storage, messaging and database services.
  • Device SDKs for C, C#, Java, Node.js and Python, plus Azure IoT Edge for running workloads on gateway devices.
  • Data residency: Microsoft states that IoT Hub does not store or process customer data outside the geography where it is deployed.

Note that some capabilities, including device twins, direct methods and cloud-to-device messages, are only available in the standard tier, not the basic tier.

Where Azure IoT Hub is used

  • Industrial monitoring: machines sending vibration, temperature and energy data for predictive maintenance.
  • Smart buildings and energy: meters, HVAC controllers and environmental sensors across many sites.
  • Fleet and logistics: vehicles and cold-chain trackers reporting location and condition.
  • Connected products: manufacturers that need to configure and update devices after they are sold.
  • Pilots that will grow: a proof of concept on Arduino or Raspberry Pi that uses the same cloud entry point as the eventual fleet.

When to choose Azure IoT Hub, and when not to

Choose Azure IoT Hub when:

  • The company already runs on Microsoft Azure, and IoT data should flow into the same analytics and identity setup.
  • Devices need individual credentials, remote configuration and commands, beyond a plain data pipe.
  • The fleet is expected to grow from a pilot to thousands of devices.
  • Security and compliance teams require managed, auditable device access.

Look elsewhere when:

  • You only need to ingest a high-volume event stream from a few trusted sources, with no per-device identity or commands. Azure Event Hubs or Apache Kafka fits better.
  • The rest of the system runs on AWS or Google Cloud, and adding a second cloud for IoT alone would add more complexity than it removes.
  • Devices must keep working with no cloud connection for long periods. Processing then belongs at the edge, with the cloud as a secondary destination.
  • You want a ready-made application with dashboards and rules, rather than building your own on a platform service.

Azure IoT Hub and its alternatives

OptionTypeBest fit
Azure IoT HubManaged device hub with identity, twins, commandsAzure-based device fleets
AWS IoT CoreManaged MQTT broker with device registry and rulesAWS-based device fleets
Azure Event Grid MQTT brokerManaged MQTT publish-subscribeMQTT-native messaging between devices and apps
Self-hosted MQTT broker (EMQX, Mosquitto)Software you operateFull control, on-premise or multi-cloud
Azure Event HubsEvent streaming serviceHigh-volume ingestion without device management

The most common confusion is between IoT Hub and Event Hubs. Both receive large volumes of messages, and IoT Hub's built-in endpoint is even compatible with Event Hubs. The difference is the device: IoT Hub knows each device individually, authenticates it, and can talk back to it; Event Hubs only ingests a stream. Google's equivalent, Cloud IoT Core, was retired in August 2023, which left Azure IoT Hub and AWS IoT Core as the two main hyperscaler device platforms. For a broader view of the vendor landscape, see IoT Development Companies: 2026 Industrial vs Consumer IoT Vendor Guide.

How we use Azure IoT Hub at Internative

We use Azure IoT Hub to build enterprise IoT platforms that need secure device management, real-time telemetry and close integration with Azure analytics and cloud services. It gives us one managed entry point for devices, so the work goes into the application and the data, not into running message brokers.

If you are planning a connected product or moving an IoT pilot to production, our Internet of Things team can help you design the device, cloud and data layers together. If part of the data should be processed on the device itself, see Edge AI: what it is, how it works, and where it delivers real value.

Frequently asked questions

What is the difference between Azure IoT Hub and Event Hubs?

Event Hubs is a streaming service that ingests large volumes of events from any source. IoT Hub is built for devices: it gives each device its own identity and credentials, supports cloud-to-device messages, direct methods and device twins, and routes telemetry onward. If you need to manage and control devices, use IoT Hub; if you only need to ingest an event stream, Event Hubs is enough.

Does Azure IoT Hub support MQTT?

Yes. Devices can connect over MQTT, AMQP or HTTPS, including MQTT and AMQP over WebSockets for networks that only allow port 443. The Azure IoT device SDKs use these protocols, and devices can also speak MQTT directly within the topics IoT Hub supports.

Which IoT platform is best?

There is no single best platform. For companies on Azure, IoT Hub is the natural choice; for companies on AWS, AWS IoT Core is. A self-hosted MQTT broker gives the most control but means running it yourself. The deciding factors are where the rest of your system lives, how many devices you expect and how much device management you need.

What is an IoT system?

An IoT system connects physical devices, such as sensors, machines or vehicles, to software over a network. It usually has four layers: devices that measure or act, connectivity that carries the data, a cloud or edge platform such as Azure IoT Hub that manages devices and receives data, and applications that analyse the data and act on it.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.