SeeminglyScience / EditorServicesCommandSuite

Collection of editor commands for use in PowerShell Editor Services.
Other
151 stars 13 forks source link

ConvertTo-SplatExpression: not including all properties #44

Closed spaelling closed 4 years ago

spaelling commented 4 years ago

ConvertTo-SplatExpression does not include all properties in below code, only the first 3 are included

New-AzResourceGroupDeployment -Name 'DeploySolutions' -TemplateFile 'InstallSolutionsForVMInsights.json' -ResourceGroupName $ResourceGroupName -WorkspaceName $WorkspaceName -WorkspaceLocation $WorkspaceLocation

results in

    $newAzResourceGroupDeploymentSplat = @{
        TemplateFile = 'InstallSolutionsForVMInsights.json'
        Name = 'DeploySolutions'
        ResourceGroupName = $ResourceGroupName
    }
    New-AzResourceGroupDeployment @newAzResourceGroupDeploymentSplat

changing the order of parameters makes no difference or nothing happens.

SeeminglyScience commented 4 years ago

Fixed with v1.0.0-beta1

Install-Module EditorServicesCommandSuite -Scope CurrentUser -AllowPrerelease -Force