rubrikinc / rubrik-powershell-sdk

The Rubrik Security Cloud SDK
https://www.powershellgallery.com/packages/RubrikSecurityCloud
MIT License
7 stars 9 forks source link

Update-Module Doesn't Correctly/Completely Upgrade From Previous Versions #92

Open IamTHEvilONE opened 3 months ago

IamTHEvilONE commented 3 months ago

I've had to do the same thing when upgrading from 1.1 to 1.2, and subsequently 1.2 to 1.3.

running update-Module -Name RubrikSecurityCloud, the newer module doesn't seem to import automatically/correctly.

get-module -ListAvailable | grep -i Rub Script 9.0.0 Rubrik Desk {Connect-Rubrik, Disconnect-Rubrik, Export-RubrikDatabase, Export-RubrikReport…} Script 1.3 RubrikSecurityCloud Desk Script 1.2 RubrikSecurityCloud Desk {New-RscMutationFailoverCluster, New-RscMutationVmware, New-RscMutationMisc, New-RscMutationReport…}

If I manually import-module, it didn't seem to self resolve while 1.2. The workaround I've used is to remove the old modules (due to dependency) and then installing and importing again. Image below for the entire session to upgrade and get it running correctly.

image

Is there something to fix/improve here?