Skip to content

Conflicting Values When Applying SQLServer STIG to Multiple Instances #1299

Open
@kevinpagliarulo

Description

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)

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions