> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments/deploying-the-configuration-for-a-virtual-environment.md).

# Deploying the configuration for a virtual environment

Having configured all required [replacements](/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/configuring-virtual-environment-replacements.md) in your `draft` virtual environment version, it should be deployed. Deploying a `draft` virtual environment means that its [configured replacements](/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/configuring-virtual-environment-replacements.md) are applied when associated process flows run.

{% hint style="info" %}
The steps detailed on this page show how to deploy a single process flow. If you need to deploy multiple process flows, consider using [packages](/product-documentation/virtual-environments/virtual-environment-packages.md) for greater efficiency.
{% endhint %}

## Need to know

* When process flows run in a virtual environment, [configured replacements](/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/configuring-virtual-environment-replacements.md) are applied from the current `deployed` virtual environment version.
* When a `draft` virtual environment version is deployed, a new `draft` version is created (based on the previous one), ready for [future updates](/product-documentation/virtual-environments/managing-virtual-environments-versions-and-flows/managing-virtual-environment-flow-deployments/updating-the-process-flow-version-deployed-in-a-virtual-environment.md).
* When a `draft` virtual environment version is deployed, it becomes available for selection when [testing a process flow against virtual environments](/product-documentation/virtual-environments/implementing-virtual-environments/testing-a-process-flow-against-a-virtual-environment.md).
* When a `draft` virtual environment version is deployed, it becomes available for selection when [deploying process flows to virtual environments](/product-documentation/virtual-environments/implementing-virtual-environments/deploying-a-single-process-flow-to-a-virtual-environment.md).

## The steps

{% stepper %}
{% step %}
**Access the required virtual environment**

If you're not already working in the required virtual environment, [log in to the dashboard](https://app.wearepatchworks.com/virtual-environments) and select `virtual environments` | `overview` from the left-hand navigation menu, then select the environment to update.
{% endstep %}

{% step %}
**Access options for the required version**

Move down to the [configuration versions](/product-documentation/virtual-environments/accessing-virtual-environments/the-anatomy-of-a-virtual-environment.md#available-information-and-options) panel and select the ellipsis associated with the `draft` version - for example:

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

{% hint style="info" %}
Over time, the number of virtual environment versions displayed here will change. Typically, you will deploy the current `draft` version, but if required, you can deploy an `inactive` version using the same steps detailed here. For more information about virtual environment versions please refer to [Understanding virtual environment versions](/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/understanding-virtual-environment-versions.md).
{% endhint %}
{% endstep %}

{% step %}
**Deploy the selected version**

Select the `deploy` option - for example:

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

{% step %}
**Test process flows against this environment**

The `draft` version becomes deployed and a new `draft` is created - for example:

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

You can now go on to test your master process flows(s) against this environment.
{% endstep %}
{% endstepper %}
