Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c07dbc

Browse files
authoredMay 25, 2022
Merge pull request #199299 from baanders/5-25-registration
ADT: Content performance May (combine app registration articles)
2 parents 7e07a5c + 879ecda commit 6c07dbc

11 files changed

+191
-221
lines changed
 

‎articles/digital-twins/.openpublishing.redirection.digital-twins.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "how-to-create-app-registration-portal.md",
5+
"redirect_url": "/azure/digital-twins/how-to-create-app-registration",
6+
"redirect_document_id": true
7+
},
8+
{
9+
"source_path": "how-to-create-app-registration-cli.md",
10+
"redirect_url": "/azure/digital-twins/how-to-create-app-registration",
11+
"redirect_document_id": false
12+
},
313
{
414
"source_path": "how-to-set-up-instance-powershell.md",
515
"redirect_url": "/azure/digital-twins/how-to-set-up-instance-cli",
@@ -25,11 +35,6 @@
2535
"redirect_url": "/azure/digital-twins/how-to-monitor-resource-health",
2636
"redirect_document_id": true
2737
},
28-
{
29-
"source_path": "how-to-create-app-registration.md",
30-
"redirect_url": "/azure/digital-twins/how-to-create-app-registration-portal",
31-
"redirect_document_id": true
32-
},
3338
{
3439
"source_path": "concepts-integration.md",
3540
"redirect_url": "/azure/digital-twins/concepts-data-ingress-egress",

‎articles/digital-twins/TOC.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@
110110
- name: Write app authentication code
111111
href: how-to-authenticate-client.md
112112
- name: Create an app registration with Azure Digital Twins access
113-
items:
114-
- name: Portal
115-
href: how-to-create-app-registration-portal.md
116-
- name: CLI
117-
href: how-to-create-app-registration-cli.md
113+
href: how-to-create-app-registration.md
118114
- name: Integrate with Azure SignalR Service
119115
href: how-to-integrate-azure-signalr.md
120116
- name: Connect input

‎articles/digital-twins/how-to-authenticate-client.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The [ManagedIdentityCredential](/dotnet/api/azure.identity.managedidentitycreden
8080

8181
This means that you may use `ManagedIdentityCredential` in the same project as `DefaultAzureCredential` or `InteractiveBrowserCredential`, to authenticate a different part of the project.
8282

83-
To use the default Azure credentials, you'll 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 may also need an [app registration](./how-to-create-app-registration-portal.md) and the registration's [Application (client) ID](./how-to-create-app-registration-portal.md#collect-client-id-and-tenant-id).
83+
To use the default Azure credentials, you'll 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 may 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).
8484

8585
In an Azure function, you can use the managed identity credentials like this:
8686

@@ -90,9 +90,9 @@ In an Azure function, you can use the managed identity credentials like this:
9090

9191
The [InteractiveBrowserCredential](/dotnet/api/azure.identity.interactivebrowsercredential?view=azure-dotnet&preserve-view=true) method is intended for interactive applications and will bring up a web browser for authentication. You can use this method instead of `DefaultAzureCredential` in cases where you require interactive authentication.
9292

93-
To use the interactive browser credentials, you'll need an **app registration** that has permissions to the Azure Digital Twins APIs. For steps on how to set up this app registration, see [Create an app registration with Azure Digital Twins access](./how-to-create-app-registration-portal.md). Once the app registration is set up, you'll need...
94-
* [the app registration's Application (client) ID](./how-to-create-app-registration-portal.md#collect-client-id-and-tenant-id)
95-
* [the app registration's Directory (tenant) ID](./how-to-create-app-registration-portal.md#collect-client-id-and-tenant-id)
93+
To use the interactive browser credentials, you'll need an **app registration** that has permissions to the Azure Digital Twins APIs. For steps on how to set up this app registration, see [Create an app registration with Azure Digital Twins access](./how-to-create-app-registration.md). Once the app registration is set up, you'll need...
94+
* [the app registration's Application (client) ID](./how-to-create-app-registration.md#collect-client-id-and-tenant-id)
95+
* [the app registration's Directory (tenant) ID](./how-to-create-app-registration.md#collect-client-id-and-tenant-id)
9696
* [the Azure Digital Twins instance's URL](how-to-set-up-instance-portal.md#verify-success-and-collect-important-values)
9797

9898
Here's an example of the code to create an authenticated SDK client using `InteractiveBrowserCredential`.

‎articles/digital-twins/how-to-create-app-registration-cli.md

Lines changed: 0 additions & 168 deletions
This file was deleted.

‎articles/digital-twins/how-to-create-app-registration-portal.md renamed to ‎articles/digital-twins/how-to-create-app-registration.md

Lines changed: 171 additions & 19 deletions
Large diffs are not rendered by default.

‎articles/digital-twins/how-to-move-regions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The exact resources you need to edit depends on your scenario, but here are some
126126
* Azure Maps.
127127
* IoT Hub Device Provisioning Service.
128128
* Personal or company apps outside of Azure, such as the client app created in [Code a client app](tutorial-code.md), that connect to the instance and call Azure Digital Twins APIs.
129-
* Azure AD app registrations don't need to be recreated. If you're using an [app registration](./how-to-create-app-registration-portal.md) to connect to the Azure Digital Twins APIs, you can reuse the same app registration with your new instance.
129+
* Azure AD app registrations don't need to be recreated. If you're using an [app registration](./how-to-create-app-registration.md) to connect to the Azure Digital Twins APIs, you can reuse the same app registration with your new instance.
130130

131131
After you finish this step, your new instance in the target region should be a copy of the original instance.
132132

Loading
Loading

‎articles/digital-twins/troubleshoot-error-403.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Most often, this error indicates that your Azure role-based access control (Azur
2525

2626
### Cause #2
2727

28-
If you're using a client app to communicate with Azure Digital Twins that's authenticating with an [app registration](./how-to-create-app-registration-portal.md), this error may happen because your app registration doesn't have permissions set up for the Azure Digital Twins service.
28+
If you're using a client app to communicate with Azure Digital Twins that's authenticating with an [app registration](./how-to-create-app-registration.md), this error may happen because your app registration doesn't have permissions set up for the Azure Digital Twins service.
2929

3030
The app registration must have access permissions configured for the Azure Digital Twins APIs. Then, when your client app authenticates against the app registration, it will be granted the permissions that the app registration has configured.
3131

@@ -82,7 +82,7 @@ Next, select **API permissions** from the menu bar to verify that this app regis
8282

8383
#### Fix issues
8484

85-
If any of this appears differently than described, follow the instructions on how to set up an app registration in [Create an app registration with Azure Digital Twins access](./how-to-create-app-registration-portal.md).
85+
If any of this appears differently than described, follow the instructions on how to set up an app registration in [Create an app registration with Azure Digital Twins access](./how-to-create-app-registration.md).
8686

8787
## Next steps
8888

‎includes/digital-twins-create-app-registration-selector.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎includes/digital-twins-prereq-registration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ ms.date: 10/29/2020
77
ms.author: baanders
88
---
99

10-
To authenticate all the resources used in this article, you'll need to set up an [Azure Active Directory (Azure AD)](../articles/active-directory/fundamentals/active-directory-whatis.md) app registration. Follow the instructions in [Create an app registration with Azure Digital Twins access](../articles/digital-twins/how-to-create-app-registration-portal.md) to set this up.
10+
To authenticate all the resources used in this article, you'll need to set up an [Azure Active Directory (Azure AD)](../articles/active-directory/fundamentals/active-directory-whatis.md) app registration. Follow the instructions in [Create an app registration with Azure Digital Twins access](../articles/digital-twins/how-to-create-app-registration.md) to set this up.
1111

12-
Once you have an app registration, you'll need the registration's **Application (client) ID**, **Directory (tenant) ID**, and **client secret value** ([find in the Azure portal](../articles/digital-twins/how-to-create-app-registration-portal.md#collect-important-values)). Take note of these values to use them later to grant access to the Azure Digital Twins APIs.
12+
Once you have an app registration, you'll need the registration's **Application (client) ID**, **Directory (tenant) ID**, and **client secret value** ([find in the Azure portal](../articles/digital-twins/how-to-create-app-registration.md?tabs=portal#collect-important-values)). Take note of these values to use them later to grant access to the Azure Digital Twins APIs.

0 commit comments

Comments
 (0)
Please sign in to comment.