< Back
Add-GceImage
Post
NAME Add-GceImage
SYNOPSIS
Creates a Google Compute Engine image.
SYNTAX
Add-GceImage [-Project <string>] [-SourceDisk] <Disk> [-Name <string>] [-Family <string>] [-Label <Hashtable>]
[-Description <string>] [<CommonParameters>]
DESCRIPTION
Creates a Google Compute Engine image from the given disk.
PARAMETERS
-Project <string>
The project that will own the image. This defaults to the gcloud config project.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SourceDisk <Disk>
The Disk object that describes the disk to build the image from. You can get this from Get-GceDisk.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <string>
The name of the image to create. This defaults to the name of the disk the image is being created from.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Family <string>
The family this image is part of.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Label <Hashtable>
The map of labels (key/value pairs) to be applied to the image.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <string>
Human readable description of the image.
Required? false
Position? named
Default value
Accept pipeline input? false
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
Google.Apis.Compute.v1.Data.Disk
The Disk object that describes the disk to build the image from. You can get this from Get-GceDisk.
OUTPUTS
Google.Apis.Compute.v1.Data.Image
---------- EXAMPLE 1 ----------
PS C:\\> Get-GceDisk "my-disk" | Add-GceImage -Name "my-image" -Family "my-family"
Creates a new image named "my-image" of the family "my-family" in the default project.
RELATED LINKS
[Image resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)
SYNOPSIS
Creates a Google Compute Engine image.
SYNTAX
Add-GceImage [-Project <string>] [-SourceDisk] <Disk> [-Name <string>] [-Family <string>] [-Label <Hashtable>]
[-Description <string>] [<CommonParameters>]
DESCRIPTION
Creates a Google Compute Engine image from the given disk.
PARAMETERS
-Project <string>
The project that will own the image. This defaults to the gcloud config project.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SourceDisk <Disk>
The Disk object that describes the disk to build the image from. You can get this from Get-GceDisk.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <string>
The name of the image to create. This defaults to the name of the disk the image is being created from.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Family <string>
The family this image is part of.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Label <Hashtable>
The map of labels (key/value pairs) to be applied to the image.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <string>
Human readable description of the image.
Required? false
Position? named
Default value
Accept pipeline input? false
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
Google.Apis.Compute.v1.Data.Disk
The Disk object that describes the disk to build the image from. You can get this from Get-GceDisk.
OUTPUTS
Google.Apis.Compute.v1.Data.Image
---------- EXAMPLE 1 ----------
PS C:\\> Get-GceDisk "my-disk" | Add-GceImage -Name "my-image" -Family "my-family"
Creates a new image named "my-image" of the family "my-family" in the default project.
RELATED LINKS
[Image resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)