共用方式為


VirtualMachineDataDiskUpdateParameters Class

Definition

Parameters supplied to the Update Virtual Machine Data Disk operation.

public class VirtualMachineDataDiskUpdateParameters
type VirtualMachineDataDiskUpdateParameters = class
Public Class VirtualMachineDataDiskUpdateParameters
Inheritance
VirtualMachineDataDiskUpdateParameters

Constructors

VirtualMachineDataDiskUpdateParameters()

Initializes a new instance of the VirtualMachineDataDiskUpdateParameters class.

VirtualMachineDataDiskUpdateParameters(String, Uri)

Initializes a new instance of the VirtualMachineDataDiskUpdateParameters class with required arguments.

Properties

HostCaching

Required. Specifies the platform caching behavior of data disk blob for read/write efficiency. The default vault is ReadOnly. Possible values are: None, ReadOnly, or ReadWrite. Warning: Setting this property impacts the consistency of the disk.

Label

Optional. Specifies the description of the data disk. When you attach a disk, either by directly referencing a media using the MediaLink element or specifying the target disk size, you can use the DiskLabel element to customize the name property of the target data disk.

LogicalDiskSizeInGB

Optional. Specifies the size, in GB, of an empty disk to be attached to the role. The disk can be created as part of disk attach or create VM role call by specifying the value for this property. Azure creates the empty disk based on size preference and attaches the newly created disk to the Role.

LogicalUnitNumber

Optional. Specifies the Logical Unit Number (LUN) for the disk. The LUN specifies the slot in which the data drive appears when mounted for usage by the virtual machine. Valid LUN values are 0 through 15.

MediaLinkUri

Required. Specifies the location of the blob in Azure blob store where the media for the disk is located. The blob location must belong to the storage account in the subscription specified by the SubscriptionId value in the operation call. Example: http://example.blob.core.windows.net/disks/mydisk.vhd.

Name

Optional. Specifies the name of the disk. Azure uses the specified disk to create the data disk for the machine and populates this field with the disk name.

Applies to