Improvement request for MT.1024
Situation Is it possible to assign a specific tag to each recommendation, so a specific recommendation can be excluded?
- https://github.com/maester365/maester/blob/main/tests/Maester/Entra/Test-EntraRecommendations.Tests.ps1
Reason: I have a cloud only environment MT.1024: Entra Recommendation - Enable password hash sync if hybrid.
You have disabled password hash sync.
Reason: No license planned MT.1024: Entra Recommendation - Protect all users with a sign-in risk policy. MT.1024: Entra Recommendation - Protect all users with a user risk policy .
You have X of X users that don't have a sign-in risk policy turned on.
Experiment I have set one to "Dismiss recommendation" and another one to "Postpone recommendation" may this could provide me with a workaround on a per-tenant level... --> current state is not taken into account (may also better like this)
I would have a fix, but don't know how to create a pull request (PR), the view is also limited by https://github.com/maester365/maester/issues/411
## Should add
#It "MT.1024: Entra Recommendation - <displayName>. See https://maester.dev/docs/tests/MT.1024" -Tag "MT.1024" {
It "MT.1024: Entra Recommendation - <displayName>. See https://maester.dev/docs/tests/MT.1024" -Tag "MT.1024", $recommendationType {
## May add (Workaround for #411)
#$ResultMarkdown = $insights + $impactedResourcesList + "`n`n#### Remediation actions:`n`n" + $ActionSteps
$ResultMarkdown = $insights + $impactedResourcesList + "`n`n#### Remediation actions:`n`n" + $ActionSteps + "`n`n ExcludeTag: $($recommendationType)"
Thanks for all the fixes @weyCC81!