# Start and Stop Order of Virtual Machines in a vApp

## <mark style="color:green;">**Overview**</mark>

* You can configure virtual machines' start and stop orders within your vApp. Configure the start and stop order if you have applications installed in the virtual machines that must start and stop in a particular order.
* These settings are helpful if you need to start and stop your virtual machines in a particular order.

{% hint style="warning" %}
**Attention:** Verify that the vApp is powered off.
{% endhint %}

## <mark style="color:green;">**Procedure**</mark>

{% stepper %}
{% step %}
**Step 1:** On the **Virtual Data Cnter** dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select **vApps**.

<figure><img src="/files/I9Vil2t3fl4UZ0t3CSMm" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 2:** In the vApps page, select **card view.**

{% endstep %}

{% step %}
**Step 3: On** the vApp card, click **Details.**

<figure><img src="/files/ShRyaDYrQgvrKC0ruobP" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 4:** Click the **Start and Stop Order** tab and click **Edit**.

<figure><img src="/files/6LYwp1nwTmRdvFeBFqNA" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 5: Edit** each virtual machine's start and stop order properties and click **OK**.

* ***Start Order**:* Enter the order (0, 1, 2, 3 ...) where you want the virtual machine to start.
* ***Start Action**:* Select **Power On (default)** or **None.**
* ***Start Wait**:* The start wait time is the time (in seconds) you want to wait before VMware Cloud Director starts the next machine in the sequence.
* ***Stop Action**:* Select **Power Off; the** VM powers off without performing shutdow&#x6E;**.** Otherwise, select **Shut Down (**&#x72;equired **VMware tool installed)**, which ensures stability upon shutting down.
* ***Stop Wait**:* The stop wait time is the time (in seconds) you want to wait before VMware Cloud Director shuts down the next virtual machine in the sequence.

<figure><img src="/files/oqVN2Be8IXXxziUs9AuL" alt=""><figcaption></figcaption></figure>

So we can **power off** the vApp. It will automatically start the VMs based on the startup order (The reverse order is used to power them off).
{% endstep %}
{% endstepper %}


---

# 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.higiocloud.vn/compute/2.-working-with-vapp/start-and-stop-order-of-virtual-machines-in-a-vapp.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.
