Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 2.06 KB

3_Azure_IoT_Hub.md

File metadata and controls

35 lines (27 loc) · 2.06 KB

Azure IoT Hub

Create Azure IoT Hub

  1. Login to the Azure poral

    https://portal.azure.com

  2. Select + NewInternet of ThingsIoT Hub
    Create AZ IoT Hub

  3. Enter a unique Name for your hub such as IoTHub{firstname}{lastname}

    Note: Use alphanumeric characters or '-' only

  4. Click Pricing and scale tier and then select F1 Free tier

  5. 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}

  6. Click Location and select West Central US

  7. At the bottom of the pane, ensure the Pin to dashboard checked and then click the Create button

Register Device to Azure IoT Hub

  1. Once IoT Hub is deployed, copy the connection string from Shared access policiesiothubownerConnection string-primary key.
    Grant access to IoT Hub
  2. Open Device Explorer (installed during the Software Installation step)
  3. Paste the connection string into the IoT Hub Connection String field in Configuration tab, and click Update.
    Setting Device Explorer
  4. To create a new device, select the Management tab and then the Create button under actions
  5. Input a device identifier, such as MyNode1 in the prompt and then select the Create button in the dialog and then Done when prompted.
    Create New Device
  6. 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