Azure IoT Documentation

Welcome to Azure IoT

Azure Internet of Things (IoT) services enable you to connect, monitor, and manage billions of IoT assets. Build end‑to‑end IoT solutions using a fully managed, secure, and scalable cloud platform.

Key Capabilities

Getting Started

Follow the Quickstart guide to set up your first IoT Hub and send telemetry from a simulated device.

Sample Code

// Install the Azure IoT SDK
npm install azure-iot-device azure-iot-device-mqtt

// Simple telemetry sender
const { Client } = require('azure-iot-device');
const { Mqtt } = require('azure-iot-device-mqtt');

const connectionString = process.env.IOTHUB_DEVICE_CONNECTION_STRING;
const client = Client.fromConnectionString(connectionString, Mqtt);

client.open()
  .then(() => {
    const message = new Message(JSON.stringify({ temperature: 22.5 }));
    return client.sendEvent(message);
  })
  .then(() => console.log('Message sent'))
  .catch(err => console.error('Error:', err));