# Modify a virtual desktop

First, you must stop your current desktop before being able to upgrade/downgrade the instance type associated to your desktop. To do so, click "**Actions**" > "**Virtual Desktop State**" > "**Stop**" your virtual desktop.

{% hint style="info" %}
Stopping a desktop will not cause any data loss.
{% endhint %}

Wait until the state of your desktop is **Stopped**. You can verify that by checking the virtual desktop settings bar:

<figure><img src="/files/qjc77Zqw4P8jMqb9Lw0W" alt=""><figcaption><p>Verify the virtual desktop state by checking the settings bar</p></figcaption></figure>

Once you confirmed your virtual desktop is stopped, click  "**Actions**" > "**Update Session**"

<figure><img src="/files/c34rbrJgpVJQ5wYshZZx" alt=""><figcaption><p>Update Session will let you change the EC2 hardware and session name</p></figcaption></figure>

You will have the possibility to update the session name or the virtual desktop size. To upgrade/downgrade, simply select the new instance type you want to use (in this example, we will upgrade from g4dn.xlarge to g4dn.2xlarge)

<figure><img src="/files/iD84AdfhY5pd0InxQ13R" alt=""><figcaption><p>You can change the size of your virtual desktop or its session name</p></figcaption></figure>

{% hint style="info" %}
&#x20;You can verify what instance type is used by your virtual desktop by checking the desktop setting bar

![](/files/rkIApTYJMbdWj6yqfbzj)
{% endhint %}

Once your instance is updated, restart your desktop by clicking "**Actions**" > "**Virtual Desktop State**" > "**Start**"**.** You virtual desktop will now use the updated EC2 hardware.

##


---

# Agent Instructions: 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:

```
GET https://docs.ide-on-aws.com/virtual-desktop-interface/user-documentation/modify-a-virtual-desktop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
