Azure IoT Hub – Overview
Azure IoT Hub is a fully managed service that enables reliable and secure bi‑directional communication between millions of IoT devices and a cloud‑based backend. It provides device provisioning, device management, and advanced messaging capabilities that are essential for building scalable IoT solutions.
Key Benefits
- Secure device-to-cloud and cloud-to-device communication using per-device authentication.
- Supports MQTT, HTTPS, AMQP, and AMQP over WebSockets.
- Device provisioning at scale with Azure Device Provisioning Service (DPS).
- Integrated with Azure Stream Analytics, Azure Functions, and Azure Time Series Insights.
Architecture Diagram

Sample Code (C#)
using Microsoft.Azure.Devices;
using System;
using System.Text;
using System.Threading.Tasks;
class Program
{
private const string iotHubConnectionString = "";
private const string deviceId = "myDevice";
static async Task Main(string[] args)
{
var serviceClient = ServiceClient.CreateFromConnectionString(iotHubConnectionString);
var commandMessage = new Message(Encoding.ASCII.GetBytes("Hello from cloud!"));
await serviceClient.SendAsync(deviceId, commandMessage);
Console.WriteLine("Message sent");
}
}
Next Steps
Start building your solution by following the Getting Started guide, explore the feature set, or learn about security best practices.