Skip to content

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

Open
@o-l-a-v

Description

@o-l-a-v

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions