Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install-PSResource -WhatIf with >= 1 -Name exits after one resource #1774

Open
3 tasks done
o-l-a-v opened this issue Jan 13, 2025 · 0 comments
Open
3 tasks done

Install-PSResource -WhatIf with >= 1 -Name exits after one resource #1774

o-l-a-v opened this issue Jan 13, 2025 · 0 comments

Comments

@o-l-a-v
Copy link
Contributor

o-l-a-v commented Jan 13, 2025

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • 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

Visuals

image
@o-l-a-v o-l-a-v changed the title Install-PSResource -WhatIf with >= 1 -Name it exits after one resource Install-PSResource -WhatIf with >= 1 -Name exits after one resource Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant