Setting up Azure IoT Hub on Azure portal

Below are the steps involved to set up an Azure IoT Hub on the Microsoft Azure portal.

  • You have created and logged in to your Microsoft Azure account.

  • You have selected the account subscription plan.

  • Port 8883 of the host azure-devices.net is accessible in the customer environment.

  1. On the Microsoft Azure website, search for IoT Hub and navigate to the IoT Hub homepage.


  2. Create an IoT Hub, choose your subscription plan and region, and select the appropriate network access for your scenario.
    Wait for the deployment to complete.
  3. Once complete, click on your newly created hub and navigate to Device Management > Devices.


  4. Add a New Device and keep the default selections.


  5. To auto-generate keys and enable the device, select Symmetric key as the Authentication type.
  6. Once created, click on your device name to open the Device Configuration view.


  7. Click the Copy icon to the right side of either your device’s Primary Connection String or Secondary Connection String.