Skip to content

Commit dc9ad98

Browse files
committed
Update Invoke-ExecApiClient.ps1
1 parent 0329521 commit dc9ad98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecApiClient.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function Invoke-ExecApiClient {
118118
$TenantId = $ENV:TenantId
119119
$RGName = $ENV:WEBSITE_RESOURCE_GROUP
120120
$FunctionAppName = $ENV:WEBSITE_SITE_NAME
121-
$AllClients = Get-CIPPAzDataTableEntity @Table -Filter 'Enabled eq true'
121+
$AllClients = Get-CIPPAzDataTableEntity @Table -Filter 'Enabled eq true' | Where-Object { ![string]::IsNullOrEmpty($_.RowKey) }
122122
$ClientIds = $AllClients.RowKey
123123
try {
124124
Set-CippApiAuth -RGName $RGName -FunctionAppName $FunctionAppName -TenantId $TenantId -ClientIds $ClientIds

0 commit comments

Comments
 (0)