# Migrating an instance to a different availability zone

{% note info %}

This feature is in the [Preview](../../../overview/concepts/launch-stages.md) stage and can be enabled upon request.

{% endnote %}

VMs with Managed Service for GitLab instances reside in Yandex Cloud [availability zones](../../../overview/concepts/geo-scope.md). To change the availability zone:

1. If you do not yet have a subnet in the target availability zone, [create one](../../../vpc/operations/subnet-create.md).
1. If the [instance security group](../configure-security-group.md) is configured for a subnet in the source availability zone, reconfigure the group for the new subnet. To do so, replace the source subnet CIDR with the new subnet CIDR in the security group rules.
1. Change the instance availability zone:

    {% list tabs group=instructions %}

    - Management console {#console}

        1. Navigate to **Managed Service for&nbsp;GitLab**.
        1. Click the instance name and select the **Migration** tab.
        1. If you do not have access to the migration feature, request it.

            Once your request is approved, you will receive an email notification. To continue, refresh the page in your browser.

        1. Specify the target availability zone and subnet.
        1. Click **Move instance**.

            The instance will start upgrading. Wait for the instance to change its status back to `Running`. This will take a few minutes for a small instance or at least 30 minutes for instances with a disk size of 200 GB or larger. After a few more minutes, the GitLab instance will start. 

        1. To test the instance performance, select the ![image](../../../_assets/console-icons/flag.svg) **Overview** tab and click the link in the **Domain** field.
        1. In the **Migration** tab:

            * If the instance works properly, click **Complete migration**.
            * If the instance is unavailable, click **Cancel migration** to move it back to the initial availability zone or contact [support](https://center.yandex.cloud/support).

    {% endlist %}