Moving a VM to another folder
When a VM is being created, it's placed in the current folder.
In Nebius Israel, you can move a VM to another folder within one cloud. You do not have to stop the VM when moving it.
You can learn more about the resource hierarchy in Nebius Israel here.
Limitations
Limitations when moving a VM:
- In Monitoring, metrics are not movable. The metrics in the previous folder stay there and new metrics will already be created in the new folder.
- You can move VMs only within a single cloud.
Moving a VM
To change a VM's folder:
If you don't have the Nebius Israel command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
Get a list of all VMs in the default folder:
yc compute instance list
Result:
+----------------------+-----------------+---------------+---------+----------------------+ | ID | NAME | ZONE ID | STATUS | DESCRIPTION | +----------------------+-----------------+---------------+---------+----------------------+ | fhm0b28lgfp4tkoa3jl6 | first-instance | il1-a | RUNNING | my first vm via CLI | | fhm9gk85nj7gcoji2f8s | second-instance | il1-a | RUNNING | my second vm via CLI | +----------------------+-----------------+---------------+---------+----------------------+
-
Get a list of all folders in the default cloud:
yc resource-manager folder list
Result:
+----------------------+--------------------+------------------+--------+ | ID | NAME | LABELS | STATUS | +----------------------+--------------------+------------------+--------+ | b1gd129pp9ha0vnvf5g7 | my-folder | | ACTIVE | | b1g66mft1vopnevbn57j | default | | ACTIVE | +----------------------+--------------------+------------------+--------+
-
View the description of the CLI command for moving a VM:
yc compute instance move --help
-
Move the VM to another folder with the following parameters:
- In
id
, enter the ID of the VM, for example,fhm0b28lgfp4tkoa3jl6
. - In
destination-folder-id
, enter the ID of the destination folder, for example,b1gd129pp9ha0vnvf5g7
.
yc compute instance move \ --id fhm0b28lgfp4tkoa3jl6 \ --destination-folder-id b1gd129pp9ha0vnvf5g7
For more information about the
yc compute instance move
command, see the CLI reference. - In
Use the move REST API method for the Instance resource or the InstanceService/Move gRPC API call.