Description
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)
- [ ]
- 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.