共用方式為


VirtualMachineScaleSetOSDisk Constructors

Definition

Overloads

VirtualMachineScaleSetOSDisk()

Initializes a new instance of the VirtualMachineScaleSetOSDisk class.

VirtualMachineScaleSetOSDisk(DiskCreateOptionTypes, String, Nullable<CachingTypes>, Nullable<Boolean>, DiffDiskSettings, Nullable<Int32>, Nullable<OperatingSystemTypes>, VirtualHardDisk, IList<String>, VirtualMachineScaleSetManagedDiskParameters)

Initializes a new instance of the VirtualMachineScaleSetOSDisk class.

VirtualMachineScaleSetOSDisk()

Initializes a new instance of the VirtualMachineScaleSetOSDisk class.

public VirtualMachineScaleSetOSDisk ();
Public Sub New ()

Applies to

VirtualMachineScaleSetOSDisk(DiskCreateOptionTypes, String, Nullable<CachingTypes>, Nullable<Boolean>, DiffDiskSettings, Nullable<Int32>, Nullable<OperatingSystemTypes>, VirtualHardDisk, IList<String>, VirtualMachineScaleSetManagedDiskParameters)

Initializes a new instance of the VirtualMachineScaleSetOSDisk class.

public VirtualMachineScaleSetOSDisk (Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOptionTypes createOption, string name = default, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes? caching = default, bool? writeAcceleratorEnabled = default, Microsoft.Azure.Management.Compute.Fluent.Models.DiffDiskSettings diffDiskSettings = default, int? diskSizeGB = default, Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes? osType = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualHardDisk image = default, System.Collections.Generic.IList<string> vhdContainers = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetManagedDiskParameters managedDisk = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetOSDisk : Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOptionTypes * string * Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes> * Nullable<bool> * Microsoft.Azure.Management.Compute.Fluent.Models.DiffDiskSettings * Nullable<int> * Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes> * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualHardDisk * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetManagedDiskParameters -> Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetOSDisk
Public Sub New (createOption As DiskCreateOptionTypes, Optional name As String = Nothing, Optional caching As Nullable(Of CachingTypes) = Nothing, Optional writeAcceleratorEnabled As Nullable(Of Boolean) = Nothing, Optional diffDiskSettings As DiffDiskSettings = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional osType As Nullable(Of OperatingSystemTypes) = Nothing, Optional image As VirtualHardDisk = Nothing, Optional vhdContainers As IList(Of String) = Nothing, Optional managedDisk As VirtualMachineScaleSetManagedDiskParameters = Nothing)

Parameters

createOption
DiskCreateOptionTypes

Specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: FromImage \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'

name
String

The disk name.

caching
Nullable<CachingTypes>

Specifies the caching requirements. <br><br> Possible values are: <br><br> None <br><br> ReadOnly <br><br> ReadWrite <br><br> Default: None for Standard storage. ReadOnly for Premium storage. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

writeAcceleratorEnabled
Nullable<Boolean>

Specifies whether writeAccelerator should be enabled or disabled on the disk.

diffDiskSettings
DiffDiskSettings

Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.

diskSizeGB
Nullable<Int32>

Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB

osType
Nullable<OperatingSystemTypes>

This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> Windows <br><br> Linux. Possible values include: 'Windows', 'Linux'

image
VirtualHardDisk

Specifies information about the unmanaged user image to base the scale set on.

vhdContainers
IList<String>

Specifies the container urls that are used to store operating system disks for the scale set.

managedDisk
VirtualMachineScaleSetManagedDiskParameters

The managed disk parameters.

Applies to