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
Do a GET call on the Device API with an `includes=ConnectionString` parameter to get the IoT Hub device connection string. Filter by the device GUID or the hardware ID to find the given device.
|**yourManagementApiUrl**| The full URL path for your Management API |
48
-
|**yourDeviceGuid**| The device ID |
49
-
|**yourDeviceHardwareId**| The device hardware ID |
53
+
|*YOUR_DEVICE_HARDWARE_ID*| The device hardware ID |
50
54
51
55
In the response payload, copy the device's **connectionString** property. You use it when you call the Azure IoT device SDK to send data to Digital Twins.
Copy file name to clipboardExpand all lines: articles/digital-twins/concepts-objectmodel-spatialgraph.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ manager: bertvanhoof
6
6
ms.service: digital-twins
7
7
services: digital-twins
8
8
ms.topic: conceptual
9
-
ms.date: 10/26/2018
9
+
ms.date: 11/13/2018
10
10
ms.author: alinast
11
11
---
12
12
@@ -74,13 +74,13 @@ If you deploy a Digital Twins service in your subscription, you become the globa
74
74
After you deploy Digital Twins from the [Azure portal](https://portal.azure.com), the [Swagger](https://swagger.io/tools/swagger-ui/) URL of the Management APIs is automatically generated. It's displayed in the Azure portal in the **Overview** section with the following format.
Copy file name to clipboardExpand all lines: articles/digital-twins/how-to-diagnose-user-defined-functions.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ manager: deshner
6
6
ms.service: digital-twins
7
7
services: digital-twins
8
8
ms.topic: conceptual
9
-
ms.date: 10/22/2018
9
+
ms.date: 11/13/2018
10
10
ms.author: stefanmsft
11
11
---
12
12
@@ -37,12 +37,12 @@ After sending telemetry, open up Azure Log Analytics to query for logs using the
37
37
38
38
```Kusto
39
39
AzureDiagnostics
40
-
| where CorrelationId = 'yourCorrelationIdentifier'
40
+
| where CorrelationId = 'YOUR_CORRELATION_IDENTIFIER'
41
41
```
42
42
43
-
|Custom Attribute Name | Replace With|
43
+
|Query value | Replace with|
44
44
| --- | --- |
45
-
|*yourCorrelationIdentifier*| The Correlation ID that was specified on the event data |
45
+
|YOUR_CORRELATION_IDENTIFIER| The Correlation ID that was specified on the event data |
46
46
47
47
If you log your user-defined function, those logs will appear in your Azure Log Analytics instance with the category `UserDefinedFunction`. To retrieve them, enter the following query condition in Azure Log Analytics:
48
48
@@ -57,20 +57,21 @@ For more information about powerful query operations, see [getting started with
57
57
58
58
Both diagnosing and identifying common issues are important when troubleshooting your solution. Several Common issues encountered when developing user-defined functions are summarized below.
Without a role assignment created within Management API, the user-defined function will not have access to perform any actions such as sending notifications, retrieving metadata, and setting computed values within the topology.
63
65
64
66
Check if a role assignment exists for your user-defined function through your Management API:
65
67
66
68
```plaintext
67
-
GET https://yourManagementApiUrl/api/v1.0/roleassignments?path=/&traverse=Down&objectId=yourUserDefinedFunctionId
69
+
GET YOUR_MANAGEMENT_API_URL/roleassignments?path=/&traverse=Down&objectId=YOUR_USER_DEFINED_FUNCTION_ID
68
70
```
69
71
70
-
|Custom Attribute Name | Replace With|
72
+
|Parameter | Replace with|
71
73
| --- | --- |
72
-
|*yourManagementApiUrl*| The full URL path for your Management API |
73
-
|*yourUserDefinedFunctionId*| The ID of the user-defined function to retrieve role assignments for|
74
+
|*YOUR_USER_DEFINED_FUNCTION_ID*| The ID of the user-defined function to retrieve role assignments for|
74
75
75
76
If no role assignment is retrieved, follow this article on [How to create a role assignment for your user-defined function](./how-to-user-defined-functions.md).
76
77
@@ -79,14 +80,13 @@ If no role assignment is retrieved, follow this article on [How to create a role
79
80
With the following call against your Azure Digital Twins instances' Management API, you will be able to determine if a given matcher applies for the given sensor.
80
81
81
82
```plaintext
82
-
GET https://yourManagementApiUrl/api/v1.0/matchers/yourMatcherIdentifier/evaluate/yourSensorIdentifier?enableLogging=true
83
+
GET YOUR_MANAGEMENT_API_URL/matchers/YOUR_MATCHER_IDENTIFIER/evaluate/YOUR_SENSOR_IDENTIFIER?enableLogging=true
83
84
```
84
85
85
-
|Custom Attribute Name | Replace With|
86
+
|Parameter | Replace with|
86
87
| --- | --- |
87
-
|*yourManagementApiUrl*| The full URL path for your Management API |
88
-
|*yourMatcherIdentifier*| The ID of the matcher you wish to evaluate |
89
-
|*yourSensorIdentifier*| The ID of the sensor you wish to evaluate |
88
+
|*YOUR_MATCHER_IDENTIFIER*| The ID of the matcher you wish to evaluate |
89
+
|*YOUR_SENSOR_IDENTIFIER*| The ID of the sensor you wish to evaluate |
90
90
91
91
Response:
92
92
@@ -104,13 +104,12 @@ Response:
104
104
With the following call against your Azure Digital Twins instances' Management API, you will be able to determine the identifiers of your user-defined functions that will be triggered by the given sensor's incoming telemetry:
105
105
106
106
```plaintext
107
-
GET https://yourManagementApiUrl/api/v1.0/sensors/yourSensorIdentifier/matchers?includes=UserDefinedFunctions
107
+
GET YOUR_MANAGEMENT_API_URL/sensors/YOUR_SENSOR_IDENTIFIER/matchers?includes=UserDefinedFunctions
108
108
```
109
109
110
-
|Custom Attribute Name | Replace With|
110
+
|Parameter | Replace with|
111
111
| --- | --- |
112
-
|*yourManagementApiUrl*| The full URL path for your Management API |
113
-
|*yourSensorIdentifier*| The ID of the sensor that will be sending telemetry |
112
+
|*YOUR_SENSOR_IDENTIFIER*| The ID of the sensor that will be sending telemetry |
0 commit comments