Set up Raspberry Pi Azure IoT Online Simulator

 There is a browser-based simulator for us to try: Raspberry Pi Azure IoT Online Simulator. We can access to it through the following URL:

 This Raspberry Pi Azure IoT Online Simulator is pretty much like the real Raspberry Pi so we can use it for testing purposes.


Azure IoT Hub Setup

 Go to your Azure IoT Hub and add a new device. We assume you previously created an Azure IoT Hub: 

Now provide a name for the device, in this case "TechNet-WikiDevice" and checkbox the Auto-generate keys options as shown below, then click "Save":


Once provisioned, go to the device details and copy the connection string: 


Connect the Raspberry Pi Simulator to IoT Hub 

Go back to the Raspberry Pi simulator and paste the connection string. We can also modify the Device name as shown below:


Now click on Run in the console below the code editor: 


We will see that the device is now connected to the Azure IoT Hub:



Other Languages

  es-MX: Azure IoT: conecte el simulador Raspberry Pi a IoT Hub (es-MX)