---
title: "Attach Data Disk to Stateful Node"
method: PUT
path: "/azure/compute/statefulNode/{nodeId}/dataDisk/attach"
tags: ["Elastigroup Azure Stateful"]
---

# Attach Data Disk to Stateful Node

`PUT /azure/compute/statefulNode/{nodeId}/dataDisk/attach`

Create a new data disk and attaches it to the stateful node.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref
- `#/paths/~1azure~1compute~1statefulNode~1%7BnodeId%7D/get/parameters/1` — unresolved $ref

## Request body

- object
  - `dataDiskName` string, required — The name of the created data disk.
  - `dataDiskResourceGroupName` string, required — The resource group name in which the data disk will be created.
  - `sizeGB` integer, required — The size of the data disk in GB, Required if dataDisks is specified.
  - `lun` integer — The LUN of the data disk. If not defined, the LUN will be set in order.
  - `storageAccountType` 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS' | 'StandardSSD_ZRS' | 'Premium_ZRS' | 'PremiumV2_LRS', required — The type of the data disk.
  - `zone` '1' | '2' | '3' — The Availability Zone in which the data disk will be created. If not defined, the data disk will be created regionally.
  - `caching` 'None' | 'ReadOnly' | 'ReadWrite' — Specifies the host caching requirements. With disk caching enabled, VMs can achieve higher levels of performance. * If not specified, the Azure default behavior will be applied.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
