Show / Hide Table of Contents

    Class VirtualMachineScaleSetDataDisk

    Describes a virtual machine scale set data disk.

    Inheritance
    Object
    VirtualMachineScaleSetDataDisk
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    public class VirtualMachineScaleSetDataDisk

    Constructors

    VirtualMachineScaleSetDataDisk()

    Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

    Declaration
    public VirtualMachineScaleSetDataDisk ();

    VirtualMachineScaleSetDataDisk(Int32, String, String, Nullable<CachingTypes>, Nullable<Boolean>, Nullable<Int32>, VirtualMachineScaleSetManagedDiskParameters)

    Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

    Declaration
    public VirtualMachineScaleSetDataDisk (int lun, string createOption, string name = null, Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> caching = null, Nullable<bool> writeAcceleratorEnabled = null, Nullable<int> diskSizeGB = null, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetManagedDiskParameters managedDisk = null);
    Parameters
    Int32 lun

    Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.

    String createOption

    The create option. Possible values include: 'FromImage', 'Empty', 'Attach'

    String name

    The disk name.

    Nullable<CachingTypes> caching

    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'

    Nullable<Boolean> writeAcceleratorEnabled

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

    Nullable<Int32> diskSizeGB

    Specifies the size of an empty data 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

    VirtualMachineScaleSetManagedDiskParameters managedDisk

    The managed disk parameters.

    Properties

    Caching

    Gets or sets specifies the caching requirements. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; None &lt;br&gt;&lt;br&gt; ReadOnly &lt;br&gt;&lt;br&gt; ReadWrite &lt;br&gt;&lt;br&gt; Default: None for Standard storage. ReadOnly for Premium storage. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="caching")]
    public Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> Caching { get; set; }
    Property Value
    Nullable<CachingTypes>

    CreateOption

    Gets or sets the create option. Possible values include: 'FromImage', 'Empty', 'Attach'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="createOption")]
    public string CreateOption { get; set; }
    Property Value
    String

    DiskSizeGB

    Gets or sets specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. &lt;br&gt;&lt;br&gt; This value cannot be larger than 1023 GB

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="diskSizeGB")]
    public Nullable<int> DiskSizeGB { get; set; }
    Property Value
    Nullable<Int32>

    Lun

    Gets or sets specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="lun")]
    public int Lun { get; set; }
    Property Value
    Int32

    ManagedDisk

    Gets or sets the managed disk parameters.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="managedDisk")]
    public Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetManagedDiskParameters ManagedDisk { get; set; }
    Property Value
    VirtualMachineScaleSetManagedDiskParameters

    Name

    Gets or sets the disk name.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="name")]
    public string Name { get; set; }
    Property Value
    String

    WriteAcceleratorEnabled

    Gets or sets specifies whether writeAccelerator should be enabled or disabled on the disk.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="writeAcceleratorEnabled")]
    public Nullable<bool> WriteAcceleratorEnabled { get; set; }
    Property Value
    Nullable<Boolean>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net