Updating a desktop
Changing an image, data disk size, vCPU, vCPU or RAM share in desktop group settings will trigger the recreation of its desktops.
The system will recreate the boot disk using the image you previously selected for the desktop group. As a result, you will lose the software and updates installed there. These changes will not affect the data disk and user directory though.
To apply changes to a specific desktop, update it.
- In the management console
, select the folder containing the desktop. - Go to Cloud Desktop.
- In the left-hand panel, select
Desktops. - Next to the desktop you want to update, click
and select Update. - Confirm the update.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
-
View the description of the CLI command for updating a desktop:
yc desktops desktop update --help -
Get a list of desktops in the default folder:
yc desktops desktop listResult:
+----------------------+------------------+--------+----------------------+---------------------+ | ID | NAME | STATUS | DESKTOP GROUP ID | CREATED (UTC-0) | +----------------------+------------------+--------+----------------------+---------------------+ | e3vmvhgbgac4******** | my-cloud-desktop | ACTIVE | e3v1rbln45tl******** | 2024-10-09 22:42:28 | | e3vio1bc5ppz******** | reserved-desktop | ACTIVE | e3v9om0ur4rl******** | 2024-10-09 21:35:17 | +----------------------+------------------+--------+----------------------+---------------------+ -
Select the
IDorNAMEof the desktop you need, e.g.,my-cloud-desktop. -
Update the desktop:
yc desktops desktop update --name <desktop_name>Result:
id: e3vmvhgbgac4******** folder_id: b1g681qpemb4******** desktop_group_id: e3v1rbln45tl******** created_at: "2024-10-09T22:42:28.020Z" status: UPDATING name: my-cloud-desktop resources: memory: "4294967296" cores: "2" core_fraction: "100" network_interfaces: - network_id: enp0asmd9pr9******** subnet_id: e2lb1da2dd9v******** users: - subject_id: ajej2i98kcjd********
Once the desktop is updated, reset the user password.