< Back

Remove-GceManagedInstanceGroup

Mon Jan 13, 2020 11:38 pm

NAME Remove-GceManagedInstanceGroup



SYNOPSIS

Removes a Google Compute Engine instance group manager.





SYNTAX

Remove-GceManagedInstanceGroup [-Project <string>] [-Zone <string>] [-Name] <string> [<CommonParameters>]



Remove-GceManagedInstanceGroup [-Project <string>] [-Region <string>] [-Name] <string> [<CommonParameters>]



Remove-GceManagedInstanceGroup [-Object] <InstanceGroupManager> [<CommonParameters>]





DESCRIPTION

Removes a Google Compute Engine instance group manager.





PARAMETERS

-Project <string>

The project that owns the managed instance group.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Zone <string>

The zone the managed instance group is in.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Region <string>

The region the regional managed instance group is in.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the managed instance group to delete.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Object <InstanceGroupManager>

The managed instance group object to delete.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

The name of the managed instance group to delete.



Google.Apis.Compute.v1.Data.InstanceGroupManager

The managed instance group object to delete.





OUTPUTS



---------- EXAMPLE 1 ----------



PS C:\\> Remove-GceManagedInstanceGroup "my-instance-group"



Removes the instance group named "my-instance-group" in the default project and zone.

---------- EXAMPLE 2 ----------



PS C:\\> Get-GceManagedInstanceGroup -Zone "us-central1-a" | Remove-GceManagedInstanceGroup



Removes all managed instance groups of the default project in zone "us-central1-a".



RELATED LINKS

[Managed Instance Group resource definition]

(https://cloud.google.com/compute/docs/r ... s#resource)