We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b100fe2 commit 4798cdaCopy full SHA for 4798cda
Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Webhooks/Push-AuditLogTenant.ps1
@@ -26,7 +26,15 @@ function Push-AuditLogTenant {
26
}
27
$CIPPURL = $LegacyUrl
28
} else {
29
- $CIPPURL = 'https://{0}' -f $CippConfig.Value
+ if (!$CippConfig) {
30
+ $CippConfig = @{
31
+ PartitionKey = 'InstanceProperties'
32
+ RowKey = 'CIPPURL'
33
+ Value = [string]([System.Uri]$Request.Headers.'x-ms-original-url').Host
34
+ }
35
+ Add-AzDataTableEntity @ConfigTable -Entity $CippConfig -Force
36
+ $CIPPURL = 'https://{0}' -f $CippConfig.Value
37
+ } else { $CIPPURL = 'https://{0}' -f $CippConfig.Value }
38
39
40
# Get webhook rules
0 commit comments