Skip to content

Commit

Permalink
Rename check name for MT.1035 - Test-MtCaGroupsRestricted
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud-Architekt committed Jul 28, 2024
1 parent 224bfac commit f8643ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion powershell/Maester.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit f8643ff

Please sign in to comment.