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.
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.