Dela via


IUpdate.WithOSDiskSizeInGB(Int32) Method

Definition

Specifies the size of the OS disk in GB. Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate WithOSDiskSizeInGB (int size);
abstract member WithOSDiskSizeInGB : int -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate
Public Function WithOSDiskSizeInGB (size As Integer) As IUpdate

Parameters

size
Int32

A disk size.

Returns

Applies to