< Back

Start-GceInstance

Mon Jan 13, 2020 11:54 pm

NAME Start-GceInstance



SYNOPSIS

Starts a Google Compute Engine VM instance.





SYNTAX

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



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





DESCRIPTION

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



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Object <Instance>

The instance object to start.



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



Google.Apis.Compute.v1.Data.Instance

The instance object to start.





OUTPUTS

Google.Apis.Compute.v1.Data.Instance





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



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



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

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



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

where Status -eq Stopped |

Start-GceInstance



Starts all instances in project "my-project" that are currently stopped.



RELATED LINKS

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