Get connection string of the IoT Hub: az iot hub connection-string show –hub-name ${nameOfIoTHub}
Run a simulated device:
Create a device
run https://github.com/Azure/azure-iot-sdk-node/tree/master/device/samples/pnp
Listen the message sent from the simulated device: az iot hub monitor-events –output table –device-id ${nameOfDevice) –hub-name ${nameOfIoTHub}
Create logic layer to process events from IoT Hub: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-iot-trigger?tabs=csharp