Skip to content

Commit d0b342c

Browse files
committed
address warnings
1 parent e286877 commit d0b342c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/active-directory/manage-apps/assign-app-owners.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ You'll need to consent to the `Application.ReadWrite.All` permission.
4343

4444
In the following example, the user's object ID is 8afc02cb-4d62-4dba-b536-9f6d73e9be26 and the applicationId is 46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b.
4545

46-
```powershell
47-
Import-Module Microsoft.Graph.Applications
46+
```powershell
47+
Import-Module Microsoft.Graph.Applications
4848
49-
$params = @{
50-
"@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/8afc02cb-4d62-4dba-b536-9f6d73e9be26"
51-
}
49+
$params = @{
50+
"@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/8afc02cb-4d62-4dba-b536-9f6d73e9be26"
51+
}
5252
53-
New-MgServicePrincipalOwnerByRef -ServicePrincipalId '46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b' -BodyParameter $params
54-
```
53+
New-MgServicePrincipalOwnerByRef -ServicePrincipalId '46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b' -BodyParameter $params
54+
```
5555
:::zone-end
5656

5757
:::zone pivot="ms-graph"
@@ -62,14 +62,14 @@ You'll need to consent to the `Application.ReadWrite.All` permission.
6262

6363
Run the following Microsoft Graph query to assign an owner to an application. You need the object ID of the user you want to assign the application to. In the following example, the user's object ID is 8afc02cb-4d62-4dba-b536-9f6d73e9be26 and the appId is 46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b.
6464

65-
```http
66-
POST https://graph.microsoft.com/v1.0/servicePrincipals(appId='46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b')/owners/$ref
67-
Content-Type: application/json
65+
```http
66+
POST https://graph.microsoft.com/v1.0/servicePrincipals(appId='46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b')/owners/$ref
67+
Content-Type: application/json
6868
69-
{
70-
"@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/8afc02cb-4d62-4dba-b536-9f6d73e9be26"
71-
}
72-
```
69+
{
70+
"@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/8afc02cb-4d62-4dba-b536-9f6d73e9be26"
71+
}
72+
```
7373

7474
:::zone-end
7575

0 commit comments

Comments
 (0)