diff --git a/docs/Trouble Shooting Guides/tsg-scripts/subscriberCreationRegisterService.ps1 b/docs/Trouble Shooting Guides/tsg-scripts/subscriberCreationRegisterService.ps1 index db589506a9925295f12e1456651437fe6401064d..aac8f5dd624d3e08b7d781cf57c7d007d85f2c52 100644 --- a/docs/Trouble Shooting Guides/tsg-scripts/subscriberCreationRegisterService.ps1 +++ b/docs/Trouble Shooting Guides/tsg-scripts/subscriberCreationRegisterService.ps1 @@ -1,8 +1,9 @@ +# Elevated permissions are required for running these commands. $myWebhookAadTenantId = "" Connect-AzureAD -TenantId $myWebhookAadTenantId -# This is the "Azure Event Grid" Azure Active Directory (AAD) AppId +# This is the "Azure Event Grid" Azure Active Directory (AAD) AppId. Don't change this value. $eventGridAppId = "4962773b-9cdb-44cf-a8bf-237846a00ab7" # Create the "Azure Event Grid" AAD Application service principal if it doesn't exist @@ -66,8 +67,8 @@ Write-Host $myAppRoles ##################################################### -# This is the app id of the application which will create event subscription. Set to $null if you are not assigning the role to app. -#$eventSubscriptionWriterAppId = "" +# This is the app id of the application which will create event subscription. Set to $null if you are not assigning the role to app. app-dev-sp-username in common resource keyvault contains this values. +$eventSubscriptionWriterAppId = "" $myServicePrincipal = Get-AzureADServicePrincipal -Filter ("appId eq '" + $myApp.AppId + "'") @@ -80,4 +81,4 @@ New-AzureADServiceAppRoleAssignment -Id $eventGridAppRole.Id -ResourceId $myServ Write-Host "My Webhook's Azure AD Tenant Id: $myWebhookAadTenantId" Write-Host "My Webhook's Azure AD Application Id: $($myApp.AppId)" -Write-Host "My Webhook's Azure AD Application ObjectId Id$($myApp.ObjectId)" \ No newline at end of file +Write-Host "My Webhook's Azure AD Application ObjectId Id$($myApp.ObjectId)"