Azure IoT hub allows you to get on with developing cool IoT stuff, and not worry about how it all gets connected up and managed.

What Is Azure IoT Hub

Internet of Things (IoT) offers businesses immediate and real-world opportunities to reduce costs, to increase revenue, as well as transforming their businesses. Azure IoT hub is a managed IoT service which is hosted in the cloud. It allows bi-directional communication between IoT applications and the devices it manages. This cloud-to-device connectivity means that you can receive data from your devices, but you can also send commands and policies back to the devices. How Azure IoT hub differs from the existing solutions is that it also provides the infrastructure to authenticate, connect and manage the devices connected to it.

What Is Azure IoT Hub

Azure IoT Hub allows full-featured and scalable IoT solutions. Virtually, any device can be connected to Azure IoT Hub and it can scale up to millions of devices. Events can be tracked and monitored, such as the creation, failure, and connection of devices.

Azure IoT Hub provides,

Managing devices with IoT Hub

The needs and requirements of IoT operators vary substantially in different industries, from transport to manufacturing to agriculture to utilities. There is also a wide variation in the types of devices used by IoT operators. IoT Hub is able to provide the capabilities, patterns and code libraries to allow developers to build management solutions that can manage very diverse sets of devices.

Configuring and controlling devices

Devices which are connected to IoT Hub can be managed using an array of built-in functionality. This means that-

The lifecycle of devices with IoT Hub

What Is Azure IoT Hub

Device management patterns

IoT Hub supports a range of device management patterns including,

These patterns can be extended to fit your exact situation. Alternatively, new patterns can be designed based on these templates.

Connecting your devices

You can build applications which run on your devices and interact with IoT Hub using the Azure IoT device SDK. Windows, Linux distributions, and real-time operating systems are supported platforms. Supported languages currently include,

Messaging Patterns

Azure IoT Hub supports a range of messaging patterns including,

Message routing and event grid

Both IoT Hub message routing and IoT Hub integration with Event Grid makes it possible to stream data from your connected devices. However, there are differences. Message routing allows users to route device-to-cloud messages to a range of supported service endpoints such as Event Hubs and Azure Storage containers while IoT Hub integration with Event Grid is a fully managed routing service which can be extended into third-party business applications.

Device data can be routed

In Azure IoT Hub, the message routing functionality is built in. This allows you to set up automatic rules-based message fan-out. You can use message routing to decide where your hub sends your devices’ telemetry. Routing messages to multiple endpoints don’t incur any extra costs.

Building end-to-end solutions

End-to-end solutions can be built by integrating IoT Hub with other Azure services. For example,

Azure IoT Hub or Azure Event Hub?

Both Azure IoT Hub and Azure Event Hub are cloud services which can ingest, process and store large amounts of data. However, they were designed with different purposes in mind. Event Hub was developed for big data streaming while IoT Hub was designed specifically to connect IoT devices at scale to the Azure Cloud. Therefore, which one you choose to use will depend on the demands of your business.

Security

Businesses face security, privacy, and compliance challenges which are unique to the IoT. Security for IoT solutions means that devices need to be securely provisioned and there needs to be secure connectivity between the devices and the cloud, as well as secure data protection in the cloud during processing and storage.

What Is Azure IoT Hub

IoT Hub allows data to be sent on secure communications channels. Each device connects securely to the hub and each device can be managed securely. You can control access at the per-device level and devices are automatically provisioned to the correct hub when the device first boots up.

There’s also a range of different types of authentication depending on device capabilities, including SAS SAS token-based authentication, individual X.509 certificate authentication for secure, standards-based authentication, as well as X.509 CA authentication.

High Availability and Disaster Recovery

Uptime goals vary from business to business. Azure IoT Hub offers three main High Availability (HA) and Disaster Recovery (DR) features including:

Both of these options offer the following recovery time objectives (RTO),

What Is Azure IoT Hub

Achieving cross region HA

If the RTOs provided by either the Microsoft initiated failover or manual failover aren’t sufficient for your uptime goals, then another option is to implement a per-device automatic cross region failover mechanism. In this model, the IoT solution runs in a primary and secondary datacentre in two different locations. If there’s an outage or a loss of network connectivity in the primary region, the devices can use the secondary location.

Choosing the right IoT Hub tier

Azure IoT hub offers two tiers, basic and standard. The basic tier which is uni-directional from devices to the cloud is more suitable if the data is going to be gathered from devices and analyzed centrally. However, if you want bi-directional communication, enabling you to, for example, control devices remotely, then the standard tier is more appropriate. Both tiers have the same security and authentication features.

What Is Azure IoT Hub

Each tier has three different sizes (1, 2 and 3), depending on how much data they can handle in a day. For instance, a level 3 unit can handle 300 million messages a day while a level 1 unit can handle 400,000.

If you want to learn more about the information in this article., here are some great links for you to start with!

Official documentation for Azure IoT Hub
Microsoft labs for Azure IoT Hub
Video - Azure IoT Hub