0

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?

Peter
  • 2,919
  • 1
  • 16
  • 35
  • Did you create the X.509 certificate locally or in Azure using Azure Activity I am able to trace the [logs](https://i.imgur.com/d8OMwO6.png). I am unable to create X.509 through local  PowerShell and [verify it](https://i.imgur.com/iR6KgKx.png) – Naveen Sharma Mar 06 '23 at 04:45
  • Are you getting the 401 error while fetching the logs too.  -> AzureActivity are for Audit and compliance , Resource ,management , Cost analysis. Using [Azure Activity](https://i.imgur.com/Fm1VSFe.png) I was able to get the of certificates details and logs . -> AzureDiagnostics are for Configuration changes,Service updates and Billing changes . using [Azure Diagnotics](https://i.imgur.com/jn4QU3Q.png) I was able to the Configuration Details only I searched [cer](https://i.imgur.com/GMxiyLY.png) . – Naveen Sharma Mar 06 '23 at 14:30

1 Answers1

0

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

Sampath
  • 810
  • 2
  • 2
  • 13