Skip to content

Commit 1c378ce

Browse files
(AzureCXP) fixes MicrosoftDocs/azure-docs#104879
Perfomed changes in line no. 160 changed to "$serverServicePrincipalObjectId = $serverServicePrincipal.ObjectId" Performed changes in line no. 197 changed to $serverServicePrincipalObjectId = $serverServicePrincipal.ObjectId
1 parent 09da575 commit 1c378ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/managed-identities-azure-resources/how-to-assign-app-role-managed-identity-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Connect-AzureAD -TenantId $tenantID
157157
158158
# Look up the details about the server app's service principal and app role.
159159
$serverServicePrincipal = (Get-AzureADServicePrincipal -Filter "DisplayName eq '$serverApplicationName'")
160-
$serverServicePrincipalObjectId = $serverServicePrincipal.Id
160+
$serverServicePrincipalObjectId = $serverServicePrincipal.ObjectId
161161
$appRoleId = ($serverServicePrincipal.AppRoles | Where-Object {$_.Value -eq $appRoleName }).Id
162162
163163
# Assign the managed identity access to the app role.
@@ -194,7 +194,7 @@ Connect-MgGraph -TenantId $tenantId -Scopes 'Application.Read.All','Application.
194194
195195
# Look up the details about the server app's service principal and app role.
196196
$serverServicePrincipal = (Get-MgServicePrincipal -Filter "DisplayName eq '$serverApplicationName'")
197-
$serverServicePrincipalObjectId = $serverServicePrincipal.Id
197+
$serverServicePrincipalObjectId = $serverServicePrincipal.ObjectId
198198
$appRoleId = ($serverServicePrincipal.AppRoles | Where-Object {$_.Value -eq $appRoleName }).Id
199199
200200
# Assign the managed identity access to the app role.

0 commit comments

Comments
 (0)