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/how-to-authenticate-client.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ ms.service: azure-digital-twins
17
17
18
18
# Write client app authentication code
19
19
20
-
After you [set up an Azure Digital Twins instance and authentication](how-to-set-up-instance-portal.md), create a client application to interact with the instance. After you set up a starter client project,**write code in that client app to authenticate it** against the Azure Digital Twins instance.
20
+
After you [set up an Azure Digital Twins instance and authentication](how-to-set-up-instance-portal.md), you can create a client application to interact with the instance. This article explains how to**write code in that client app to authenticate it** against the Azure Digital Twins instance.
21
21
22
22
Azure Digital Twins authenticates using [Microsoft Entra Security Tokens based on OAUTH 2.0](../active-directory/develop/security-tokens.md#json-web-tokens-and-claims). To authenticate your SDK, get a bearer token with the right permissions to Azure Digital Twins, and pass it along with your API calls.
23
23
@@ -35,14 +35,14 @@ To continue, you need a client app project in which you write your code. If you
Three common credential-obtaining methods in `Azure.Identity` are:
42
42
43
-
*[DefaultAzureCredential](/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet&preserve-view=true) provides a default `TokenCredential` authentication flow for applications that are deployed to Azure. This method is **the recommended choice for local development**. It also tries the other two methods recommended in this article; it wraps `ManagedIdentityCredential` and can access `InteractiveBrowserCredential` with a configuration variable.
43
+
*[DefaultAzureCredential](/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet&preserve-view=true) provides a default `TokenCredential` authentication flow for applications that are deployed to Azure. This method is **the recommended choice for local development**. It's also capable of trying the other two methods recommended in this article; it wraps `ManagedIdentityCredential` and can access `InteractiveBrowserCredential` with a configuration variable.
44
44
*[ManagedIdentityCredential](/dotnet/api/azure.identity.managedidentitycredential?view=azure-dotnet&preserve-view=true) works well in cases where you need [managed identities (MSI)](../active-directory/managed-identities-azure-resources/overview.md). This method is a good candidate for working with Azure Functions and deploying to Azure services.
45
-
*[InteractiveBrowserCredential](/dotnet/api/azure.identity.interactivebrowsercredential?view=azure-dotnet&preserve-view=true) is intended for interactive applications. Use this method to create an authenticated SDK client.
45
+
*[InteractiveBrowserCredential](/dotnet/api/azure.identity.interactivebrowsercredential?view=azure-dotnet&preserve-view=true) is intended for interactive applications. This is one method of creating an authenticated SDK client.
46
46
47
47
The rest of this article shows how to use these methods with the [.NET (C#) SDK](/dotnet/api/overview/azure/digitaltwins.core-readme).
48
48
@@ -78,7 +78,7 @@ Here's a code sample to add a `DefaultAzureCredential` to your project:
78
78
79
79
The [ManagedIdentityCredential](/dotnet/api/azure.identity.managedidentitycredential?view=azure-dotnet&preserve-view=true) method works well in cases where you need [managed identities (MSI)](../active-directory/managed-identities-azure-resources/overview.md)—for example, when [authenticating with Azure Functions](#authenticate-azure-functions).
80
80
81
-
This method means that you can use `ManagedIdentityCredential` in the same project as `DefaultAzureCredential` or `InteractiveBrowserCredential` to authenticate a different part of the project.
81
+
You can use `ManagedIdentityCredential` in the same project as `DefaultAzureCredential` or `InteractiveBrowserCredential` to authenticate a different part of the project.
82
82
83
83
To use the default Azure credentials, you need the Azure Digital Twins instance's URL ([instructions to find](how-to-set-up-instance-portal.md#verify-success-and-collect-important-values)). You might also need an [app registration](./how-to-create-app-registration.md) and the registration's [Application (client) ID](./how-to-create-app-registration.md#collect-client-id-and-tenant-id).
84
84
@@ -126,7 +126,7 @@ When writing the Azure function, consider adding these variables and code to you
When you create the credential without parameters, as shown in the previous example, it returns the credential for the function app's system-assigned identity, if it has one. To specify a user-assigned identity instead, pass the user-assigned identity's **client ID** into the `id` parameter for the constructor.
129
+
When you create the credential without parameters, as shown in the previous example, it returns the credential for the function app's system-assigned identity, if it has one. To specify a user-assigned identity instead, pass the user-assigned identity's **client ID** into the `id` parameter for the constructor.
130
130
131
131
Later, after publishing the function, ensure that the function's identity has permission to access the Azure Digital Twins APIs. For instructions on how to do so, see [Assign an access role](#assign-an-access-role).
Copy file name to clipboardExpand all lines: articles/digital-twins/how-to-create-endpoints.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Routing [event notifications](concepts-event-notifications.md) from Azure Digita
31
31
32
32
:::image type="content" source="media/includes/instance-details.png" alt-text="Screenshot of the Overview page for an Azure Digital Twins instance in the Azure portal. The name and resource group are highlighted." lightbox="media/includes/instance-details.png":::
33
33
34
-
Next, follow the instructions in the following section if you intend to use the Azure CLI while following this guide.
34
+
If you intend to use the Azure CLI while following this guide, follow the instructions in the next section.
@@ -116,7 +116,7 @@ The rest of this section walks through three steps for setting up an endpoint wi
116
116
117
117
### 1. Enable managed identity for the instance
118
118
119
-
Use the tabs for instructions that match your preferred experience.
119
+
Use the following tabs for instructions that match your preferred experience.
120
120
121
121
# [Portal](#tab/portal)
122
122
@@ -147,7 +147,7 @@ Here are the minimum roles that your Azure Digital Twins identity needs to acces
147
147
| Azure Service Bus | Azure Service Bus Data Sender |
148
148
| Azure storage container | Storage Blob Data Contributor |
149
149
150
-
Use the tabs to assign the role using your preferred experience.
150
+
Use the following tabs to assign the role using your preferred experience.
151
151
152
152
# [Portal](#tab/portal)
153
153
@@ -245,7 +245,7 @@ To learn more about dead-lettering, see [Endpoints and event routes](concepts-ro
245
245
246
246
Before setting the dead-letter location, you must have a [storage account](../storage/common/storage-account-create.md?tabs=azure-portal) with a [container](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container) in your Azure account.
247
247
248
-
Provide the URI for this container when creating the endpoint. The dead-letter location is provided to the endpoint as a container URI with a [SAS token](../storage/common/storage-sas-overview.md). That token needs `write` permission for the destination container within the storage account. The fully formed dead letter SAS URI is in the format of: `https://<storage-account-name>.blob.core.windows.net/<container-name>?<SAS-token>`.
248
+
When creating the endpoint, you provide the URI of this container. The dead-letter location is provided to the endpoint as a container URI with a [SAS token](../storage/common/storage-sas-overview.md). That token needs `write` permission for the destination container within the storage account. The fully formed dead letter SAS URI is in the format of: `https://<storage-account-name>.blob.core.windows.net/<container-name>?<SAS-token>`.
249
249
250
250
To set up these storage resources in your Azure account, follow the steps in the following section. After setting up the storage resources, you can set up the endpoint connection.
251
251
@@ -288,9 +288,9 @@ Next, create a SAS token for your storage account that the endpoint can use to a
288
288
The output of this command is the SAS token. Copy the SAS token value to use later.
289
289
290
290
> [!NOTE]
291
-
> This command includes "**b**lob", "**f**ile", "**q**ueue", and "**t**able" *services*; an "**o**bject" *resource type*; and allows "**w**rite" *permissions*.
292
-
>
293
-
> For more information about the `az storage account generate-sas` command and its parameters, see the [Azure CLI reference](/cli/azure/storage/account#az-storage-account-generate-sas).
291
+
> This command includes "**b**lob", "**f**ile", "**q**ueue", and "**t**able" *services*; an "**o**bject" *resource type*; and allows "**w**rite" *permissions*.
292
+
>
293
+
> For more information about the `az storage account generate-sas` command and its parameters, see the [Azure CLI reference](/cli/azure/storage/account#az-storage-account-generate-sas).
Copy file name to clipboardExpand all lines: articles/iot-operations/get-started-end-to-end-sample/quickstart-get-insights.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Quickstart: Get insights from your processed data"
3
-
description: "Quickstart: Use a Real-Time Dashboard to capture insights from the OPC UA data you sent to Event Hubs."
3
+
description: "Quickstart: Use a real-time dashboard to capture insights from the OPC UA data you sent to Event Hubs."
4
4
author: baanders
5
5
ms.author: baanders
6
6
ms.topic: quickstart
@@ -13,21 +13,21 @@ ms.date: 01/28/2025
13
13
14
14
# Quickstart: Get insights from your processed data
15
15
16
-
In this quickstart, you populate a [Real-Time Dashboard](/fabric/real-time-intelligence/dashboard-real-time-create) to capture insights from the OPC UA data that you sent to Event Hubs in the previous quickstart. Using Microsoft Fabric Real-Time Intelligence, you bring your data from Event Hubs into Microsoft Fabric, and map it into a KQL database that can be a source for Real-Time Dashboards. Then, you build a dashboard to display that data in visual tiles that capture insights and show the values over time.
16
+
In this quickstart, you populate a [real-time dashboard](/fabric/real-time-intelligence/dashboard-real-time-create) to capture insights from the OPC UA data that you sent to Event Hubs in the previous quickstart. Using Microsoft Fabric Real-Time Intelligence, you bring your data from Event Hubs into Microsoft Fabric, and map it into a KQL database that can be a source for real-time dashboards. Then, you build a dashboard to display that data in visual tiles that capture insights and show the values over time.
17
17
18
18
These operations are the last steps in the sample end-to-end quickstart experience, which goes from deploying Azure IoT Operations at the edge through getting insights from that device data in the cloud.
19
19
20
20
## Prerequisites
21
21
22
22
Before you begin this quickstart, complete the previous Azure IoT Operations quickstarts.
23
23
24
-
You also need to meet the following Fabric requirements:
24
+
You also need to have the following Fabric resources:
25
25
* A Microsoft Fabric subscription. In your subscription, you need access to a workspace with **Contributor** or above permissions.
26
-
* A Fabric tenant that allows the creation of Real-Time Dashboards. Your tenant administrator can enable this setting. For more information, see [Enable tenant settings in the admin portal](/fabric/real-time-intelligence/dashboard-real-time-create#enable-tenant-settings-in-the-admin-portal).
26
+
* A Fabric tenant that allows the creation of real-time dashboards. Your tenant administrator can enable this setting. For more information, see [Enable tenant settings in the admin portal](/fabric/real-time-intelligence/dashboard-real-time-create#enable-tenant-settings-in-the-admin-portal).
27
27
28
28
## What problem will we solve?
29
29
30
-
When your OPC UA data arrives in the cloud, there's a lot of information available to analyze. You might want to organize that data and create reports containing graphs and visualizations to derive insights from the data. The steps in this quickstart illustrate how to connect that data to Real-Time Intelligence and create a Real-Time Dashboard.
30
+
When your OPC UA data arrives in the cloud, there's a lot of information available to analyze. You might want to organize that data and create reports containing graphs and visualizations to derive insights from the data. The steps in this quickstart illustrate how to connect that data to Real-Time Intelligence and create a real-time dashboard.
31
31
32
32
## Ingest data into Real-Time Intelligence
33
33
@@ -44,7 +44,7 @@ Add your event hub as a data source for a new eventstream. For detailed instruct
44
44
* Edit the **Eventstream name** to something friendly in the **Stream details** pane.
45
45
* For **Azure Event Hub Key**, use the default selection (*RootManageSharedAccessKey*).
46
46
* For **Connection**, create a new connection with Shared Access Key authentication. The connection credential details fill automatically.
47
-
* Make sure local authentication is enabled on your Event Hubs namespace. You can set this authentication from the Overview page of the Azure portal.
47
+
* Make sure local authentication is enabled on your Event Hubs namespace. You can set this authentication from the namespace's Overview page in the Azure portal.
48
48
* For **Consumer group**, use the default selection (*$Default*).
49
49
* For **Data format**, use the default selection (*Json*).
50
50
@@ -79,7 +79,7 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
79
79
| Spike | bool |
80
80
| Temperature | decimal |
81
81
| FillWeight | decimal |
82
-
| EnergyUse | decimal |
82
+
| EnergyUse | decimal |
83
83
| Timestamp | datetime |
84
84
85
85
1. After you create the *OPCUA* table, select it and use the **Query with code** button to open any sample query in a new query window for the table.
@@ -124,8 +124,8 @@ Navigate to your workspace and create a new real-time dashboard from the Real-Ti
124
124
125
125
Download the sample dashboard template from this location in GitHub: [dashboard-AIOquickstart.json](https://github.com/Azure-Samples/explore-iot-operations/blob/main/samples/dashboard/dashboard-AIOquickstart.json).
126
126
127
-
Then, follow the steps to upload the dashboard template and connect it to your data.
128
-
1. In your Real-Time Dashboard, switch to the **Manage** tab and select **Replace with file**.
127
+
Then, follow these steps to upload the dashboard template and connect it to your data.
128
+
1. In your real-time dashboard, switch to the **Manage** tab and select **Replace with file**.
129
129
:::image type="content" source="media/quickstart-get-insights/dashboard-upload-replace.png" alt-text="Screenshot of the buttons to upload a file template.":::
130
130
1. Select the template file that you downloaded to your machine.
131
131
1. The template file populates the dashboard with multiple tiles, although the tiles can't get data because you haven't connected a data source yet.
@@ -164,4 +164,4 @@ Now that you're finished with the quickstart experience, this section contains i
164
164
> [!NOTE]
165
165
> The resource group contains the Event Hubs namespace you created in this quickstart.
166
166
167
-
You can also delete your Microsoft Fabric workspace and all the resources within it associated with this quickstart, including the eventstream, Eventhouse, and Real-Time Dashboard. Additionally, you might want to delete the dashboard template file that you downloaded to your computer.
167
+
You can also delete your Microsoft Fabric workspace and all the resources within it associated with this quickstart, including the eventstream, Eventhouse, and real-time dashboard. Additionally, you might want to delete the dashboard template file that you downloaded to your computer.
0 commit comments