I have a weird issue with my configuration. I am trying to create RDS environment across 3 servers. My issue is that DSC not accepting value from configuration data. In my configuration data I have both PSDscAllowPlainTextPassword, PSDscAllowDomainUser fields but still I get this issue.
Even If I have both PSDscAllowPlainTextPassword, PSDscAllowDomainUser it is not accepting it.
ConvertTo-MOFInstance : System.InvalidOperationException error processing property ‘PsDscRunAsCredential’ OF TYPE ‘xRDSessionDeployment’: Converting and storing encrypted passwords as plain text is not recommended. For m
ore information on securing credentials in MOF file, please refer to MSDN blog: Securing the MOF File - PowerShell | Microsoft Docs
At C:\RDS2016.ps1:109 char:9
WARNING: It is not recommended to use domain credential for node ‘System.Collections.Hashtable’. In order to suppress the warning, you can add a property named ‘PSDscAllowDomainUser’ with a value of $true to your DSC conf
iguration data for node ‘System.Collections.Hashtable’.
DSC won’t prompt for that, the condition $AllNodes.Where{$_.Role -eq ‘Connection Broker’} does have an output which is a hashtable, it then converts it to a string and will get System.Collections.Hashtable as value and will treat that as a node name. your mof file will get created with this name if you try to execute by commenting the credential part.