Skip to content

In dsc_xservice while specifying the runsAsAccount thorough dsc_credentials getting warning about dsc_builtinaccount. #759

@ShubhamKumar977

Description

@ShubhamKumar977

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

N/A

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

N/A

PowerShell version and build the target node is running

N/A

xPSDesiredStateConfiguration version

9.1.0-0-4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions