Skip to content

Uninstall-PSResource: • Uninstall is not checking for dependencies (for Az modules) #760

Description

Summary of the new feature / enhancement

• Uninstall is not checking for dependencies – Here is a repro. Note that Az.Accounts is removed instead of throwing an error.

PS> Install-PSResource Az.Billing -Repository PSGallery -Reinstall -PassThru

Name Version Prerelease Repository Description


Az.Billing 2.0.0.0 PSGallery Microsoft Azure PowerShell - Billing service cmdlets for Azure Resource Mana…
Az.Accounts 2.9.1.0 PSGallery Microsoft Azure PowerShell - Accounts credential management cmdlets for Azur…

PS> Uninstall-PSResource Az.Accounts
PS> gmo az.* -list

Directory: C:\Users\sewhee\Documents\PowerShell\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands


Script 2.0.0 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPer…

Proposed technical implementation details (optional)

No response

Activity

  1. kilasuit commented on Aug 15, 2022

    @kilasuit

    I think here the ask would boil down to the Uninstall-PSResource cmdlet to look up all other modules on the system that may have a dependency on any of the dependencies of the module to be uninstalled and then determine whether or not those dependencies can also be removed safely or not.

  2. Viajaz commented on Jan 19, 2023

    @Viajaz

    Does this relate to #665?

  3. alerickson commented on Jan 19, 2023

    @alerickson
    Member

    Viajaz very likely! Thanks for linking the two issues

  4. changed the title [-]Uninstall-PSResource: • Uninstall is not checking for dependencies[/-] [+]Uninstall-PSResource: • Uninstall is not checking for dependencies (for Az modules)[/+] on May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions