Skip to content

Commit cb74f02

Browse files
authored
Merge pull request #202 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents d2c4831 + aa175cb commit cb74f02

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Alerts/Invoke-ListAlertsQueue.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Function Invoke-ListAlertsQueue {
3333
$TaskEntry = [PSCustomObject]@{
3434
Tenants = @($Tenants.label)
3535
Conditions = $TranslatedConditions
36-
excludedTenants = ($Task.excludedTenants | ConvertFrom-Json -Depth 10 -ErrorAction SilentlyContinue)
36+
excludedTenants = @($Task.excludedTenants | ConvertFrom-Json -Depth 10 -ErrorAction SilentlyContinue)
3737
Actions = $TranslatedActions
3838
LogType = $Task.type
3939
EventType = 'Audit log Alert'
@@ -64,10 +64,16 @@ Function Invoke-ListAlertsQueue {
6464
}
6565

6666
foreach ($Task in $ScheduledTasks) {
67+
if ($Task.excludedTenants) {
68+
$ExcludedTenants = @($Task.excludedTenants)
69+
} else {
70+
$ExcludedTenants = @()
71+
}
72+
6773
$TaskEntry = [PSCustomObject]@{
6874
RowKey = $Task.RowKey
6975
PartitionKey = $Task.PartitionKey
70-
excludedTenants = $Task.excludedTenants
76+
excludedTenants = @($ExcludedTenants)
7177
Tenants = @($Task.Tenant)
7278
Conditions = $Task.Name
7379
Actions = $Task.PostExecution

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-ListConditionalAccessPolicies.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Function Invoke-ListConditionalAccessPolicies {
170170
id = $cap.id
171171
displayName = $cap.displayName
172172
customer = $cap.Customer
173-
tenantID = $cap.TenantID
173+
tenantID = $TenantFilter
174174
createdDateTime = $(if (![string]::IsNullOrEmpty($cap.createdDateTime)) { [datetime]$cap.createdDateTime } else { '' })
175175
modifiedDateTime = $(if (![string]::IsNullOrEmpty($cap.modifiedDateTime)) { [datetime]$cap.modifiedDateTime }else { '' })
176176
state = $cap.state

0 commit comments

Comments
 (0)