v8

latestSwagger 2.0raw.githubusercontent.com2023-06-05132207357.5 KB
VirtualMachines

Attach a new or existing data disk to virtual machine. This operation can take a while to complete.

post/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk

Path parameters

subscriptionIdstring required

The subscription ID.

resourceGroupNamestring required

The name of the resource group.

labNamestring required

The name of the lab.

namestring required

The name of the virtual machine.

Query parameters

api-versionstring required

Client API version.

Request body

existingLabDiskIdstring

Specifies the existing lab disk id to attach to virtual machine.

hostCaching'None' | 'ReadOnly' | 'ReadWrite'

Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).

Response

OK