So, this is really not PowerCLI directly, but I thought someone might have already had a solution for this.
I'm looking to have a single form with 3 input fields where input1 filters input2 and input2 filters input3. For example:
User input1: type in vcenter URL (then do a read only login behind the scenes)
Input2: shows list of clusters in vcenter of input1
Input3: shows list of hosts in cluster chosen in input2
I currently have it popping up a window for each input, but trying to simplify it for end users:
Add-Type -AssemblyName Microsoft.VisualBasic
$vc = [Microsoft.VisualBasic.Interaction]::InputBox("Enter the FQDN of the vcenter you want to standardize hosts.", "vCenter")
connect-viserver -server $vc -Credential $cred
$cluster = Get-Cluster | sort | Out-GridView -Title "Select the Cluster to standardize." -OutputMode Single
$host = $cluster | Get-VMHost | sort | Out-GridView -Title "Select the Host to standardize." -OutputMode Single
Is there any pwershell form building that allows this without diving deep into .NET form building?