You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-dps/how-to-troubleshoot-dps.md
+2-42Lines changed: 2 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,52 +7,12 @@ author: kgremban
7
7
ms.author: kgremban
8
8
ms.service: iot-dps
9
9
ms.topic: troubleshooting
10
-
ms.date: 05/25/2022
10
+
ms.date: 06/28/2024
11
11
---
12
12
13
13
# Troubleshooting with Azure IoT Hub Device Provisioning Service
14
14
15
-
Provisioning issues for IoT devices can be difficult to troubleshoot because there are many possible points of failures such as attestation failures, registration failures, etc. This article provides guidance on how to detect and troubleshoot device provisioning issues via Azure Monitor. To learn more about using Azure Monitor with DPS, see [Monitor Device Provisioning Service](monitor-iot-dps.md).
16
-
17
-
## Using Azure Monitor to view metrics and set up alerts
18
-
19
-
To view and set up alerts on IoT Hub Device Provisioning Service metrics:
20
-
21
-
1. Sign in to the [Azure portal](https://portal.azure.com).
22
-
23
-
2. Browse to your IoT Hub Device Provisioning Service.
24
-
25
-
3. Select **Metrics**.
26
-
27
-
4. Select the desired metric. For supported metrics, see [Metrics](monitor-iot-dps-reference.md#metrics).
28
-
29
-
5. Select desired aggregation method to create a visual view of the metric.
30
-
31
-
6. To set up an alert of a metric, select **New alert rules** from the top right of the metric blade, similarly you can go to **Alert** blade and select **New alert rules**.
32
-
33
-
7. Select **Add condition**, then select the desired metric and threshold by following prompts.
34
-
35
-
To learn more about viewing metrics and setting up alerts on your DPS instance, see [Analyzing metrics](monitor-iot-dps.md#analyzing-metrics) and [Alerts](monitor-iot-dps.md#alerts) in Monitor Device Provisioning Service.
36
-
37
-
## Using Log Analytics to view and resolve errors
38
-
39
-
1. Sign in to the [Azure portal](https://portal.azure.com).
40
-
41
-
2. Browse to your Device Provisioning Service.
42
-
43
-
3. Select **Diagnostics settings**.
44
-
45
-
4. Select **Add diagnostic setting**.
46
-
47
-
5. Configure the desired logs to be collected. For supported categories, see [Resource logs](monitor-iot-dps-reference.md#resource-logs).
48
-
49
-
6. Tick the box **Send to Log Analytics** ([see pricing](https://azure.microsoft.com/pricing/details/log-analytics/)) and save.
50
-
51
-
7. Go to **Logs** tab in the Azure portal under Device Provisioning Service resource.
52
-
53
-
8. Write **AzureDiagnostics** as a query and click **Run** to view recent events.
54
-
55
-
9. If there are results, look for `OperationName`, `ResultType`, `ResultSignature`, and `ResultDescription` (error message) to get more detail on the error.
15
+
Provisioning issues for IoT devices can be difficult to troubleshoot because there are many possible points of failures such as attestation failures, registration failures, etc. To learn more about using Azure Monitor with DPS, see [Monitor Azure IoT Hub Device Provisioning Service](monitor-iot-dps.md).
Copy file name to clipboardExpand all lines: articles/iot-dps/monitor-iot-dps-reference.md
+41-45Lines changed: 41 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,57 +1,52 @@
1
1
---
2
-
title: Monitoring DPS data reference
3
-
titleSuffix: Azure IoT Hub Device Provisioning Service
4
-
description: Important reference material needed when you monitor Azure IoT Hub Device Provisioning Service using Azure Monitor
5
-
author: kgremban
6
-
2
+
title: Monitoring Device Provisioning Service data reference
3
+
description: This article contains important reference material you need when you monitor Azure IoT Hub Device Provisioning Service.
4
+
ms.date: 06/28/2024
5
+
ms.custom: horz-monitor, subject-monitoring
7
6
ms.topic: reference
7
+
author: kgremban
8
8
ms.author: kgremban
9
9
ms.service: iot-dps
10
-
ms.custom: subject-monitoring
11
-
ms.date: 04/15/2022
12
10
---
13
11
14
-
# Monitoring Azure IoT Hub Device Provisioning Service data reference
12
+
# Azure IoT Hub Device Provisioning Service monitoring data reference
15
13
16
-
See [Monitoring Iot Hub Device Provisioning Service](monitor-iot-dps.md) for details on collecting and analyzing monitoring data for Azure IoT Hub Device Provisioning Service (DPS).
See [Monitor Azure IoT Hub Device Provisioning Service](monitor-iot-dps.md) for details on the data you can collect for IoT Hub Device Provisioning Service and how to use it.
19
17
20
-
This section lists all the automatically collected platform metrics collected for DPS.
Resource Provider and Type: [Microsoft.Devices/provisioningServices](/azure/azure-monitor/platform/metrics-supported#microsoftdevicesprovisioningservices).
20
+
### Supported metrics for Microsoft.Devices/provisioningServices
23
21
24
-
|Metric|Exportable via Diagnostic Settings?|Metric Display Name|Unit|Aggregation Type|Description|Dimensions|
25
-
|---|---|---|---|---|---|---|
26
-
|AttestationAttempts|Yes|Attestation attempts|Count|Total|Number of device attestations attempted|ProvisioningServiceName, Status, Protocol|
27
-
|DeviceAssignments|Yes|Devices assigned|Count|Total|Number of devices assigned to an IoT hub|ProvisioningServiceName, IotHubName|
28
-
|RegistrationAttempts|Yes|Registration attempts|Count|Total|Number of device registrations attempted|ProvisioningServiceName, IotHubName, Status|
22
+
The following table lists the metrics available for the Microsoft.Devices/provisioningServices resource type.
29
23
30
-
For more information, see a list of [all platform metrics supported in Azure Monitor](/azure/azure-monitor/platform/metrics-supported).
| Protocol | The device or service protocol used. |
35
+
| ProvisioningServiceName | The name of the DPS instance. |
36
+
| Status | The status of the operation.|
42
37
43
38
For more information on what metric dimensions are, see [Multi-dimensional metrics](/azure/azure-monitor/platform/data-platform-metrics#multi-dimensional-metrics).
This section lists the types of resource logs you can collect for DPS.
42
+
### Supported resource logs for Microsoft.Devices/provisioningServices
48
43
49
-
Resource Provider and Type: [Microsoft.Devices/provisioningServices](../azure-monitor/essentials/resource-logs-categories.md#microsoftdevicesprovisioningservices).
| DeviceOperations|Logs related to device attestation events. See device APIs listed in [Billable service operations and pricing](about-iot-dps.md#billable-service-operations-and-pricing).|
54
-
| ServiceOperations|Logs related to DPS service events. See DPS service APIs listed in [Billable service operations and pricing](about-iot-dps.md#billable-service-operations-and-pricing).|
46
+
The following list provides additional information about the preceding logs:
47
+
48
+
- DeviceOperations: Logs related to device attestation events. See device APIs listed in [Billable service operations and pricing](about-iot-dps.md#billable-service-operations-and-pricing).
49
+
- ServiceOperations: Logs related to DPS service events. See DPS service APIs listed in [Billable service operations and pricing](about-iot-dps.md#billable-service-operations-and-pricing).
55
50
56
51
For reference, see a list of [all resource logs category types supported in Azure Monitor](/azure/azure-monitor/platform/resource-logs-schema).
57
52
@@ -67,11 +62,11 @@ DPS uses the [AzureDiagnostics](/azure/azure-monitor/reference/tables/azurediagn
67
62
| Level | Int | The logging severity of the event. For example, Information or Error. |
68
63
| OperationName | String | The type of action performed during the event. For example: Query, Get, Upsert, and so on. |
69
64
| OperationVersion | String | The API Version used during the event. |
70
-
| Resource | String | The name forOF the resource where the event took place. For example, "MYEXAMPLEDPS". |
65
+
| Resource | String | The name forOF the resource where the event took place. For example, `MYEXAMPLEDPS`. |
71
66
| ResourceGroup | String | The name of the resource group where the resource is located. |
72
67
| ResourceId | String | The Azure Resource Manager Resource ID for the resource where the event took place. |
73
-
| ResourceProvider | String | The resource provider for the event. For example, "MICROSOFT.DEVICES". |
74
-
| ResourceType | String | The resource type for the event. For example, "PROVISIONINGSERVICES". |
68
+
| ResourceProvider | String | The resource provider for the event. For example, `MICROSOFT.DEVICES`. |
69
+
| ResourceType | String | The resource type for the event. For example, `PROVISIONINGSERVICES`. |
75
70
| ResultDescription | String | Error details for the event if unsuccessful. |
76
71
| ResultSignature | String | HTTP status code for the event if unsuccessful. |
77
72
| ResultType | String | Outcome of the event: Success, Failure, ClientError, and so on. |
@@ -146,18 +141,19 @@ The following JSON is an example of a successful add (`Upsert`) individual enrol
146
141
}
147
142
```
148
143
149
-
## Azure Monitor Logs tables
150
-
151
-
This section refers to all of the Azure Monitor Logs Kusto tables relevant to DPS and available for query by Log Analytics. For a list of these tables and links to more information for the DPS resource type, see [Device Provisioning Services](/azure/azure-monitor/reference/tables/tables-resourcetype#device-provisioning-services) in the Azure Monitor Logs table reference.
For a reference of all Azure Monitor Logs / Log Analytics tables, see the [Azure Monitor Log Table Reference](/azure/azure-monitor/reference/tables/tables-resourcetype).
146
+
### IoT Hub Device Provisioning Service Microsoft.Devices/ProvisioningServices
- See [Monitoring Azure IoT Hub Device Provisioning Service](monitor-iot-dps.md) for a description of monitoring Azure IoT Hub Device Provisioning Service.
156
+
## Related content
162
157
163
-
- See [Monitoring Azure resources with Azure Monitor](../azure-monitor/essentials/monitor-azure-resource.md) for details on monitoring Azure resources.
158
+
- See [Monitor Azure IoT Hub Device Provisioning Service](monitor-iot-dps.md) for a description of monitoring IoT Hub Device Provisioning Service.
159
+
- See [Monitor Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for details on monitoring Azure resources.
0 commit comments