> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/virtual-machine/get-started/virtual-machine-instance/create-a-data-disk.md).

# Create a Data Disk

## Prerequisite

You can only attach the disk to an instance in the same location.

## Procedures

### Step 1 - Configuration

1. Log in to [**zenConsole**](https://console.zenlayer.com/).
2. Go to **Compute** > **Virtual Machine** > **Data Disk** and click **Create Data Disk**.
3. Choose a pricing model of your data disk.
4. Select an existing instance to attach.\
   You can attach the disk to another instance in the same location at any time after creation.
5. Configure the disk size.\
   The storage space of the data disk ranges from 20 GB to 2000 GB.
6. Configure the quantity.
7. Label your disk to identify.
8. *<mark style="color:green;">(Optional)</mark>* Assign your data disk to a resource group in **More Settings**.

### Step 2 - Check out

For subscription resources, you need to choose a subscription term from 1 to 5 months.

Review order details and apply pro code if you have.

Check resources and price, read and check the permissions, and click **Confirm Order**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/virtual-machine/get-started/virtual-machine-instance/create-a-data-disk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
