v8

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

Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.

post/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/attach

Path parameters

subscriptionIdstring required

The subscription ID.

resourceGroupNamestring required

The name of the resource group.

labNamestring required

The name of the lab.

userNamestring required

The name of the user profile.

namestring required

The name of the disk.

Query parameters

api-versionstring required

Client API version.

Request body

leasedByLabVmIdstring

The resource ID of the Lab virtual machine to which the disk is attached.

Response

OK