Closed bendunne closed 4 years ago
Just ran into this as well. It looks like the xRDServer resource is keyed on Server alone, so no two blocks with the same server are allowed.
I believe the fix for this is to key instead on Server and Role, so you can have as many blocks as there are unique combinations of those two properties. I am testing this out now and will submit a PR if it works.
Details of the scenario you tried and the problem that is occurring
Unable to build MOF to set the RDS-Licensing Role and RDS-Gateway role on the same server,
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Verbose logs showing the problem
Suggested solution to the issue
I suggest that these two configurations shouldn't be conflicting.
The operating system the target node is running
OsName : Microsoft Windows Server 2016 Standard OsOperatingSystemSKU : StandardServerEdition OsArchitecture : 64-bit WindowsBuildLabEx : 14393.3085.amd64fre.rs1_release.190703-1816 OsLanguage : en-GB OsMuiLanguages : {en-GB, en-US}
Version of the DSC module that was used ('dev' if using current dev branch)
Current