-
Login to the Azure poral
-
Enter a unique Name for your hub such as
IoTHub{firstname}{lastname}
Note: Use alphanumeric characters or '-' only
-
Click Pricing and scale tier and then select F1 Free tier
-
Create a new Resource Group if you don't have one already, or select an existing group in the drop down
For example,
IoT_{firstname}_{lastname}
-
Click Location and select West Central US
-
At the bottom of the pane, ensure the Pin to dashboard checked and then click the Create button
- Once IoT Hub is deployed, copy the connection string from Shared access policies →
iothubowner
→ Connection string-primary key.
- Open Device Explorer (installed during the Software Installation step)
- Paste the connection string into the IoT Hub Connection String field in Configuration tab, and click Update.
- To create a new device, select the Management tab and then the Create button under actions
- Input a device identifier, such as
MyNode1
in the prompt and then select the Create button in the dialog and then Done when prompted.
- Right click on the newly created device row and select Copy Connection String for Selected Device
Keep a copy of the connection string on your clipboard as it will be needed for the next step of the lab.
Now that we've created our Azure IoT Hub instance, let's wire up our NodeMCU and test out the communication!
Next Step: NodeMCU Build and Deploy