Problem description
When I pass invoke a dsc_xservice resource using below puppet code
**dsc_xservice { $service_item:
dsc_name => $service_setting[dsc_name],
dsc_desktopinteract => $service_setting[dsc_desktopinteract],
dsc_state => $service_setting[dsc_state],
dsc_startuptype => $service_setting[dsc_startuptype],
dsc_credential => {
'user' => "${root_domain}\\${service_setting[dsc_credential][user]}",
'password' => Sensitive($service_user_pw),
},
}**
I get an warning like below
**Provider returned data that does not match the Type Schema for dsc_xservice[SetSqlServerAgentServiceUser]
Value type mismatch:
- dsc_builtinaccount: smartplantcloud\KMT03-DBS-001-SQLAGT (expects an undef value or a match for Enum['LocalService', 'LocalSystem', 'NetworkService', 'localservice', 'localsystem', 'networkservice'], got 'smartplantcloud\KMT03-DBS-001-SQLAGT')**
And the resource is always showing up as a corrective change from running to ignored, this was working with the module puppetlabs-dsc
Verbose logs
DSC configuration
dsc_xservice { $service_item:
dsc_name => $service_setting[dsc_name],
dsc_desktopinteract => $service_setting[dsc_desktopinteract],
dsc_state => $service_setting[dsc_state],
dsc_startuptype => $service_setting[dsc_startuptype],
dsc_credential => {
'user' => "${root_domain}\\${service_setting[dsc_credential][user]}",
'password' => Sensitive($service_user_pw),
},
}
Suggested solution
N/A
Operating system the target node is running
PowerShell version and build the target node is running
xPSDesiredStateConfiguration version
Problem description
When I pass invoke a dsc_xservice resource using below puppet code
I get an warning like below
**Provider returned data that does not match the Type Schema for
dsc_xservice[SetSqlServerAgentServiceUser]Value type mismatch:
And the resource is always showing up as a corrective change from running to ignored, this was working with the module puppetlabs-dsc
Verbose logs
DSC configuration
dsc_xservice { $service_item: dsc_name => $service_setting[dsc_name], dsc_desktopinteract => $service_setting[dsc_desktopinteract], dsc_state => $service_setting[dsc_state], dsc_startuptype => $service_setting[dsc_startuptype], dsc_credential => { 'user' => "${root_domain}\\${service_setting[dsc_credential][user]}", 'password' => Sensitive($service_user_pw), }, }Suggested solution
N/A
Operating system the target node is running
PowerShell version and build the target node is running
xPSDesiredStateConfiguration version