Skip to content

Commit 92f00ac

Browse files
Merge pull request #229953 from baanders/3-8-egress
ADT: Add public access requirement for egress
2 parents 102724b + 6bbbd37 commit 92f00ac

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

articles/digital-twins/concepts-data-history.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure Digital Twins
55
description: Understand the data history feature for Azure Digital Twins.
66
author: baanders
77
ms.author: baanders # Microsoft employees only
8-
ms.date: 02/23/2023
8+
ms.date: 03/08/2023
99
ms.topic: conceptual
1010
ms.service: digital-twins
1111

@@ -28,9 +28,9 @@ For more of an introduction to data history, including a quick demo, watch the f
2828
## Resources and data flow
2929

3030
Data history requires the following resources:
31-
* Azure Digital Twins instance, with a [system-assigned managed identity](concepts-security.md#managed-identity-for-accessing-other-resources) enabled
32-
* [Event Hubs](../event-hubs/event-hubs-about.md) namespace containing an event hub
33-
* [Azure Data Explorer](/azure/data-explorer/data-explorer-overview) cluster containing a database
31+
* Azure Digital Twins instance, with a [system-assigned managed identity](concepts-security.md#managed-identity-for-accessing-other-resources) enabled.
32+
* [Event Hubs](../event-hubs/event-hubs-about.md) namespace containing an event hub.
33+
* [Azure Data Explorer](/azure/data-explorer/data-explorer-overview) cluster containing a database. The cluster must have public network access enabled.
3434

3535
These resources are connected into the following flow:
3636

articles/digital-twins/concepts-data-ingress-egress.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure Digital Twins
55
description: Learn about the data ingress and egress requirements for integrating Azure Digital Twins with other services.
66
author: baanders
77
ms.author: baanders # Microsoft employees only
8-
ms.date: 01/12/2023
8+
ms.date: 03/08/2023
99
ms.topic: conceptual
1010
ms.service: digital-twins
1111

@@ -37,10 +37,13 @@ You can also integrate Azure Digital Twins into a [Microsoft Power Platform](/po
3737

3838
You may want to send Azure Digital Twins data to other downstream services for storage or additional processing.
3939

40-
Digital twin data can be sent to most Azure services using *endpoints*. If your destination is [Azure Data Explorer](/azure/data-explorer/data-explorer-overview), you can use *data history* instead to automatically send graph updates to an Azure Data Explorer cluster, where they are stored as historical data and can be queried as such. The rest of this section describes these capabilities in more detail.
40+
There are two main egress options in Azure Digital Twins. Digital twin data can be sent to most Azure services using *endpoints*. Or, if your destination is [Azure Data Explorer](/azure/data-explorer/data-explorer-overview), you can use *data history* to automatically send graph updates to an Azure Data Explorer cluster, where they are stored as historical data and can be queried as such.
4141

42-
>[!NOTE]
43-
>Azure Digital Twins implements *at least once* delivery for data emitted to egress services.
42+
In order for Azure Digital Twins to send data to other Azure services via endpoints or data history, the receiving service must have public network access enabled. Azure Digital Twins currently does not support any outbound communication to resources that have public network access disabled.
43+
44+
Once the connection is set up, Azure Digital Twins implements *at least once* delivery for data emitted to egress services.
45+
46+
The rest of this section describes the two egress options in more detail.
4447

4548
### Endpoints
4649

articles/digital-twins/how-to-create-data-history-connection.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure Digital Twins
55
description: See how to set up a data history connection for historizing Azure Digital Twins updates into Azure Data Explorer.
66
author: baanders
77
ms.author: baanders # Microsoft employees only
8-
ms.date: 03/02/2023
8+
ms.date: 03/08/2023
99
ms.topic: how-to
1010
ms.service: digital-twins
1111
ms.custom: event-tier1-build-2022
@@ -123,6 +123,9 @@ Next, create a Kusto (Azure Data Explorer) cluster and database to receive the d
123123

124124
As part of the [data history connection setup](#set-up-data-history-connection) later, you'll grant the Azure Digital Twins instance the *Contributor* role on at least the database (it can also be scoped to the cluster), and the *Admin* role on the database.
125125

126+
>[!IMPORTANT]
127+
>Make sure that the cluster has public network access enabled. If the Azure Data Explorer cluster has [public network access disabled](/azure/data-explorer/security-network-restrict-public-access), Azure Digital Twins will be unable to configure the tables and other required artifacts, and data history setup will fail.
128+
126129
# [CLI](#tab/cli)
127130

128131
Use the following CLI commands to create the required resources. The commands use several local variables (`$location`, `$resourcegroup`, `$clustername`, and `$databasename`) that were created earlier in [Set up local variables for CLI session](#set-up-local-variables-for-cli-session).
@@ -182,11 +185,6 @@ When executing the above command, you'll be given the option of assigning the ne
182185

183186
For regular data plane operation, these roles can be reduced to a single Azure Event Hubs Data Sender role, if desired.
184187

185-
>[!NOTE]
186-
> If you encounter the error "Could not create Azure Digital Twins instance connection. Unable to create table and mapping rule in database. Check your permissions for the Azure Database Explorer and run `az login` to refresh your credentials," resolve the error by adding yourself as an *AllDatabasesAdmin* under Permissions in your Azure Data Explorer cluster.
187-
>
188-
>If you're using the Cloud Shell and encounter the error "Failed to connect to MSI. Please make sure MSI is configured correctly," try running the command with a local Azure CLI installation instead.
189-
190188
# [Portal](#tab/portal)
191189

192190
Start by navigating to your Azure Digital Twins instance in the Azure portal (you can find the instance by entering its name into the portal search bar). Then complete the following steps.
@@ -231,6 +229,14 @@ After setting up the data history connection, you can optionally remove the role
231229
>[!NOTE]
232230
>Once the connection is set up, the default settings on your Azure Data Explorer cluster will result in an ingestion latency of approximately 10 minutes or less. You can reduce this latency by enabling [streaming ingestion](/azure/data-explorer/ingest-data-streaming) (less than 10 seconds of latency) or an [ingestion batching policy](/azure/data-explorer/kusto/management/batchingpolicy). For more information about Azure Data Explorer ingestion latency, see [End-to-end ingestion latency](concepts-data-history.md#end-to-end-ingestion-latency).
233231
232+
### Troubleshoot connection setup
233+
234+
Here are a few common errors you might encounter when setting up a data history connection, and how to resolve them.
235+
236+
* If you have public network access disabled for your Azure Data Explorer cluster, you'll encounter an error that the service failed to create the data history connection, with the message "The resource could not ACT due to an internal server error." Data history setup will fail if the Azure Data Explorer cluster has [public network access disabled](/azure/data-explorer/security-network-restrict-public-access), since Azure Digital Twins will be unable to configure the tables and other required artifacts.
237+
* (CLI users) If you encounter the error "Could not create Azure Digital Twins instance connection. Unable to create table and mapping rule in database. Check your permissions for the Azure Database Explorer and run `az login` to refresh your credentials," resolve the error by adding yourself as an *AllDatabasesAdmin* under Permissions in your Azure Data Explorer cluster.
238+
* (Cloud Shell users) If you're using the Cloud Shell and encounter the error "Failed to connect to MSI. Please make sure MSI is configured correctly," try running the command with a local Azure CLI installation instead.
239+
234240
## Verify with a sample twin graph
235241

236242
Now that your data history connection is set up, you can test it with data from your digital twins.

0 commit comments

Comments
 (0)