Conflicting Values When Applying SQLServer STIG to Multiple Instances #1299
Open
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
- Create an array variable of instances (i.e., $SQLServerInstrance = @('localhost\ABC', 'localhost\XYZ')
- Apply SQLServer Baseline to each element in the array (foreach)
- See error
Expected behavior
No value conflict.
Screenshots
Workaround
Apply the full SQLServer STIG to only 1 instance and skip the problem rule (V-213967) for the remainder: