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

SPHealthAnalyzerRuleState error when trying to set rule that is not existent #7

Open
NikCharlebois opened this issue Aug 23, 2017 · 0 comments

Comments

@NikCharlebois
Copy link
Contributor

NikCharlebois commented Aug 23, 2017

With SharePointDSC (forward) if you try to set a Health Analyzer Rule that doesn't exist, you get an error. This is problematic for ReverseDSC because some rules only get created when specific Service Application are created in the farm. For example, the Health Analyzer Rule named "Could not find specified Health Analyzer Rule. Health Analyzer Rule settings will not be applied" only gets created when the Word Automation Service Application is instantiated. Therefore, a DependsOn clause should be included whenever that rule is present to ensure it waits for the Service Application to be created first.

The solution for this would be to keep a managed list of all "out-of-the-box" Health Analyzer Rules that are dependent on a specific Service Application and add custom logic to automatically append the DependsOn clauses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant