maester-tests/cis/Test-MtCisHostedConnectionFilterPolicy.Tests.ps1

Describe "CIS" -Tag "CIS.M365.2.1.12", "L1", "CIS E3 Level 1", "CIS E3", "CIS", "Security", "CIS M365 v5.0.0" {
    It "CIS.M365.2.1.12: (L1) Ensure the connection filter IP allow list is not used (Only Checks Default Policy)" {

        $result = Test-MtCisHostedConnectionFilterPolicy

        if ($null -ne $result) {
            $result | Should -Be $true -Because "the IP Allow List is empty."
        }
    }
}