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
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Backup
  • Getting started
    • All guides
    • Activating the service
      • Creating a policy
      • Updating a policy
      • Linking a VM or BareMetal server to a policy
      • Getting information about a policy
      • Unlinking a VM or BareMetal server from a policy
      • Deleting a policy
    • Viewing operations with resources
    • Viewing backup statistics
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting
  1. Step-by-step guides
  2. Backup policies
  3. Unlinking a VM or BareMetal server from a policy

Unlinking a VM or Yandex BareMetal server from a backup policy

Written by
Yandex Cloud
Updated at May 5, 2025

BareMetal is at the Preview stage.

To unlink a VM or BareMetal server from a backup policy:

Management console
CLI
API
  1. In the management console, select a folder where you want to unlink a VM or BareMetal server from a backup policy.
  2. From the list of services, select Cloud Backup.
  3. Navigate to the Backup policies tab.
  4. Select the backup policy to unlink a VM or BareMetal server from.
  5. Depending on the resource you want to unlink from the backup policy, under Attached resources, select the Virtual machines or BareMetal servers tab.
  6. In the row with the VM or BareMetal server you want to unlink from the backup policy, click and select Detach VM from policy or Detach server from policy, respectively.
  7. In the window that opens, confirm this action.

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. View the description of the CLI command to remove a VM or BareMetal server from a backup policy:

    yc backup policy revoke --help
    
  2. Get the ID of the backup policy to unlink the VM or BareMetal server from:

    yc backup policy list
    

    Result:

    +----------------------+----------------------+---------+---------+---------------------+---------------------+
    |          ID          |      FOLDER ID       |  NAME   | ENABLED |     CREATED AT      |     UPDATED AT      |
    +----------------------+----------------------+---------+---------+---------------------+---------------------+
    | abc7n3wln123******** | ghi681qpe789******** | policy1 | true    | 2023-07-03 09:12:02 | 2023-07-03 09:12:43 |
    | deflqbiwc456******** | ghi681qpe789******** | policy2 | true    | 2023-07-07 14:58:23 | 2023-07-07 14:58:23 |
    +----------------------+----------------------+---------+---------+---------------------+---------------------+
    
  3. Get the ID of the VM to unlink:

    yc compute instance list
    

    Result:

    +----------------------+---------+---------------+---------+--------------+-------------+
    |          ID          |  NAME   |    ZONE ID    | STATUS  | EXTERNAL IP  | INTERNAL IP |
    +----------------------+---------+---------------+---------+--------------+-------------+
    | jklp0o9i8012******** | my-vm-1 | ru-central1-b | RUNNING | 51.250.**.** | 192.168.*.* |
    | mnoa5s6d8345******** | my-vm-2 | ru-central1-b | RUNNING | 84.201.**.** | 192.168.*.* |
    +----------------------+---------+---------------+---------+--------------+-------------+
    

    To get the BareMetal server IDs, select BareMetal from the list of services of the relevant folder in the management console. The IDs are specified in the server list in the ID field.

  4. Unlink the VM or BareMetal server by specifying the backup policy ID:

    yc backup policy revoke <policy_ID> \
      --instance-ids <VM_or_BareMetal_server_IDs>
    

    Where --instance-ids are the IDs of the VMs or BareMetal servers you need to unlink from the backup policy. Multiple IDs should be comma-separated.

For more information about the command, see the CLI reference.

Use the revoke REST API method for the Policy resource or the PolicyService/Revoke gRPC API call.

See alsoSee also

  • Linking a VM or Yandex BareMetal server to a backup policy

Was the article helpful?

Previous
Getting information about a policy
Next
Deleting a policy
© 2025 Direct Cursus Technology L.L.C.