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-end-to-end.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure Digital Twins
5
5
description: Follow this tutorial to learn how to build out an end-to-end Azure Digital Twins solution that's driven by device data.
6
6
author: baanders
7
7
ms.author: baanders # Microsoft employees only
8
-
ms.date: 06/21/2022
8
+
ms.date: 09/26/2022
9
9
ms.topic: tutorial
10
10
ms.service: digital-twins
11
11
@@ -126,7 +126,7 @@ To publish the function app to Azure, you'll need to create a storage account, t
126
126
127
127
This command publishes the project to the *digital-twins-samples-main\AdtSampleApp\SampleFunctionsApp\bin\Release\netcoreapp3.1\publish* directory.
128
128
129
-
1. Create a zip of the published files that are located in the *digital-twins-samples-main\AdtSampleApp\SampleFunctionsApp\bin\Release\netcoreapp3.1\publish* directory. Name the zipped folder *publish.zip*.
129
+
1. Using your preferred method, create a zip of the published files that are located in the *digital-twins-samples-main\AdtSampleApp\SampleFunctionsApp\bin\Release\netcoreapp3.1\publish* directory. Name the zipped folder *publish.zip*.
130
130
131
131
>[!TIP]
132
132
>If you're using PowerShell, you can create the zip by copying the full path to that *\publish* directory and pasting it into the following command:
@@ -184,21 +184,12 @@ There are two settings that need to be set for the function app to access your A
184
184
185
185
The first setting gives the function app the **Azure Digital Twins Data Owner** role in the Azure Digital Twins instance. This role is required for any user or function that wants to perform many data plane activities on the instance. You can read more about security and role assignments in [Security for Azure Digital Twins solutions](concepts-security.md).
186
186
187
-
1. Use the following command to see the details of the system-managed identity for the function. Take note of the **principalId** field in the output.
187
+
1. Use the following command to create a system-managed identity for the function. The output will display details of the identity that's been created. Take note of the **principalId** field in the output to use in the next step.
188
188
189
189
```azurecli-interactive
190
-
az functionapp identity show --resource-group <your-resource-group> --name <your-function-app-name>
190
+
az functionapp identity assign --resource-group <your-resource-group> --name <your-function-app-name>
191
191
```
192
192
193
-
>[!NOTE]
194
-
> If the result is empty instead of showing details of an identity, create a new system-managed identity for the function using this command:
> The output will then display details of the identity, including the **principalId** value required for the next step.
201
-
202
193
1. Use the **principalId** value in the following command to assign the function app's identity to the **Azure Digital Twins Data Owner** role for your Azure Digital Twins instance.
Now, toseetheresultsofthedatasimulationthatyou've set up, navigate to *digital-twins-samples-main\DeviceSimulator\DeviceSimulator* in a local console window.
301
+
Now, toseetheresultsofthedatasimulationthatyou've set up, open a new local console window and navigate to *digital-twins-samples-main\DeviceSimulator\DeviceSimulator*.
311
302
312
303
>[!NOTE]
313
304
>Youshouldnowhavetwoopenconsolewindows:onethat's open to the the *DeviceSimulator\DeviceSimulator* folder, and one from earlier that'sstillopentothe*AdtSampleApp\SampleClientApp*folder.
Copy file name to clipboardExpand all lines: includes/digital-twins-tutorial-sample-prereqs.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,21 @@
1
1
---
2
2
author: baanders
3
-
description: include file for Azure Digital Twins tutorials - prerequisites for the sample project
3
+
description: prerequisites for Azure Digital Twins tutorials
4
4
ms.service: digital-twins
5
5
ms.topic: include
6
-
ms.date: 6/22/2022
6
+
ms.date: 9/26/2022
7
7
ms.author: baanders
8
8
---
9
9
10
10
## Prerequisites
11
11
12
-
Before beginning this tutorial, start by completing the prerequisites in this section.
12
+
Before beginning this tutorial, start with these prerequisites:
13
+
* If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
14
+
* This tutorial uses .NET Core 3.1. You can download this version of the .NET Core SDK for multiple platforms from [Download .NET Core 3.1](https://dotnet.microsoft.com/download/dotnet-core/3.1).
13
15
14
-
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
16
+
Then, continue through the rest of this section to set up the remaining prerequisites.
15
17
16
-
### Get required resources
18
+
### Get sample resources
17
19
18
20
The tutorial is driven by an [Azure Digital Twins end-to-end sample project written in C#](/samples/azure-samples/digital-twins-samples/digital-twins-samples). Get the sample project on your machine by navigating to the sample link, and selecting the **Browse code** button underneath the title.
0 commit comments