Microsoft Azure Documentation

Create an Azure IoT Hub Instance

This guide will walk you through the steps to create a new Azure IoT Hub instance using the Azure portal. Azure IoT Hub is a fully managed service that enables reliable bidirectional communications, device management, and scaled IoT solution development.

Tip: Before you begin, ensure you have an active Azure subscription. If you don't, you can create a free account.

Prerequisites

Steps to Create an IoT Hub Instance

1

Sign in to the Azure Portal

Open your web browser and navigate to the Azure portal. Sign in with your Azure account credentials.

2

Navigate to IoT Hub

In the Azure portal search bar at the top, type "IoT Hub" and select "IoT Hub" from the services list. Alternatively, you can find it under "Internet of Things" in the Azure services menu.

Azure Portal Search for IoT Hub
3

Create IoT Hub

On the IoT Hub page, click the + Create button to start the creation process.

Create IoT Hub Button
4

Configure Basics

Fill in the following details on the Basics tab:

  • Subscription: Select the Azure subscription you want to use.
  • Resource group: Choose an existing resource group or create a new one. A resource group is a container that holds related resources for an Azure solution.
  • Region: Select the geographical region where your IoT Hub will be hosted. Choose a region close to your devices or users for lower latency.
  • Instance name: Enter a unique name for your IoT Hub. This name must be globally unique across all Azure IoT Hubs. It will also be part of the IoT Hub hostname (e.g., your-iot-hub-name.azure-devices.net).
  • Pricing tier: Select a pricing tier based on your needs (e.g., Free, Standard, Premium). For testing and development, the Free or Standard tier is often sufficient.
IoT Hub Basics Configuration
5

Configure Options (Optional)

Navigate to the Options tab. Here you can configure:

  • Number of units: This depends on your selected pricing tier and affects the throughput capacity.
  • Device-to-cloud and Cloud-to-device message quotas.
  • Custom endpoints and message routing (more advanced configurations).

For a basic setup, you can usually leave these settings at their defaults.

6

Configure Networking (Optional)

On the Networking tab, you can configure network access for your IoT Hub, such as enabling public access or configuring private endpoints. For most initial setups, the default public access is acceptable.

7

Review and Create

Go to the Review + create tab. Azure will validate your configuration. Once validation passes, review the summary of your settings.

IoT Hub Review and Create

Click the Create button to provision your IoT Hub instance.

8

Deployment and Access

The deployment process may take a few minutes. You will see a notification when the deployment is complete. Once deployed, you can navigate to your IoT Hub resource from the Azure portal.

On the IoT Hub's Overview page, you will find key information such as the hostname and the shared access policies, which you'll need for connecting your devices.

IoT Hub Overview Page
Note: For production environments, consider using more advanced networking options and carefully select the appropriate pricing tier and unit count to meet your expected device and message volume.

Next Steps

After successfully creating your IoT Hub, you can proceed to:

Register Your First Device