Share via


VirtualMachineConfiguration.DataDisks Property

Definition

Gets or sets the configuration for data disks attached to the Compute Nodes in the Pool.

[Newtonsoft.Json.JsonProperty(PropertyName="dataDisks")]
public System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.DataDisk> DataDisks { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="dataDisks")>]
member this.DataDisks : System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.DataDisk> with get, set
Public Property DataDisks As IList(Of DataDisk)

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

This property must be specified if the Compute Nodes in the Pool need to have empty data disks attached to them. This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine.

Applies to