vmware / powershell-module-for-vmware-cloud-foundation-password-management

PowerShell Module for VMware Cloud Foundation Password Management
https://vmware.github.io/powershell-module-for-vmware-cloud-foundation-password-management/
BSD 2-Clause "Simplified" License
11 stars 9 forks source link

Add `VMware.PowerCLI` module name to `requiredModules` #169

Closed sowjuec closed 6 months ago

sowjuec commented 6 months ago

Code of Conduct

VMware Cloud Foundation

5.1

PowerShell Version

Windows Powershell 7.3.4

PowerCLI Version

13.1

Module Version

1.7.1

PowerValidatedSolutions Version

2.9.0

PowerVCF Version

2.4.1

Guest Operating System

Windows Server 2019

Environment Details

NA

Description

The manifest file [VMware.CloudFoundation.PasswordManagement.psd1] holds the list of required modules for the functioning of password management module. It lists out "PowerVCF", "PowerValidatatedSolutions", "VMware.vsphere.ssoadmin", but there is one more module to be listed, that is "VMware.PowerCLI". This was caught during CD/CI run where all modules listed in the manifest file will be automatically loaded. Since this was not loaded, one of the powercli commandlet failed and test execution didn't continue.

Error or Debug Output

Set-PowerCLIConfiguration is not a valid cmdlet

Expected Behavior

Set-PowerCLIConfiguration should be executed successfully

Actual Behavior

Set-PowerCLIConfiguration is not a valid cmdlet

Steps to Reproduce

Run PPM.Tests.ps1 file which is a pester file under tests folder without installing VMware.PowerCLI module

Log Fragments and Files

No response

Screenshots

No response

References

No response

github-actions[bot] commented 5 months ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.