Skip to content

Commit 5cfe17f

Browse files
authored
Fix typos and improve clarity in documentation
Edit review per CI 3171
1 parent 82ebdd0 commit 5cfe17f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

support/entra/entra-id/users-groups-entra-apis/call-graph-api-using-managed-dentities.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ ms.custom: sap:Microsoft Graph Users, Groups, and Entra APIs
99

1010
# Use managed identities to call Microsoft Graph APIs in VB.Net and C#
1111

12-
This article explains how to use managed identities to obtain access token, and then call Microsoft Graph APIs in both VB.Net and C#.
12+
This article explains how to use managed identities to obtain access tokens, and then call Microsoft Graph APIs in both VB.Net and C#.
1313

1414
## Configure permissions for managed identities
1515

16-
All managed identities (User Assigned or System Assigned) will have a service principal that appears in the Enterprise Apps blade. To get permissions consented for Microsoft Graph on those identities, you'll need to make an OAuth Permission Grant. To do this, run the following PowerShell script:
16+
All managed identities (User Assigned or System Assigned) will have a service principal that appears in the Enterprise Apps blade. To get permissions for Microsoft Graph on those identities, you must make an OAuth Permission Grant. To do this, run the following PowerShell script:
1717

1818
```powershell
1919
# Your tenant id (in Azure Portal, under Azure Active Directory -> Overview )
@@ -69,10 +69,10 @@ foreach($permission in $Permissions)
6969
```
7070
## Get access token
7171

72-
After the permissions are configured in the service principal, make a token request from the resource: `https://graph.microsoft.com`:
72+
After the permissions are configured in the service principal, make a token request from the following resource: `https://graph.microsoft.com`.
7373

7474
> [!NOTE]
75-
> Once you make a token request for a resource, you'll get the same token for the next 24 hours, even if you make permission changes. you'll need to wait for the current token to expire in order to get a token with any new permissions.
75+
> After you make a token request for a resource, you'll get the same token for the next 24 hours, even if you make permissions changes. In order to get a token together with any new permissions, you must wait for the current token to expire.
7676
7777
```vbnet
7878
Dim at As AccessToken = credential.GetToken(New TokenRequestContext(New String() {"https://graph.microsoft.com"}))
@@ -83,7 +83,7 @@ AccessToken at = credential.GetToken(new TokenRequestContext(new string[] { "htt
8383
```
8484

8585
## Call Graph APIs
86-
This example shows how to request an access token for a resource such as Microsoft Graph. When you use the Microsoft Graph service client in your code, you don't need to specify the resource explicitly, as the Microsoft Graph service client handles that automatically. In VB.Net, you'll need to add the `Microsoft.Graph` NuGet package and then add the `Imports Microsoft.Graph` at the top of the code file.
86+
This example shows how to request an access token for a resource such as Microsoft Graph. When you use the Microsoft Graph service client in your code, you don't have to specify the resource explicitly because the Microsoft Graph service client handles that automatically. In VB.Net, you have to add the `Microsoft.Graph` NuGet package and then add the `Imports Microsoft.Graph` at the top of the code file.
8787

8888
### VB.Net
8989
```vbnet

0 commit comments

Comments
 (0)