PSResourceGet
PSResourceGet copied to clipboard
`Install-PSResource -WhatIf` with >= 1 `-Name` exits after one resource
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest released version
- [X] Search the existing issues.
Steps to reproduce
If doing Install-PSResource -WhatIf with multiple -Name the output stops after it's finished with just the 1st specified resource.
Expected behavior
PS > Install-PSResource -Repository 'PSGallery' -TrustRepository -Scope 'CurrentUser' `
-Name 'Az.Accounts', 'Az.KeyVault' -SkipDependencyCheck -WhatIf
What if: Performing the operation "Install-PSResource" on target "Package to install: 'Az.Accounts', version: '4.0.0'".
What if: Performing the operation "Install-PSResource" on target "Package to install: 'Az.KeyVault', version: '6.3.0'".
PS >
Actual behavior
PS > Install-PSResource -Repository 'PSGallery' -TrustRepository -Scope 'CurrentUser' `
-Name 'Az.Accounts', 'Az.KeyVault' -SkipDependencyCheck -WhatIf
What if: Performing the operation "Install-PSResource" on target "Package to install: 'Az.Accounts', version: '4.0.0'".
PS >
Error details
No errors.
Environment data
- Microsoft.PowerShell.PSResourceGet v1.1.0
- PowerShell v7.5.6 x64 Windows