Publish Data to the IoT Hub

  1. Create a data point and add an _address config:

    Topic: devices/device1/messages/events/data (data can be configured)

    Mode: Publish

  2. In Azure open <your IoT hub>/Built-in endpoints and copy the Event Hub compatible endpoint connection string.
  3. In VS-Code right-click your device and select Start Monitoring Built-in Event Endpoint from the Pop-up. Paste the connection string from Azure:
  4. If you now publish data in WinCC OA, you can also see it in VS-Code: