< Back
Resize-GceDisk
Post
NAME Resize-GceDisk
SYNOPSIS
Resize a Compute Engine disk object.
SYNTAX
Resize-GceDisk [-Project <string>] [-Zone <string>] [-DiskName] <string> [-NewSizeGb] <long> [<CommonParameters>]
Resize-GceDisk -InputObject <Disk> [-NewSizeGb] <long> [<CommonParameters>]
DESCRIPTION
Resize a Compute Engine disk object.
PARAMETERS
-Project <string>
The project to associate the new Compute Engine disk.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Zone <string>
Specific zone to create the disk in, e.g. "us-central1-a".
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DiskName <string>
Name of the disk.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-InputObject <Disk>
The Disk object that describes the disk to resize.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-NewSizeGb <long>
Specify the new size of the disk in GiB. Must be larger than the current disk size.
Required? true
Position? 1
Default value 0
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 resize.
OUTPUTS
Google.Apis.Compute.v1.Data.Disk
---------- EXAMPLE 1 ----------
PS C:\\> Resize-GceDisk "my-disk" 15
Changes the size of the persistant disk "my-disk" to 15GB.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceDisk "my-disk" | Resize-GceDisk 15
Changes the size of the persistant disk "my-disk" to 15GB.
RELATED LINKS
[Disk resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)
SYNOPSIS
Resize a Compute Engine disk object.
SYNTAX
Resize-GceDisk [-Project <string>] [-Zone <string>] [-DiskName] <string> [-NewSizeGb] <long> [<CommonParameters>]
Resize-GceDisk -InputObject <Disk> [-NewSizeGb] <long> [<CommonParameters>]
DESCRIPTION
Resize a Compute Engine disk object.
PARAMETERS
-Project <string>
The project to associate the new Compute Engine disk.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Zone <string>
Specific zone to create the disk in, e.g. "us-central1-a".
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DiskName <string>
Name of the disk.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-InputObject <Disk>
The Disk object that describes the disk to resize.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-NewSizeGb <long>
Specify the new size of the disk in GiB. Must be larger than the current disk size.
Required? true
Position? 1
Default value 0
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 resize.
OUTPUTS
Google.Apis.Compute.v1.Data.Disk
---------- EXAMPLE 1 ----------
PS C:\\> Resize-GceDisk "my-disk" 15
Changes the size of the persistant disk "my-disk" to 15GB.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceDisk "my-disk" | Resize-GceDisk 15
Changes the size of the persistant disk "my-disk" to 15GB.
RELATED LINKS
[Disk resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)