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

Conflicting Values When Applying SQLServer STIG to Multiple Instances #1299

Open
kevinpagliarulo opened this issue Dec 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kevinpagliarulo
Copy link

Describe the bug

When applying SQLServer STIG to multiple SQL server instances an error occurs:

"The resources ('[Registry][V-213967.a][high][SRG-APP-000172-DB-000075]::[SQLServer]localhost\ABC' and '[Registry][V-213967.a][high][SRG-APP-000172-DB-000075]::[SQLServer]localhost\ABC') have conflicting values of the following properties: 'ValueData'. Ensure that their values match."

In this case, the resources were created in a foreach loop with unique resource names.

To Reproduce

  1. Create an array variable of instances (i.e., $SQLServerInstrance = @('localhost\ABC', 'localhost\XYZ')
  2. Apply SQLServer Baseline to each element in the array (foreach)
  3. See error

Expected behavior

No value conflict.

Screenshots

image

image (1)

Workaround

Apply the full SQLServer STIG to only 1 instance and skip the problem rule (V-213967) for the remainder:

image (3)

@erjenkin erjenkin added the bug Something isn't working label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants