Closed peppekerstens closed 5 years ago
Thanks for reporting this! It seems there is not a unit test for when the there is not 'RDMS' service available. Only test seems to be when the service is stopped or running. 🤔
sorry for late reaction, holiday. will make an effort though
System info (W2016 Azure VM)
Issue
When calling the 'xRDSessionDeployment' in a 'clean machine', it fails with:
(above info is from loading the resource as function and calling them direct)
The whole thing makes perfect sense, when calling the Get-TargetResource you'll get:
...and indeed; you cannot do a .ToLower() on an empty value...
Looking back in the releases; this code changed since v1.5.0.0 and this bug seems to be there since then.....(ouch?!)
Solution (proposal)
I do not expect this to be fixed as this code already changed/improved in dev branch.. So I also checked that code. This too contains a bug:
The easy fix would be:
But I am unsure why simpler code of earlier versions has expanded to so elaborate one as above... probably the provide better feedback?
Finally
Kind request; as this resource item is main/core functionality of this DSC module and does not seem to work (you cannot not deploy an RDS environment with v1.5.0.0 or above); please push the next release asap..