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
    • Start testing with double trial credits
    • 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 Compute Cloud
    • All guides
      • Updating an instance group
      • Updating an instance group based on a YAML specification
      • Moving an instance group to a different availability zone
      • Moving an instance group with a network load balancer to a different availability zone
      • Moving an instance group with an L7 load balancer to a different availability zone
      • Configuring application health checks on a VM instance
      • Pausing an instance group
      • Resuming an instance group
      • Sequentially restarting instances in a group
      • Sequentially recreating instances in a group
      • Stopping an instance group
      • Starting an instance group
      • Configuring instance group access permissions
      • Removing an instance group from a placement group
      • Deleting an instance group
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Placement groups
  3. Removing an instance group from a placement group

Removing an instance group from a placement group

Written by
Yandex Cloud
Updated at May 5, 2025
CLI
API

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 command for updating a group:

    yc compute instance-group update --help
    
  2. Get a list of instance groups in the default folder:

    yc compute instance-group list
    

    Result:

    yc compute instance-group list
    +----------------------+-----------------------+------+
    |          ID          |         NAME          | SIZE |
    +----------------------+-----------------------+------+
    | amc65sbgfqeq******** | first-instance-group  |    2 |
    +----------------------+-----------------------+------+
    
  3. Select ID of the instance group in question.

  4. Delete the placement_policy section from the YAML file you used to create the group, e.g., specification.yaml. If this YAML file is missing, get info on the instance group and create a new file. For more information, see Creating a fixed-size instance group.

  5. Update the instance group in the default folder:

    yc compute instance-group update --id <instance_group_ID> --file specification.yaml
    

Instance Groups will initiate removing the instance group from the placement group.

You can remove an instance group from a placement group by using the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.

To request a list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.

Was the article helpful?

Previous
Getting information about a placement group
Next
Configuring VM placement group access permissions
© 2025 Direct Cursus Technology L.L.C.