How-To Guides
...
Integration Guides
Azure IoT Hub Guides
Set up an Azure IoT Hub
3min
Azure IoT Hub integration enables Litmus Edge to publish data directly to the Microsoft Azure cloud. You will need to set up the Azure IoT Hub before setting up the connector in Litmus Edge.
You must have an Azure account.
You can create the IoT Hub in the Microsoft Azure portal.
To create an IoT Hub:
- Log in with your Azure account.
- Click Create a resource. The Everything dialog box appears.
Enter IoT Hub in the Search bar.
Click IoT Hub, and then click Create.
- From the Basics tab, select an option from the Subscription drop-down list.
- Do one of the following:
- Select an option from the Resource Group drop-down list.
- Click Create new and create a new resource group.
- Select an option from the Region drop-down list.
- Enter a name for the IoT Hub in the IoT Hub Name field.
- Click the Size and scale tab.
- Select an option from the Pricing and scale tier drop-down list.
- Enter a value in the Number of S1 IoT Hub units field to determine the number of connected devices to host on Azure and send messages to and from Litmus Edge.
- Click the Review + Create tab to finalize creating the IoT Hub and begin adding devices.
After creating the IoT Hub, you will need to add an IoT device to the hub.
To add an IoT device to the hub:
From the Azure portal, open the Command-Line-Interface (CLI).
- In the Azure CLI, enter the following two commands. Make sure to replace with YourIotHubName and MyNodeDevice with the names of your respective IoT Hub and device. az extension add --name azure-iot az iot hub device-identity create --hub-name YourIoTHubName --device-id MyNodeDevice
- From the Azure portal, click your IoT Hub.
- Under Explorers, click IoT devices to verify that you successfully added the new device.