Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Compute Cloud
    • You are unable to add a committed volume of services (CVoS) for Compute Cloud
    • Resolving the `Permission denied` error when connecting to a VM created with Terraform
    • Nested virtualization is not supported
    • Fixing the "Not enough resources" error on launching a virtual machine
    • Recovering access to a VM with a lost SSH key
    • Resolving issues with creating disk snapshots
    • Boot disk size failed to increase
    • VM shuts down on the `Instance guest stop processing` operation
    • Resolving the `WARNING REMOTE HOST IDENTIFICATION HAS CHANGED` error
    • Fixing a non-replicated disk failure
    • Resolving connection issues with Kosmos VM
    • Resolving password reset issues for VMs based on a Kosmos image
    • Resolving the `The limit on maximum number of cores has exceeded` error
    • CUDA unavailable on GPU platform
    • Resolving issues with performance of disk and network input/output on a VM
    • Resolving the `FAILED_PRECONDITION Relocation to zone `ru-central1-a/b/c` is disabled` error
    • Options to migrate a VM image to Yandex Cloud
    • How to change a boot disk type for a VM
    • How to get details about RAM consumption for Compute Cloud VMs
    • How to create VMs with multiple network interfaces
    • How to reduce the VM disk size
    • How to export Compute Cloud VM disk images
    • How to move a VM across folders or clouds
    • How to set up GUI and graphical environment on VMs running Linux
    • How to use an ISO image for deploying VMs
    • How to view incoming or outgoing traffic logs for a VM
    • How to use WinSCP to connect to a Linux VM in Yandex Cloud with a key generated on VM creation
    • How to back up a VM with rollback support
    • How to connect over SSH as root with `-X` or key
    • How to monitor memory usage
    • How to change an internal IP address
    • How to read the `Connections quota utilization` chart
    • How to check the disk access speed for a VM
    • How to create a VM instance with password access
    • How to increase the number of network connections
    • How to secure RDP connections on Microsoft Windows®

In this article:

  • Case description
  • Solution
  1. Compute Cloud
  2. How to move a VM across folders or clouds

How to move a VM across folders or clouds

Written by
Yandex Cloud
Updated at December 17, 2025
  • Case description
  • Solution

Case descriptionCase description

You need to move a VM from one cloud or folder to another.

SolutionSolution

Moving across clouds
Moving across folders

To move a VM across clouds, complete the following steps:

  1. Create an image from the disk of the required VM.

  2. Add an IAM user to the cloud with the image you want to transfer.

  3. Assign the IAM user the minimum required roles: resource-manager.clouds.member and compute.images.user.

  4. Set up YC CLI for the user in the target cloud.

  5. Get the ID of your image. To do this, in the management console, find the ID field on the Images tab. Alternatively, you can get the ID by running this YC CLI command: yc compute image list.

  6. Get the ID of the cloud where the original image is located. To do this, in the management console, find the ID field. Alternatively, you can get the ID by running this YC CLI command: yc resource-manager cloud list.

  7. With your YC CLI, create a new image in the target cloud:

    yc compute image create --name <new_image_name> \
    --source-image-id <original_image_ID> \
    --cloud-id <original_image_home_cloud_ID>
    

After performing these actions, create a new VM from the image you got.

To change a VM folder, follow these steps in your CLI:

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. Get a list of all VMs in the default folder:

    yc compute instance list
    

    Result:

    +----------------------+-----------------+--------------------+---------+----------------------+
    |          ID          |       NAME      |       ZONE ID      | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+--------------------+---------+----------------------+
    | fhm***************** | first-instance  | ru-central1-a  | RUNNING | my first vm via CLI  |
    | fhm***************** | second-instance | ru-central1-a  | RUNNING | my second vm via CLI |
    +----------------------+-----------------+--------------------+---------+----------------------+
    
  2. Get a list of all folders in the default cloud:

    yc resource-manager folder list
    

    Result:

    +----------------------+--------------------+------------------+--------+
    |          ID          |        NAME        |      LABELS      | STATUS |
    +----------------------+--------------------+------------------+--------+
    | b1g***************** | my-folder          |                  | ACTIVE |
    | b1g***************** | default            |                  | ACTIVE |
    +----------------------+--------------------+------------------+--------+
    
  3. See the description of the CLI command for moving a VM:

    yc compute instance move --help
    
  4. Move the VM to a different folder by specifying the following values:

    • In id, enter the VM ID, e.g., fhm*****************.
    • In destination-folder-id, specify the destination folder ID, e.g., b1g*****************.
    yc compute instance move \
        --id fhm***************** \
        --destination-folder-id b1g*****************
    

    For more information about yc compute instance move, see the CLI reference.

Was the article helpful?

Previous
How to export Compute Cloud VM disk images
Next
How to set up GUI and graphical environment on VMs running Linux
© 2026 Direct Cursus Technology L.L.C.