Access to azlab###wvm using remote desktop app and use id and password
ID PW azureadmin ********
-
Open Visual Studio Code and create new file
-
Copy the sample code from IoT Device Sample (Python) and pate it to VS Code
-
Update connection string in line 20
-
Install IoT Device python library
pip install azure-iothub-device-client
- Run the code
python SimulatedDevice.py
-
Go back to Azure portal
-
Run following commands from Cloud Shell
az extension add --name azure-cli-iot-ext
az iot hub monitor-events --hub-name YourIoTHubName --device-id MyPythonDevice
Please DO NOT stop the simulated device python sample for next lab