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/digital-twins/tutorial-facilities-analyze.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,24 +53,24 @@ You can use the [Event Hubs](../event-hubs/event-hubs-about.md) service to creat
53
53
54
54
1. In the Event Hubs namespace deployment, select the **Overview** pane, then select **Go to resource**.
55
55
56
-

56
+
[](./media/tutorial-facilities-analyze/open-event-hub-ns.png#lightbox)
57
57
58
58
1. In the Event Hubs namespace **Overview** pane, select the **Event Hub** button at the top.
1. Enter a **Name** for your event hub, and select **Create**.
62
62
63
63
After the event hub is deployed, it appears in the **Event Hubs** pane of the Event Hubs namespace with an **Active** status. Select this event hub to open its **Overview** pane.
64
64
65
65
1. Select the **Consumer group** button at the top, and enter a name such as **tsievents** for the consumer group. Select **Create**.
After the consumer group is created, it appears in the list at the bottom of the event hub's **Overview** pane.
70
70
71
71
1. Open the **Shared access policies** pane for your event hub, and select the **Add** button. Enter **ManageSend** as the policy name, make sure all the check boxes are selected, and select **Create**.
1. Open the ManageSend policy that you created, and copy the values for **Connection string--primary key** and **Connection string--secondary key** to a temporary file. You'll need these values to create an endpoint for the event hub in the next section.
76
76
@@ -123,7 +123,7 @@ You can use the [Event Hubs](../event-hubs/event-hubs-about.md) service to creat
123
123
124
124
It creates two endpoints for your event hub.
125
125
126
-

126
+
[](./media/tutorial-facilities-analyze/dotnet-create-endpoints.png#lightbox)
127
127
128
128
## Analyze with Time Series Insights
129
129
@@ -133,11 +133,11 @@ You can use the [Event Hubs](../event-hubs/event-hubs-about.md) service to creat
133
133
134
134
1. Enter a **Name** for your Time Series Insights instance, and then select your **Subscription**. Select the **Resource group** that you used for your Digital Twins instance, and your **Location**. Select **Next: Event Source** button or the **Event Source** tab.
135
135
136
-

136
+
[](./media/tutorial-facilities-analyze/create-tsi.png#lightbox)
137
137
138
138
1. In the **Event Source** tab, enter a **Name**, select **Event Hub** as the **Source type**, and make sure the other values are selected correctly. Select **ManageSend** for **Event Hub access policy name**, and then select the consumer group that you created in the previous section for **Event Hub consumer group**. Select **Review + create**.
139
139
140
-

140
+
[](./media/tutorial-facilities-analyze/tsi-event-source.png#lightbox)
141
141
142
142
1. In the **Review + Create** pane, review the information you entered, and select **Create**.
143
143
@@ -149,13 +149,13 @@ You can use the [Event Hubs](../event-hubs/event-hubs-about.md) service to creat
149
149
150
150
1. After a few simulated events are generated, go back to the Time Series Insights explorer, and select the refresh button at the top. You should see analytical charts being created for your simulated sensor data.
151
151
152
-

152
+
[](./media/tutorial-facilities-analyze/tsi-explorer.png#lightbox)
153
153
154
154
1. In the Time Series Insights explorer, you can then generate charts and heatmaps for different events and data from your rooms, sensors, and other resources. On the left side, use the **MEASURE** and **SPLIT BY** drop-down boxes to create your own visualizations.
155
155
156
156
For example, select **Events** for **MEASURE** and **DigitalTwins-SensorHardwareId** for **SPLIT BY**, to generate a heatmap for each of your sensors. The heatmap will be similar to the following image:
157
157
158
-

158
+
[](./media/tutorial-facilities-analyze/tsi-explorer-heatmap.png#lightbox)
Copy file name to clipboardExpand all lines: articles/digital-twins/tutorial-facilities-events.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,13 +54,13 @@ An [event grid topic](../event-grid/concepts.md#topics) provides an interface to
54
54
55
55
1. Enter a **Name** for your event grid topic, and choose the **Subscription**. Select the **Resource group** that you used or created for your Digital Twins instance, and the **Location**. Select **Create**.
56
56
57
-

57
+
[](./media/tutorial-facilities-events/create-event-grid-topic.png#lightbox)
58
58
59
59
1. Browse to the event grid topic from your resource group, select **Overview**, and copy the value for **Topic Endpoint** to a temporary file. You'll need this URL in the next section.
60
60
61
61
1. Select **Access keys**, and copy **YOUR_KEY_1** and **YOUR_KEY_2** to a temporary file. You'll need these values to create the endpoint in the next section.
@@ -97,7 +97,7 @@ An [event grid topic](../event-grid/concepts.md#topics) provides an interface to
97
97
98
98
This command creates the endpoint for Event Grid.
99
99
100
-

100
+
[](./media/tutorial-facilities-events/dotnet-create-endpoints.png#lightbox)
101
101
102
102
## Notify events with Logic Apps
103
103
@@ -109,7 +109,7 @@ You can use the [Azure Logic Apps](../logic-apps/logic-apps-overview.md) service
109
109
110
110
1. Enter a **Name** for your Logic App resource, and then select your **Subscription**, **Resource group**, and **Location**. Select **Create**.
111
111
112
-

112
+
[](./media/tutorial-facilities-events/create-logic-app.png#lightbox)
113
113
114
114
1. Open your Logic Apps resource when it's deployed, and then open the **Logic App Designer** pane.
115
115
@@ -123,7 +123,7 @@ You can use the [Azure Logic Apps](../logic-apps/logic-apps-overview.md) service
123
123
124
124
c. Select your Event Grid resource from the drop-down box for **Resource Name**.
@@ -179,15 +179,15 @@ You can use the [Azure Logic Apps](../logic-apps/logic-apps-overview.md) service
179
179
180
180
d. Under **Body** in the same window, enter text similar to this: **Poor air quality detected in a room, and temperature needs to be adjusted**. Feel free to elaborate by using elements from the **Dynamic content** list.
181
181
182
-

182
+
[](./media/tutorial-facilities-events/logic-app-send-email.png#lightbox)
183
183
184
184
1. Select the **Save** button at the top of the **Logic App Designer** pane.
185
185
186
186
1. Make sure to simulate sensor data by browsing to the **device-connectivity** folder of the Digital Twins sample in a command window, and running `dotnet run`.
187
187
188
188
In a few minutes, you should start getting email notifications from this Logic Apps resource.
Copy file name to clipboardExpand all lines: articles/digital-twins/tutorial-facilities-udf.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,7 @@ Also note the section named **roleassignments**. It assigns the Space Administra
180
180
181
181
1. From the output in the command window, copy the value of `ConnectionString`, under the `Devices` section, to your clipboard. You'll need this value to simulate the device connection in the next section.
> If you get an error message similar to "The I/O operation has been aborted because of either a thread exit or an application request" in the middle of the provisioning, try running the command again. This might happen if the HTTP client timed out from a network issue.
@@ -241,7 +241,7 @@ The user-defined function runs every time your instance receives device and sens
241
241
242
242
The output window shows how the user-defined function runs and intercepts events from the device simulation.
243
243
244
-

244
+
[](./media/tutorial-facilities-udf/udf-running.png#lightbox)
245
245
246
246
If the monitored condition is met, the user-defined function sets the value of the space with the relevant message, as we saw [earlier](#create-a-user-defined-function). The `GetAvailableAndFreshSpaces` function prints out the message on the console.
Copy file name to clipboardExpand all lines: includes/digital-twins-create-portal.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
author: dsk-2015
6
6
ms.service: digital-twins
7
7
ms.topic: include
8
-
ms.date: 08/16/2019
8
+
ms.date: 09/24/2019
9
9
ms.author: dkshir
10
10
ms.custom: include file
11
11
---
@@ -14,15 +14,15 @@
14
14
15
15
1. From the left pane, select **Create a resource**. Search for **digital twins**, and select **Digital Twins**. Select **Create** to start the deployment process.
16
16
17
-

17
+
[](./media/create-digital-twins-portal/create-digital-twins.png#lightbox)
18
18
19
19
1. In the **Digital Twins** pane, enter the following information:
20
20
***Resource Name**: Create a unique name for your Digital Twins instance.
21
21
***Subscription**: Choose the subscription that you want to use to create this Digital Twins instance.
22
22
***Resource group**: Select or create a [resource group](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-overview#resource-groups) for the Digital Twins instance.
23
23
***Location**: Select the closest location to your devices.
24
24
25
-

25
+
[](./media/create-digital-twins-portal/create-digital-twins-param.png#lightbox)
26
26
27
27
1. Review your Digital Twins information, and then select **Create**. Your Digital Twins instance might take a few minutes to be created. You can monitor the progress in the **Notifications** pane.
28
28
@@ -32,4 +32,4 @@
32
32
33
33
Modify the **Management API** URL to this format `https://yourDigitalTwinsName.yourLocation.azuresmartspaces.net/management/api/v1.0/`. Your application will use the modified URL as the base URL to access your instance. Copy this modified URL to a temporary file. You'll need this in the next section.
Copy file name to clipboardExpand all lines: includes/digital-twins-permissions-legacy.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,17 @@
12
12
13
13
1. In the [Azure portal](https://portal.azure.com), open **Azure Active Directory** from the left pane, and then open the **Properties** pane. Copy the **Directory ID** to a temporary file. You'll use this value to configure a sample application in the next section.
14
14
15
-

15
+
[](./media/digital-twins-permissions-legacy/aad-app-reg-tenant.png#lightbox)
16
16
17
17
1. In the [Azure portal](https://portal.azure.com), open **Azure Active Directory** from the left pane, and then open the **App registrations (Legacy)** pane. Select the **New application registration** button.
18
18
19
19
1. Give a friendly name for this app registration in the **Name** box. Choose **Application type** as **Native**, and **Redirect URI** as `https://microsoft.com`. Select **Create**.
1. Open the registered app, and copy the value of the **Application ID** field to a temporary file. This value identifies your Azure Active Directory app. You'll use the application ID to configure your sample application in the following sections.
24
24
25
-

25
+
[](./media/digital-twins-permissions-legacy/aad-app-reg-app-id.png#lightbox)
26
26
27
27
1. Open your app registration pane. Select **Settings** > **Required permissions**, and then:
28
28
@@ -38,6 +38,6 @@
38
38
39
39
f. In the **Required permissions** pane, select the **Grant permissions** button, and accept the acknowledgment that appears. If the permission is not granted for this API, contact your administrator.
0 commit comments