Skip to content

Running commands locally #39

@casey-robertson

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.

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