Skip to content

Commit 5f18bb9

Browse files
correct powershell script output
This corrects a bug in the powershell script where the Application Object Id was being displayed as the Application Id causing confusion while setting up AAD integration with webhooks. Additionally, the formatting of the output section was cleaned up.
1 parent 7c33c57 commit 5f18bb9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/event-grid/secure-webhook-delivery.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ else
9999
100100
New-AzureADServiceAppRoleAssignment -Id $myApp.AppRoles[0].Id -ResourceId $myServicePrincipal.ObjectId -ObjectId $eventGridSP.ObjectId -PrincipalId $eventGridSP.ObjectId
101101
102-
Write-Host "My Azure AD Tenant Id" + $myTenantId
103-
Write-Host "My Azure AD Application Id" + $myAzureADApplicationObjectId
104-
Write-Host "My Azure AD Application ($myApp.ObjectId): " + $myApp.ObjectId
105-
Write-Host "My Azure AD Application's Roles"
102+
Write-Host "My Azure AD Tenant Id: $myTenantId"
103+
Write-Host "My Azure AD Application Id: $($myApp.AppId)"
104+
Write-Host "My Azure AD Application ObjectId: $($myApp.ObjectId)"
105+
Write-Host "My Azure AD Application's Roles: "
106106
Write-Host $myApp.AppRoles
107107
```
108108

0 commit comments

Comments
 (0)