Show / Hide Table of Contents

    Class ImageDataDisk

    Describes a data disk.

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

    Constructors

    ImageDataDisk()

    Initializes a new instance of the ImageDataDisk class.

    Declaration
    public ImageDataDisk ();

    ImageDataDisk(Int32, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, String)

    Initializes a new instance of the ImageDataDisk class.

    Declaration
    public ImageDataDisk (int lun, Microsoft.Azure.Management.Compute.Models.SubResource snapshot = null, Microsoft.Azure.Management.Compute.Models.SubResource managedDisk = null, string blobUri = null, Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> caching = null, Nullable<int> diskSizeGB = null, string storageAccountType = 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.

    SubResource snapshot

    The snapshot.

    SubResource managedDisk

    The managedDisk.

    String blobUri

    The Virtual Hard Disk.

    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<Int32> diskSizeGB

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

    String storageAccountType

    Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'

    Properties

    BlobUri

    Gets or sets the Virtual Hard Disk.

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

    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>

    DiskSizeGB

    Gets or sets specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name 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 managedDisk.

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

    Snapshot

    Gets or sets the snapshot.

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

    StorageAccountType

    Gets or sets specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'

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

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net