< Back

Restart-GceInstance

Mon Jan 13, 2020 11:47 pm

NAME Restart-GceInstance



SYNOPSIS

Resets a Google Compute Engine VM instance.





SYNTAX

Restart-GceInstance [-Project <string>] [-Zone <string>] [-Name] <string> [<CommonParameters>]



Restart-GceInstance [-Object] <Instance> [<CommonParameters>]





DESCRIPTION

Resets a Google Compute Engine VM instance.





PARAMETERS

-Project <string>

The project that owns the instances.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Zone <string>

The zone in which the instance resides.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the instance to reset.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Object <Instance>

The instance object to restart.



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 instance to reset.



Google.Apis.Compute.v1.Data.Instance

The instance object to restart.





OUTPUTS

Google.Apis.Compute.v1.Data.Instance





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



PS C:\\> Reset-GceInstance "my-instance"



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

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



PS C:\\> Get-GceInstance -Project "my-project"|

Reset-GceInstance



Removes all instances in project "my-project".



RELATED LINKS

[Instance resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)