Skip to content

Commit

Permalink
Fix ActionUrl / CIPPURL being populated incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdwegen authored Jan 17, 2025
1 parent b100fe2 commit 4798cda
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ function Push-AuditLogTenant {
}
$CIPPURL = $LegacyUrl
} else {
$CIPPURL = 'https://{0}' -f $CippConfig.Value
if (!$CippConfig) {
$CippConfig = @{
PartitionKey = 'InstanceProperties'
RowKey = 'CIPPURL'
Value = [string]([System.Uri]$Request.Headers.'x-ms-original-url').Host
}
Add-AzDataTableEntity @ConfigTable -Entity $CippConfig -Force
$CIPPURL = 'https://{0}' -f $CippConfig.Value
} else { $CIPPURL = 'https://{0}' -f $CippConfig.Value }
}

# Get webhook rules
Expand Down

0 comments on commit 4798cda

Please sign in to comment.