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.
- On the Microsoft Azure website, search for IoT
Hub and navigate to the IoT Hub homepage.
- 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.
- Once complete, click on your newly created hub and navigate
to .
- Add a New Device and keep the default
selections.
- To auto-generate keys and enable the device, select Symmetric key as the Authentication type.
- Once created, click on your device name to open the Device Configuration view.
- Click the Copy icon to the right
side of either your device’s Primary Connection String or Secondary Connection String.