Skip to content

cannot define multiple values for the -Show parameter of the Invoke-DbcCheck function #1036

Open
@michele-tahay-kohera

Description

@michele-tahay-kohera

Bug Report

Since version 3.0.2, I cannot define more than one value for the -Show parameter of Invoke-DbcCheck function.
This worked fine in version 2.0.18.

General Troubleshooting steps

  • Verified running the latest release of dbachecks?

Does (Find-Module dbachecks).Version match (Get-Module dbachecks).Version.ToString()
--> yep, both are 3.0.2

  • Verified errors are not related to permissions?
  • Can duplicate in new/clean PowerShell session (clean = powershell -NoProfile)?

Version Information

  • Operating System (Name|Version):
  • PowerShell Version: 5.1.19041.4522
  • SQL Server (Edition|Version): unrelated, but tried to run a check on sql server standard 2014. Only 1 parameter for -Show succeeds

Steps to Reproduce

<# All of these fail #>
Invoke-DbcCheck -SqlInstance "testserver" -Checks LastBackup -Show @("All,Summary") -Credential $cred
Invoke-DbcCheck -SqlInstance "testserver" -Checks LastBackup -Show "All,Summary" -Credential $cred
Invoke-DbcCheck -SqlInstance "testserver" -Checks LastBackup -Show All,Summary -Credential $cred

<#They work fine individually #>
Invoke-DbcCheck -SqlInstance "testserver" -Checks LastBackup -Show All -Credential $cred
Invoke-DbcCheck -SqlInstance "testserver" -Checks LastBackup -Show Summary -Credential $cred

  • Attach any screenshots (if possible/allowed)
  • [ ]

Image

  • Attach output from PowerShell console (if possible/allowed)

Description of Bug

I would like to be able to pass multiple values to the -Show parameter like I used to do in the previous version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions