Azure IoT Hub
Azure IoT Hub needs a card for its Free edition of 8,000 half-kilobyte message units a day and 500 devices, which is for testing, not production, and cannot be upgraded in place.
Azure IoT Hub is a managed hub in the cloud that connects IoT devices to your app. Devices send telemetry in, and your app sends messages, commands, and settings back out.
Is it a fit?
Good fit
Use the free tier to prototype a small device fleet and test device-to-cloud messaging before you commit to a paid hub.
- IoT prototypes
- learning Azure IoT
- small test fleets
Not a fit
Avoid it for production fleets or anything you plan to grow in place, because a free hub cannot be upgraded to a paid tier.
- production device fleets
- hubs you want to upgrade later
- no Azure subscription
You work with IoT Hub in the Azure portal, with the Azure CLI and its azure-iot extension, or with device SDKs. It suits developers who want to test device connectivity on Azure before they pay for a production hub. Azure sign-up asks for a phone number and a credit or debit card (not prepaid) to verify your identity. It may place a temporary one-dollar hold, and it does not charge you unless you move to pay-as-you-go.
What the free plan gives you
The Free edition is meant for proof of concept projects. It allows up to 8,000 messages per day and up to 500 device identities. Azure meters a free hub in 0.5 KB blocks, so a 16 KB message uses 32 units. Paid tiers meter in 4 KB blocks.
Each Azure subscription can have one hub in the free tier. The free tier has the capabilities of the Standard tier, but with small allowances. A free hub can have 5 message routing queries, 2 message enrichments, and one extra endpoint. Message routing and Event Grid integration are available on it.
When you hit a limit
The pricing FAQ says every tier has a daily message limit after which you will experience throttling. It does not say whether messages past the 8,000 per day are delayed or rejected. The daily quota is a fixed number for the hub, and you can see it in the Azure portal.
Separate throttles limit the rate of calls. If you hit one, IoT Hub answers with error code 429, and your client should back off and retry. IoT Hub accepts short bursts above a throttle, then queues requests, and finally rejects them. You cannot upgrade a free hub to Basic or Standard. You create a new paid hub instead.
Gotchas
- Device-twin reads, writes and queries also consume message units. File uploads require separately billed storage, and their start/completion notifications count against the hub quota. Deleting a hub deletes its device identity registry, so keep a record of your devices before you remove it.
- The MQTT v5 connection-profile preview requires Standard S1 and uses throughput units; the classic Free allowance does not apply.
- Only one free hub is allowed per subscription, so a second free hub needs another subscription. The name of a free hub can be visible to other free-tier users, and hub names are public DNS names. Do not put private data in the name.
Alternatives in this atlas
- EMQX Serverless: when your devices speak MQTT and you want a free broker without an Azure subscription.
- Event Grid: when you want an Azure event and MQTT service for routing events between services.
- Azure Web PubSub: when you push live updates to browsers rather than connect devices.
Questions people ask
Is Azure IoT Hub free?
There is a Free edition. It allows 8,000 messages per day and 500 device identities, with one free hub per Azure subscription. It is meant for testing and evaluation.
Can I upgrade a free IoT hub?
No. The docs say a free hub cannot be upgraded to Basic or Standard. You create a new hub in a paid tier.
What happens when I send too many messages to IoT Hub?
The pricing FAQ says you will experience throttling after the daily message limit. For call rates, IoT Hub throttles and answers with error code 429, and your client should back off and retry.
How to get started
- Sign in to the Azure portal with an Azure subscription, or open Azure Cloud Shell.
- Run `az extension add --name azure-iot` to add the IoT commands to the Azure CLI.
- Create a resource group and an IoT hub. In the portal, choose Create a resource, then Internet of Things, then IoT Hub, and pick the Free tier.
- Register a device identity and start a simulated device with `az iot device simulate`.
- Use a second CLI session to watch telemetry with `az iot hub monitor-events`, then stop monitoring before sending a message with `az iot device c2d-message send`; keep the simulated device running in the first session.
Other free messaging options
Same category, safest first.