Azure IoT Device Provisioning Service: Empty Logs

221 Views Asked by At

I'm trying to provision a device with Azure IoT DPS via an X.509 certificate. This currently fails with a 401 status code so I would like to consult the DPS logs to determine what is going on.

I have followed the troubleshooting instructions and created diagnostic settings for my DPS, selecting "allLogs" and "Send to Log Analytics workspace".

Now, after trying to provision the device (and receive the 401 status code) once again, I try to query the logs:

enter image description here

but they are empty! However, when I check attestation attempts under "Metrics" my provisioning attempts do show up. Why are the logs empty?

1

There are 1 best solutions below

0
Sampath On

I was able to find X.509 certificate details with a (activitysubstatus) status code to consult the DPS logs were found under Azure Activity.

Adding to the @Naveen inputs.

enter image description here

enter image description here

  • Select the respective Time Zone of the DPS you created.

enter image description here

  • using Azure Activity category value in DPS.

enter image description here

  • using Azure Diagnostics category value in DPS.

enter image description here

  • using Azure Diagnostics in Log Analytics workspace.

enter image description here

  • In Azure Diagnostics I searched the log related to certificate.

enter image description here

  • In Azure Activity I searched the log related to certificate of DPS and able to find.

enter image description here