GoogleCloudPlatform / google-cloud-powershell

PowerShell cmdlets for the Google Cloud Platform
http://googlecloudplatform.github.io/google-cloud-powershell/
Apache License 2.0
135 stars 61 forks source link

Set-GceManagedInstanceGroup "Resize" parameter set cannot receive input from pipeline #630

Open Cirzen opened 5 years ago

Cirzen commented 5 years ago

The following does not work as might be expected: Get-GceManagedInstanceGroup -Name "MyInstanceGroup" | Set-GceManagedInstanceGroup -Size 6 This results in PowerShell prompting for the mandatory "Name" parameter.

As a possible solution: I think there would need to be an additional parameter set created, "ResizeUri" which could take the SelfLink parameter from the InstanceGroupManager class from the pipeline.