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
This article explains how to migrate from these versions to the latest stable GA version of the APIs, [2022-10-31](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31). The GA version provides more capabilities, including time-series database connections and managed identity.
19
+
This article explains how to migrate from these preview versions to the latest stable GA version of the API, [2023-01-31](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31). The GA version provides more capabilities, including time-series database connections and managed identity.
20
20
21
21
## Migrate from 2020-03-01-preview control plane API
22
22
23
-
This section contains a list of changes to be aware of when you're preparing to migrate from the [2020-03-01-preview](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview) API version to the [2022-10-31](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31) (GA) API version. The changes include altered item names or naming requirements, endpoint requirements, and changes to the instance and API responses.
23
+
This section contains a list of changes to be aware of when you're preparing to migrate from the [2020-03-01-preview](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview) API version to the [2023-01-31](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31) (GA) API version. The changes include altered item names or naming requirements, endpoint requirements, and changes to the instance and API responses.
24
24
25
-
The changes from the 2020-03-01-preview API version to the 2022-10-31 (GA) API version are as follows:
25
+
The changes from the 2020-03-01-preview API version to the 2023-01-31 (GA) API version are as follows:
26
26
* For Event Hubs endpoints, the values *connectionString-PrimaryKey* and *connectionString-SecondaryKey* have changed to *connectionStringPrimaryKey* and *connectionStringSecondaryKey*, respectively (the dashes are removed).
27
27
* The Patch API response has changed from synchronous to asynchronous.
28
-
* Because patch updates now complete asynchronously, the Patch API of Azure Digital Twins resources now returns [202 Accepted](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_example.json) instead of [200 OK](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json)). Users can track the status of the update with a PUT request.
28
+
* Because patch updates now complete asynchronously, the Patch API of Azure Digital Twins resources now returns [202 Accepted](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPatch_example.json) instead of [200 OK](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json). Users can track the status of the update with a PUT request.
29
29
* Endpoint names must be at least two characters long (previously one character in the preview API), and can have a max length of 49 characters (previously 64)
30
30
* Digital twins resource names must be at least three characters long (previously one), and can have a maximum length of 63 characters (previously 64)
31
31
* For Service Bus, Event Hubs, and Event Grid endpoints, secondary secrets (like connection strings and access keys) are no longer required. Now they're optional.
@@ -40,14 +40,14 @@ If you're using an associated SDK of the 2020-03-01-preview API, it's recommende
40
40
41
41
## Migrate from 2021-06-30-preview control plane API
42
42
43
-
The target replacement API version ([2022-10-31 (GA) API version](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31)) is backwards-compatible with the [2021-06-30-preview API version](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview). In addition to the 2021-06-30-preview API version's capabilities, the 2022-10-31 (GA) API version additionally introduces user-assigned managed identities.
43
+
The target replacement API version ([2023-01-31 (GA) API version](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31)) is backwards-compatible with the [2021-06-30-preview API version](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview). In addition to the 2021-06-30-preview API version's capabilities, the 2023-01-31 (GA) API version additionally introduces user-assigned managed identities.
44
44
45
-
There are no breaking changes for migrating to the target replacement API version ([2022-10-31 (GA) API version](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31)). There's one minor change: Endpoints and TSDB connections now have an explicit *Updating* state defined in the API contract.
45
+
There are no breaking changes for migrating to the target replacement API version ([2023-01-31 (GA) API version](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31)). There's one minor change: Endpoints and TSDB connections now have an explicit *Updating* state defined in the API contract.
46
46
47
47
If you're using an associated SDK of the 2021-06-30-preview API, it's recommended to update to the latest version of the management SDK. Use the following links to know what additional changes are required to migrate to the new management SDK.
48
48
* .NET: Migrate from the [Microsoft.Azure.Management.DigitalTwins 1.2.0-beta.1](https://www.nuget.org/packages/Microsoft.Azure.Management.DigitalTwins/1.2.0-beta.1) package to the [Azure.ResourceManager.DigitalTwins 1.1.0](https://www.nuget.org/packages/Azure.ResourceManager.DigitalTwins/1.1.0) package, by following the [.NET SDK migration guidance](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/MigrationGuide.md).
49
-
* Java: Migrate from the [azure-resourcemanager-digitaltwins:1.0.0-beta.2](https://search.maven.org/artifact/com.azure.resourcemanager/azure-resourcemanager-digitaltwins/1.0.0-beta.2/jar) package to the [Azure.ResourceManager.DigitalTwins 1.1.0](https://search.maven.org/artifact/com.azure.resourcemanager/azure-resourcemanager-digitaltwins/1.1.0/jar) package, or set the service version in the SDK client to call the 2022-10-31 (GA) API.
49
+
* Java: Migrate from the [azure-resourcemanager-digitaltwins:1.0.0-beta.2](https://search.maven.org/artifact/com.azure.resourcemanager/azure-resourcemanager-digitaltwins/1.0.0-beta.2/jar) package to the [Azure.ResourceManager.DigitalTwins 1.1.0](https://search.maven.org/artifact/com.azure.resourcemanager/azure-resourcemanager-digitaltwins/1.1.0/jar) package, or set the service version in the SDK client to call the 2023-01-31 (GA) API.
50
50
51
51
## Next steps
52
52
53
-
View the latest stable GA API, [2022-10-31](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31), in GitHub.
53
+
View the latest stable GA API, [2023-01-31](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31), in GitHub.
Copy file name to clipboardExpand all lines: articles/digital-twins/troubleshoot-error-azure-digital-twins-explorer-authentication.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,37 +6,37 @@ ms.service: azure-digital-twins
6
6
author: baanders
7
7
ms.author: baanders
8
8
ms.topic: troubleshooting
9
-
ms.date: 03/29/2022
9
+
ms.date: 06/17/2025
10
10
---
11
11
12
12
# Troubleshoot Azure Digital Twins Explorer: Authentication errors
13
13
14
-
This article describes causes and resolution steps for receiving authentication errors while running [Azure Digital Twins Explorer](/samples/azure-samples/digital-twins-explorer/digital-twins-explorer/).
14
+
This article describes causes and resolution steps for receiving authentication errors while running [Azure Digital Twins Explorer](concepts-azure-digital-twins-explorer.md).
15
15
16
16
## Symptoms
17
17
18
-
When running Azure Digital Twins Explorer, you encounter the following error message:
18
+
While running Azure Digital Twins Explorer, you encounter the following error message:
19
19
20
20
:::image type="content" source="media/troubleshoot-error-azure-digital-twins-explorer-authentication/permission-error.png" alt-text="Screenshot of an error message in the Azure Digital Twins Explorer, entitled Make sure you have the right permissions.":::
21
21
22
22
## Causes
23
23
24
24
### Cause #1
25
25
26
-
This error will occur if your Azure account doesn't have the required Azure role-based access control (Azure RBAC) permissions set on your Azure Digital Twins instance. In order to access data in your instance, you must have the *Azure Digital Twins Data Reader* or *Azure Digital Twins Data Owner* role on the instance you are trying to read or manage, respectively.
26
+
This error will occur if your Azure account doesn't have the required Azure role-based access control (Azure RBAC) permissions set on your Azure Digital Twins instance. In order to access data in your instance, you must have the **Azure Digital Twins Data Reader** or **Azure Digital Twins Data Owner** role on the instance you are trying to read or manage, respectively.
27
27
28
28
For more information about security and roles in Azure Digital Twins, see [Security for Azure Digital Twins solutions](concepts-security.md).
29
29
30
30
## Solutions
31
31
32
32
### Solution #1
33
33
34
-
Verify that your Azure user has the *Azure Digital Twins Data Reader* role on the Azure Digital Twins instance if you're just trying to read its data, or the *Azure Digital Twins Data Owner* role on the instance if you're trying to manage its data.
34
+
Verify that your Azure user has the **Azure Digital Twins Data Reader** role on the Azure Digital Twins instance if you're just trying to read its data, or the **Azure Digital Twins Data Owner** role on the instance if you're trying to manage its data.
35
35
36
36
Note that this role is different from...
37
-
* the former name for this role during preview, *Azure Digital Twins Owner (Preview)* (the role is the same, but the name has changed)
38
-
* the *Owner* role on the entire Azure subscription. *Azure Digital Twins Data Owner* is a role within Azure Digital Twins and is scoped to this individual Azure Digital Twins instance.
39
-
* the *Owner* role in Azure Digital Twins. These are two distinct Azure Digital Twins management roles, and *Azure Digital Twins Data Owner* is the role that should be used for management.
37
+
* the former name for this role during preview, **Azure Digital Twins Owner (Preview)** (the role is the same, but the name in GA is different)
38
+
* the **Owner** role on the entire Azure subscription. **Azure Digital Twins Data Owner** is a role within Azure Digital Twins and is scoped to this individual Azure Digital Twins instance.
39
+
* the **Owner** role in Azure Digital Twins. These are two distinct Azure Digital Twins management roles, and **Azure Digital Twins Data Owner** is the role that should be used for data management.
40
40
41
41
If you do not have this role, set it up to resolve the issue.
42
42
@@ -48,18 +48,18 @@ If you do not have this role, set it up to resolve the issue.
48
48
49
49
If you do not have this role assignment, someone with an Owner role in your Azure subscription should run the following command to give your Azure user the appropriate role on the Azure Digital Twins instance.
50
50
51
-
If you're an Owner on the subscription, you can run this command yourself. If you're not, contact an Owner to run this command on your behalf. The role name is *Azure Digital Twins Data Owner* for edit access, or *Azure Digital Twins Data Reader* for read access.
51
+
If you're an Owner on the subscription, you can run this command yourself. If you're not, contact an Owner to run this command on your behalf. The role name is **Azure Digital Twins Data Reader** for read access, or **Azure Digital Twins Data Owner** for edit access.
52
52
53
53
```azurecli-interactive
54
54
az dt role-assignment create --dt-name <your-Azure-Digital-Twins-instance> --assignee "<your-Azure-AD-email>" --role "<role-name>"
55
55
```
56
56
57
-
For more details about this role requirement and the assignment process, see [Set up your user's access permissions](how-to-set-up-instance-CLI.md#set-up-user-access-permissions).
57
+
For more details about this role requirement and the assignment process, see [Set up your user's access permissions](how-to-set-up-instance-cli.md#set-up-user-access-permissions).
58
58
59
59
## Next steps
60
60
61
-
Read the setup steps for creating and authenticating a new Azure Digital Twins instance:
61
+
Read the steps for creating and authenticating a new Azure Digital Twins instance:
62
62
*[Set up an instance and authentication (CLI)](how-to-set-up-instance-cli.md)
63
63
64
-
Read more about security and permissions on Azure Digital Twins:
64
+
Read more about security and permissions in Azure Digital Twins:
65
65
*[Security for Azure Digital Twins solutions](concepts-security.md)
Copy file name to clipboardExpand all lines: articles/digital-twins/troubleshoot-performance.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
@@ -4,7 +4,7 @@ titleSuffix: Azure Digital Twins
4
4
description: Tips for troubleshooting performance of an Azure Digital Twins instance.
5
5
author: baanders
6
6
ms.author: baanders
7
-
ms.date: 03/10/2022
7
+
ms.date: 06/17/2025
8
8
ms.topic: troubleshooting
9
9
ms.service: azure-digital-twins
10
10
---
@@ -23,20 +23,20 @@ If your solution uses Azure Digital Twins in combination with other Azure servic
23
23
24
24
## Check logs
25
25
26
-
Azure Digital Twins can collect logs for your service instance to help monitor its performance, among other data. Logs can be sent to [Log Analytics](/azure/azure-monitor/logs/log-analytics-overview) or your custom storage mechanism. To enable logging in your instance, use the instructions in [Diagnostic settings in Azure Monitor](/azure/azure-monitor/essentials/diagnostic-settings). You can analyze the timestamps on the logs to measure latencies, evaluate if they're consistent, and understand their source.
26
+
Azure Digital Twins can collect logs for your service instance to help monitor its performance, among other data. Logs can be sent to [Log Analytics](/azure/azure-monitor/logs/log-analytics-overview) or your custom storage mechanism. To enable logging in your instance, use the instructions in [Diagnostic settings in Azure Monitor](/azure/azure-monitor/essentials/diagnostic-settings). You can analyze the timestamps on the logs to measure latencies, evaluate whether they're consistent, and understand their source.
27
27
28
28
## Check API frequency
29
29
30
-
Another factor that might affect performance is time taken to reauthorize API calls. Consider the frequency of your API calls. If there's a gap of more than 15 minutes between calls, the system may be reauthorizing with each call, taking up extra time to do so. You can prevent this issue by adding a timer or something similar in your code to ensure that you call into Azure Digital Twins at least once every 15 minutes.
30
+
Another factor that might affect performance is time taken to reauthorize API calls. Consider the frequency of your API calls. If there's a gap of more than 15 minutes between calls, the system may be taking time to reauthorize with each call. You can prevent this issue by adding a timer or similar feature in your code to ensure that it calls into Azure Digital Twins at least once every 15 minutes.
31
31
32
32
## Contact support
33
33
34
-
If you're still experiencing performance issues after troubleshooting with the steps above, you can create a support request from Azure Help + Support for more troubleshooting assistance.
34
+
If you're still experiencing performance issues after troubleshooting with the steps in this article, you can create a support request from **Azure Help + support** for more troubleshooting assistance.
35
35
36
36
Follow these steps:
37
37
38
38
1. Gather [metrics](how-to-monitor.md#metrics-and-alerts) and [logs](how-to-monitor.md#diagnostics-logs) for your instance.
39
-
2. Navigate to [Azure Help + support](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest) in the Azure portal. Use the prompts to provide details of your issue, see recommended solutions, share your metrics/log files, and submit any other information that the support team can use to help investigate your issue. For more information on creating support requests, see [Create an Azure support request](/azure/azure-portal/supportability/how-to-create-azure-support-request).
39
+
2. Navigate to [Help + support](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest) in the Azure portal. Use the prompts to provide details of your issue, see recommended solutions, share your metrics/log files, and submit any other information that the support team can use to help investigate your issue. For more information on creating support requests, see [Create an Azure support request](/azure/azure-portal/supportability/how-to-create-azure-support-request).
0 commit comments