# Attach VM Data Disk

> Attach VM Data Disk activity that attaches an existing data disk to the specified virtual machine in Azure.

`UiPath.Azure.Activities.AttachVMDataDisk`

## Description

Attaches an existing data disk to the specified virtual machine.

## Project compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Common

* **DisplayName** - The display name of the activity.

### Input

* **DataDisk** - Specifies the data disk that needs to be attached.
* **HostCaching** - Specifies the option for the host caching. The possible values are **None**, **ReadOnly**, **ReadWrite**, and **FromDataDisk**. The default value is **FromDataDisk**.
* **LogicalUnitNumber** - Specifies the index of the data disk.
* **VirtualMachine** - Specifies the virtual machine used for this operation.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
