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 41c9441

Browse files
committedOct 13, 2020
Update other files
1 parent ae7a7ad commit 41c9441

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed
 
Loading
Loading
Loading

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

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Most often, this error indicates that your role-based access control (RBAC) perm
2424

2525
### Cause #2
2626

27-
If you are using a client app to communicate with Azure Digital Twins, this error may happen because your [Azure Active Directory (Azure AD)](../active-directory/fundamentals/active-directory-whatis.md) app registration does not have permissions set up for the Azure Digital Twins service.
27+
If you are using a client app to communicate with Azure Digital Twins that is authenticating with an [app registration](how-to-create-app-registration.md), this error may happen because your app registration does not have permissions set up for the Azure Digital Twins service.
2828

29-
The app registration is required to 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.
29+
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.
3030

3131
## Solutions
3232

@@ -58,19 +58,29 @@ If you have this role assignment already and still encounter the 403 issue, cont
5858

5959
### Solution #2
6060

61-
The second solution is to verify that the Azure AD app registration has permissions configured for the Azure Digital Twins service. If this is not configured, set them up.
61+
The second solution is, if you're using an Azure AD app registration to authenticate a client app, to verify that the app registration has permissions configured for the Azure Digital Twins service. If these are not configured, set them up.
6262

6363
#### Check current setup
6464

65-
[!INCLUDE [digital-twins-setup-verify-app-registration-1.md](../../includes/digital-twins-setup-verify-app-registration-1.md)]
65+
To check whether the permissions have been configured correctly, navigate to the [Azure AD app registration overview page](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps) in the Azure portal. You can get to this page yourself by searching for *App registrations* in the portal search bar.
66+
67+
Switch to the *All applications* tab to see all the app registrations that have been created in your subscription.
68+
69+
You should see the app registration you just created in the list. Select it to open up its details.
70+
71+
:::image type="content" source="media/troubleshoot-error-403/app-registrations.png" alt-text="App registrations page in the Azure portal":::
6672

6773
First, verify that the Azure Digital Twins permissions settings were properly set on the registration. To do this, select *Manifest* from the menu bar to view the app registration's manifest code. Scroll to the bottom of the code window and look for these fields under `requiredResourceAccess`. The values should match those in the screenshot below:
6874

69-
[!INCLUDE [digital-twins-setup-verify-app-registration-2.md](../../includes/digital-twins-setup-verify-app-registration-2.md)]
75+
:::image type="content" source="media/troubleshoot-error-403/verify-manifest.png" alt-text="Portal view of the manifest for the Azure AD app registration":::
76+
77+
Next, select *API permissions* from the menu bar to verify that this app registration contains Read/Write permissions for Azure Digital Twins. You should see an entry like this:
78+
79+
:::image type="content" source="media/troubleshoot-error-403/verify-api-permissions.png" alt-text="Portal view of the API permissions for the Azure AD app registration, showing 'Read/Write Access' for Azure Digital Twins":::
7080

7181
#### Fix issues
7282

73-
If any of this appears differently than described, follow the instructions on how to set up an app registration in the [*Set up access permissions for client applications* section](how-to-set-up-instance-cli.md#set-up-access-permissions-for-client-applications) of *How-to: Set up an instance and authentication (CLI or portal)*.
83+
If any of this appears differently than described, follow the instructions on how to set up an app registration in [*How-to: Create an app registration*](how-to-create-app-registration.md).
7484

7585
## Next steps
7686

‎includes/digital-twins-tutorial-prereq-instance.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,4 @@ To complete this tutorial, you'll need an **Azure Digital Twins instance** to pr
1313

1414
* Otherwise, **set up an instance and authentication** using the instructions in [*How-to: Set up an instance and authentication*](../articles/digital-twins/how-to-set-up-instance-portal.md). The instructions also contain steps to verify that you have completed each step successfully and are ready to move on to using your new instance.
1515

16-
In this tutorial, you will need the following values from when you set up your instance.
17-
If you need to gather these values again, use the links below to the corresponding sections in the setup article for finding them in the [Azure portal](https://portal.azure.com).
18-
* Azure Digital Twins instance **_name_** ([find in portal](../articles/digital-twins/how-to-set-up-instance-portal.md#verify-success-and-collect-important-values))
19-
* Azure Digital Twins instance **_host name_** ([find in portal](../articles/digital-twins/how-to-set-up-instance-portal.md#verify-success-and-collect-important-values))
20-
* Azure AD app registration **_Application (client) ID_** ([find in portal](../articles/digital-twins/how-to-set-up-instance-portal.md#collect-important-values))
21-
* Azure AD app registration **_Directory (tenant) ID_** ([find in portal](../articles/digital-twins/how-to-set-up-instance-portal.md#collect-important-values))
16+
Once you have an Azure Digital Twins instance to work with in the tutorial, you'll need the instance's **_host name_** ([find in portal](how-to-set-up-instance-portal.md#verify-success-and-collect-important-values)).

0 commit comments

Comments
 (0)
Please sign in to comment.