The Internet of Things (IoT) is a network of physical devices that connect to and exchange data with other devices and services over the Internet or other network.
Azure IoT Hub is a managed service hosted in the cloud that acts as a central message hub for communication between an IoT application and its attached devices. You can connect millions of devices and their backend solutions reliably and securely.
With these few steps, we will configure a new Azure IoT Hub in Azure Portal, and then authenticate a connection to an IoT device using the online Raspberry Pi device simulator.
Sign in to Azure portal
Search for and Select IOT HUB
On the Iot Hub page click + Create
Go to the Management tab, and use the dropdown to set the Pricing and scale tier to S1: Standard tier.
Click the Review + create button and Select Create to begin creating your new Azure IoT Hub instance.
Wait until the Azure IoT Hub instance is deployed.
If you do not see your new device, Refresh the IoT Devices page.
we will test our device using the Raspberry Pi Simulator.
Open a new tab in the web browser and type this shortcut link (https://aka.ms/RaspPi.) It will take you to a Raspberry Pi Simulator site. If you have time, read about the Raspberry Pi simulator. When done select “X” to close the pop-up window
Click Run (below the code area) to run the application. The console output should show the sensor data and messages that are sent from the Raspberry Pi simulator to your Azure IoT Hub. Data and messages are sent each time the Raspberry Pi simulator LED flashes.
Click Stop to stop sending data.
Return to the Azure portal.
Congratulations! You have set up Azure IoT Hub to collect sensor data from an IoT device.
Note: To avoid additional costs, you can optionally remove this resource group. Search for resource groups, click your resource group, and then click Delete resource group. Verify the name of the resource group and then click Delete.