Commit 8e7e2588 authored by Vivek Ojha's avatar Vivek Ojha
Browse files

Troubleshhot event grid script updates

parent 23fe29e3
Pipeline #62277 failed with stages
in 1 minute and 46 seconds
# Elevated permissions are required for running these commands.
$myWebhookAadTenantId = "<Your Webhook's Azure AD tenant id>"
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 = "<the app id of the application which will create event subscription>"
# 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 = "<the app id of the application which will create event subscription>"
$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)"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment