m365advisor-tests/M365Advisor/Entra/Test-AppManagementPolicies.Tests.ps1

Describe "M365Advisor/Entra" -Tag "M365Advisor", "App" {
    It "MT.1002: App management restrictions on applications and service principals is configured and enabled. See https://m365advisor.dev/docs/tests/MT.1002" -Tag "MT.1002" {

        Test-MtAppManagementPolicyEnabled | Should -Be $true -Because "an app policy for workload identities should be defined to enforce strong credentials instead of passwords and a maximum expiry period (e.g. credential should be renewed every six months)"
    }
}