Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Release of Get-M365DSCEvaluationRulesForConfiguration #4440

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

andikrueger
Copy link
Collaborator

Pull Request (PR) description

This function will add an easy option to get all M365DSCRuleEvaluationRules for an existing configuration. This will help to tackle down not tracked objects for existing resources of M365DSC.

For a given configuration it will generate the required blocks - The following example is based on a config with 3 AADConditionalAccessPolicy

M365DSCRuleEvaluation 'AADConditionalAccessPolicy'                                                                                                           
    {
        ResourceName            = 'AADConditionalAccessPolicy'
        RuleDefinition          = "*"
        AfterRuleCountQuery     = "-eq 3"
        Credential              = $CredsCredential
    }

@NikCharlebois NikCharlebois merged commit 4e3065c into microsoft:Dev Mar 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants