Skip to content

Commit 736eb1b

Browse files
committed
Modified to work with Client side Filtering
1 parent 4c21750 commit 736eb1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/powershell/tests/Test-Assessment.25376.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ function Test-Assessment-25376 {
4343
# Query 3: Verify Microsoft 365 traffic forwarding profile is enabled
4444
$m365Profile = $null
4545
try {
46-
$m365Profile = Invoke-ZtGraphRequest -RelativeUri "networkAccess/forwardingProfiles" -Filter "trafficForwardingType eq 'm365'" -ApiVersion beta
46+
$allProfiles = Invoke-ZtGraphRequest -RelativeUri "networkAccess/forwardingProfiles" -ApiVersion beta
47+
$m365Profile = $allProfiles | Where-Object { $_.trafficForwardingType -eq 'm365' }
4748
} catch {
4849
Write-PSFMessage "Unable to retrieve M365 forwarding profile: $_" -Level Warning
4950
}

0 commit comments

Comments
 (0)