i want to build a dashboard to get Vcenter and cluster details. i have used UDSelectOption options to manually populate VC details once i select VC in the dropdown it should show cluster details in another Dropdown. but while connection to VC i am getting this Error
Cannot validate argument on parameter 'Server'. The argument is null or empty. Provide an argument that is not null or empty
and then try the command again. Below is the code. when i try to connect via command line using Connect-VIServer -server its connecting but not when i use UD. Kindly help me to reslove this issue.
yes, it was not properly imported because Powercli was not supported in Powershell core thanks for that. now i am getting new error.
The property 'ModuleBase' cannot be found on this object. Verify that the property exists.
Below is the Code i have used now i am using powershell version 5
i have fixed this by importing Powercli module correctly. But the issue is if i enter a VC it should pull all cluster details. its not getting the proper details.
if first time i put vcenter details and click submit it will not load the values when i refresh it will load the values in the drop down list. it should show the values when i put vcenter details and click submit button can any one help me on this