Commit 0082f0c0 authored by harshit aggarwal's avatar harshit aggarwal
Browse files

Merge branch 'troubleshoot-script-updates' into 'master'

Troubleshhot event grid script updates

See merge request !472
parents 23fe29e3 8e7e2588
Pipeline #62579 passed with stages
in 1 minute and 52 seconds
# Elevated permissions are required for running these commands.
$myWebhookAadTenantId = "<Your Webhook's Azure AD tenant id>" $myWebhookAadTenantId = "<Your Webhook's Azure AD tenant id>"
Connect-AzureAD -TenantId $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" $eventGridAppId = "4962773b-9cdb-44cf-a8bf-237846a00ab7"
# Create the "Azure Event Grid" AAD Application service principal if it doesn't exist # Create the "Azure Event Grid" AAD Application service principal if it doesn't exist
...@@ -66,8 +67,8 @@ Write-Host $myAppRoles ...@@ -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. # 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>" $eventSubscriptionWriterAppId = "<the app id of the application which will create event subscription>"
$myServicePrincipal = Get-AzureADServicePrincipal -Filter ("appId eq '" + $myApp.AppId + "'") $myServicePrincipal = Get-AzureADServicePrincipal -Filter ("appId eq '" + $myApp.AppId + "'")
...@@ -80,4 +81,4 @@ New-AzureADServiceAppRoleAssignment -Id $eventGridAppRole.Id -ResourceId $myServ ...@@ -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 Tenant Id: $myWebhookAadTenantId"
Write-Host "My Webhook's Azure AD Application Id: $($myApp.AppId)" Write-Host "My Webhook's Azure AD Application Id: $($myApp.AppId)"
Write-Host "My Webhook's Azure AD Application ObjectId Id$($myApp.ObjectId)" Write-Host "My Webhook's Azure AD Application ObjectId Id$($myApp.ObjectId)"
\ No newline at end of file
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