...
To be able to send test messages to the Azure IoT Hub, a device has to be registered. See the following example of the Azure Portal where on the IoT device page, a device has been registered called "deltares-test-iot-device".
...
Microsoft Visual Studio Code has a IoT Hub extension that can be used to send Device to Cloud messages (D2C messages). See the following screenshot to see how to send a D2C message from the test client. For testing using The IoT Hub extension, an Azure Portal account is required.
Azure IoT Hub Tester
See: https://www.codeproject.com/Articles/1173356/Azure-IoT-Hub-Tester
...
Once connected, test message can be sent with the tool. Currently only PI XML can be used for testing.