Can I see the telemetry data on CLI with SelfSigned authentication type?

Haris Papageorge 246 Reputation points
2021-08-30T10:55:43.657+00:00

I have a device (subber) in the IoT Hub thermos.
I am sending data via my device which is authenticated with self signed certificates.

When i type this command in the CLI "az iot device simulate -d subber -n thermos" I get this response: MQTT simulation is only supported for symmetric key auth (SAS) based devices

Does this mean that I am not able to see the traffic of telemetry data in the CLI from my device?

thanks

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,143 questions
0 comments No comments
{count} votes

Accepted answer
  1. Matthijs van der Veer 4,376 Reputation points MVP
    2021-08-30T14:18:27.34+00:00

    Hi @Haris Papageorge , I understand you're trying to view the data your device is sending to IoT Hub. The az iot device simulate command isn't the one you're looking for in that case. To view the messages your device is sending, you can use the az iot hub monitor-events command. You can find the documentation here.

     az iot hub monitor-events -n thermos.azure-devices.net -d subber  
    
    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful