Skip to content
This repository was archived by the owner on Jan 3, 2026. It is now read-only.
This repository was archived by the owner on Jan 3, 2026. It is now read-only.

Running commands locally #39

Description

@casey-robertson

Just trying to test this out and it's not going well. Folder from dev branch has been cloned to C:\Windows\System32\WindowsPowerShell\v1.0\Modules\ServiceBusForWindowsServerDsc

if I run the following:
$RunAsAccount = 'Administrator'
$SBFarmDBConnectionStringDataSource = 'localhost'

$result = Invoke-DscResource -Name SBFarm -Method Test -ModuleName ServiceBusForWindowsServerDsc -Property @{

                                            RunAsAccount=$RunAsAccount;
                                            SBFarmDBConnectionStringDataSource=$SBFarmDBConnectionStringDataSource } -Verbose
        $result | fl * 

I get:

Invoke-DscResource : Failed to create an object of PowerShell class SBFarm.
At line:1 char:11

  • $result = Invoke-DscResource -Name SBFarm -Method Test -ModuleName Se ...
  •       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager:String) [Invoke-DscResource], CimEx
      ception
    • FullyQualifiedErrorId : InstantiatePSClassObjectFailed,Microsoft.PowerShell.DesiredStateConfiguration.Commands.I
      nvokeDscResourceMethodCommand

Ideas? I'm going to attempt to leverage DSC via Chef but to test it out I just wanted to get it running in a local context. Not sure what I'm doing wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions