Updating an image
When you update an image, your desktops will be recreated.
The system will recreate the boot disk using the image you previously selected for the desktop group. You will lose the software and updates installed on the boot disk. The data disk will remain the same. The changes will not affect the user directory.
To apply changes to a specific desktop, update it.
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.
-
See the description of the CLI command to update an image:
yc desktops image update --help -
Get a list of images in the default folder:
yc desktops image listResult:
+----------------------+-----------------+--------+---------------------+ | ID | NAME | STATUS | CREATED (UTC-0) | +----------------------+-----------------+--------+---------------------+ | e3vc67qdve8q******** | desktop-image-1 | ACTIVE | 2023-09-13 06:38:12 | | e3vqt6ucp1vr******** | desktop-image-2 | ACTIVE | 2025-02-18 00:00:00 | +----------------------+-----------------+--------+---------------------+ -
Select the image
ID, e.g.,e3vc67qdve8q********. -
Update image parameters, e.g., its name:
yc desktops image update \ --id <image_ID> \ --new-name <new_image_name>Result:
id: e3vc67qdve8q******** folder_id: b1go79qlt1tp******** created_at: "2023-09-13T06:38:12.285Z" status: ACTIVE name: renamed-desktop-image min_disk_size: "64424509440"