Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Compute Cloud
    • All guides
      • Creating an empty disk
      • Creating an empty disk with a large block
      • Creating a non-replicated disk
      • Creating a high-performance SSD
      • Recovering a disk from a snapshot
      • Recovering a disk from an image
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Creating a disk
  3. Recovering a disk from a snapshot

Recovering a disk from a snapshot

Written by
Yandex Cloud
Improved by
Danila N.
Updated at May 5, 2025

Note

You cannot recover a boot disk of an existing VM from a snapshot or image. However, you can create a new VM to recover a boot disk from a snapshot. To recover the boot disk of an existing VM, use Yandex Cloud Backup.

To create a disk from a snapshot:

Management console
CLI
API
  1. In the management console, select the folder where you want to create a disk.

  2. Select Compute Cloud.

  3. In the left-hand panel, select Disks.

  4. Click Create disk.

  5. Enter a name for the disk. Follow these naming requirements:

    • It must be from 2 to 63 characters long.
    • It may contain lowercase Latin letters, numbers, and hyphens.
    • It must start with a letter and cannot end with a hyphen.
  6. Provide a description for the disk, if required.

  7. Select the availability zone the disk will be in.

  8. Set the disk parameters, such as disk type, block size, and disk size.

  9. In the Contents field, select Snapshot and then select the snapshot you need from the list below. Use the filter to find the snapshot.

  10. Optionally, under Encryption:

    • Select Encrypted disk.
    • In the KMS key field, select the key you created earlier. To create a new key, click Create.

    To create an encrypted disk, you need the kms.keys.user role or higher.

    Warning

    You can specify encryption settings only when creating a disk. You cannot disable or change disk encryption. You also cannot enable encryption for an existing disk.

    If you deactivate the key used to encrypt a disk, image, or snapshot, access to the data will be suspended until you reactivate the key.

    Alert

    If you destroy the key or its version used to encrypt a disk, image, or snapshot, access to the data will be irrevocably lost. For details, see Destroying key versions.

  11. Select or set up a schedule for automatically creating disk snapshots, if required. For more information about setting up schedules, see this guide.

    You can create snapshots of network disks and drives, such as HDDs, SSDs, and non-replicated SSDs, as well as ultra high-speed network storages with three replicas (SSD).

    For non-replicated SSDs and ultra high-speed network storages with three replicas (SSD), the snapshot time is not determined.

    To create snapshots of local disks residing on dedicated hosts, use Yandex Cloud Backup. This service supports Ubuntu, CentOS, CentOS Stream, and Windows Server.

    When creating a disk, you can only select a single snapshot schedule. After the disk is created, you can add a few more schedules by following this guide.

  12. Click Create disk.

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

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. See the description of the CLI commands for managing disks and disk snapshots:

    yc compute disk create --help
    yc compute snapshot --help
    
  2. Get a list of snapshots in the default folder:

    yc compute snapshot list
    

    Result:

    +----------------------+----------------------+----------------------+----------+
    |          ID          |         NAME         |     PRODUCT IDS      |  STATUS  |
    +----------------------+----------------------+----------------------+----------+
    | fd84hanhvjql******** | disk-1-1668075122980 | f2ef3frbftr2******** | READY    |
    | fd85mc22cosp******** | disk-2-1669114692462 | f2ef3frbftr2******** | READY    |
    +----------------------+----------------------+----------------------+----------+
    
  3. Select ID or NAME of the snapshot you need.

  4. Create a disk from the selected snapshot:

    yc compute disk create <disk_name> \
      --source-snapshot-name <snapshot_name> \
      --description <text_description_of_disk>
    

    You can use either --source-snapshot-name or --source-snapshot-id to specify the snapshot.

    For more information about the yc compute disk create command, see the CLI reference.

  5. Get a list of disks in the default folder:

    yc compute disk list
    

    Result:

    +----------------------+--------------+-------------+-------------------+--------+----------------------+-----------------+-------------+
    |          ID          |     NAME     |    SIZE     |       ZONE        | STATUS |     INSTANCE IDS     | PLACEMENT GROUP | DESCRIPTION |
    +----------------------+--------------+-------------+-------------------+--------+----------------------+-----------------+-------------+
    | a7lqgbt0bb9s******** | first-disk   | 20401094656 |   ru-central1-a   | READY  | a7lcvu28njbh******** |                 |             |
    | a7lv5j5hm1p1******** | second-disk  | 21474836480 |   ru-central1-a   | READY  |                      |                 |             |
    +----------------------+--------------+-------------+-------------------+--------+----------------------+-----------------+-------------+
    

    Get the same list with more details in YAML format:

    yc compute disk list --format yaml
    

    Result:

    - id: fhm4aq4hvq5g********
        folder_id: b1gm3og7ei7a********
        created_at: "2018-10-29T07:43:06Z"
        name: first-disk
        description: my first disk via yc
        type_id: network-hdd
        zone_id: ru-central1-a
        size: "10737418240"
        status: READY
    - id: fhmo6rdqg5fo********
        folder_id: b1gm3og7ei7a********
        created_at: "2018-10-29T07:33:04Z"
        name: second-disk
        description: my second disk via yc
        type_id: network-hdd
        zone_id: ru-central1-a
        size: "8589934592"
        product_ids:
        - f2en2dtd08b5********
        status: READY
        source_image_id: fdvk34al8k5n********
        instance_ids:
        - fhm5b617fjnj********
    
  1. Get a list of snapshots using the SnapshotService/List gRPC API call or the list REST API method for the Snapshot resource.
  2. Create a disk using the DiskService/Create gRPC API call or the create REST API method for the Disk resource. Specify the snapshot ID in your request.

Once created, the disk will get the CREATING status. Wait until the disk status changes to READY before using it.

See alsoSee also

  • Creating a VM with disks from snapshots
  • Attaching a disk to a VM and mounting partitions
  • Creating a snapshot schedule
  • Encryption in Compute Cloud
  • Yandex Cloud Backup overview

Was the article helpful?

Previous
Creating a high-performance SSD
Next
Recovering a disk from an image
Yandex project
© 2025 Yandex.Cloud LLC