diff --git a/powershell/Maester.psd1 b/powershell/Maester.psd1 index a87f2102..bdd3636a 100644 --- a/powershell/Maester.psd1 +++ b/powershell/Maester.psd1 @@ -94,7 +94,7 @@ FunctionsToExport = 'Add-MtTestResultDetail', 'Clear-MtGraphCache', 'Connect-Mae 'Test-MtCaExclusionForDirectorySyncAccount', 'Test-MtCaLicenseUtilization', 'Test-MtCaMfaForAdmin', 'Test-MtCaMfaForAdminManagement', 'Test-MtCaMfaForAllUsers', - "Test-MtCaGroupsRestrictedByRmau", + "Test-MtCaGroupsRestricted", 'Test-MtCaMfaForGuest', 'Test-MtCaMfaForRiskySignIn', 'Test-MtCaRequirePasswordChangeForHighUserRisk', 'Test-MtCaSecureSecurityInfoRegistration', 'Test-MtCisaDiagnosticSettings', diff --git a/powershell/public/Test-MtCaGroupsRestrictedByRmau.ps1 b/powershell/public/Test-MtCaGroupsRestricted.ps1 similarity index 96% rename from powershell/public/Test-MtCaGroupsRestrictedByRmau.ps1 rename to powershell/public/Test-MtCaGroupsRestricted.ps1 index d195fbbc..e1a12bcc 100644 --- a/powershell/public/Test-MtCaGroupsRestrictedByRmau.ps1 +++ b/powershell/public/Test-MtCaGroupsRestricted.ps1 @@ -13,13 +13,13 @@ https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management .Example - Test-MtCaGroupsRestrictedByRmau + Test-MtCaGroupsRestricted .LINK - https://maester.dev/docs/commands/Test-MtCaGroupsRestrictedByRmau + https://maester.dev/docs/commands/Test-MtCaGroupsRestricted #> -Function Test-MtCaGroupsRestrictedByRmau { +Function Test-MtCaGroupsRestricted { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '', Justification = 'Exists is not a plural.')] [CmdletBinding()] [OutputType([bool])] diff --git a/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 b/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 index 558a5fd7..8f176fe6 100644 --- a/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 +++ b/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 @@ -57,7 +57,7 @@ Test-MtCaExclusionForDirectorySyncAccount | Should -Be $true -Because "there is no policy that excludes directory synchronization accounts" } It "MT.1035: All security groups assigned to Conditional Access Policies should be protected by RMAU. See https://maester.dev/docs/tests/MT.1035" -Tag "MT.1035" { - Test-MtCaGroupsRestrictedByRmau | Should -Be $true -Because "there is one or more policy without protection of included or excluded groups" + Test-MtCaGroupsRestricted | Should -Be $true -Because "there is one or more policy without protection of included or excluded groups" } Context "License utilization" { It "MT.1022: All users utilizing a P1 license should be licensed. See https://maester.dev/docs/tests/MT.1022" -Tag "MT.1022" {