[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/compute/docs/instance-groups/view-cancel-vm-bulk-creation-in-migs [Back]  [Original]

View or cancel bulk creation of instances in a MIG  |  Compute Engine  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

View or cancel bulk creation of instances in a MIG Stay organized with collections Save and categorize content based on your preferences.

This document describes how to view the status of bulk creation of virtual machine (VM) instances in a managed instance group (MIG). It also explains how to cancel a bulk creation that is in progress.

To learn how bulk creation of instances works in a MIG, see About bulk creation of instances in a MIG

View the status of bulk creation of instances

You can view the status of a bulk creation operation in a MIG. The status lets you check if the bulk creation is still in progress and, if the instances are not yet created, understand the reasons why.

The MIG details contain the following fields to help you monitor the bulk creation status:

gcloud

To view the status of bulk creation of instances in a MIG, use the gcloud compute instance-groups managed describe command.

The following example shows a response for a MIG in which a bulk creation is in progress and the lastProgressCheck field indicates that the bulk creation is waiting for resources due to a ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS error and also has a QUOTA_EXCEEDED error.

{
  "status": {
    "bulkInstanceOperation": {
      "inProgress": true,
      "lastProgressCheck": {
        "timestamp": "2024-01-01T12:00:00.712-08:00",
        "errors": [
          {
            "code": "ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS",
            "message": "Waiting for resources. Currently there are not enough resources available to fulfill the request."
          },
          {
            "code": "QUOTA_EXCEEDED",
            "message": "Quota 'NVIDIA_A100_GPUS' exceeded. Limit: 1500 in region us-central1."
          }
        ]
      }
    }
  }
}

REST

To view the status of bulk creation of instances in a MIG, make a GET request as follows:

Replace the following:

The following example shows a response for a MIG in which a bulk creation is in progress and the lastProgressCheck field indicates that the bulk creation is waiting for resources due to a ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS error and also has a QUOTA_EXCEEDED error.

{
  "status": {
    "bulkInstanceOperation": {
      "inProgress": true,
      "lastProgressCheck": {
        "timestamp": "2024-01-01T12:00:00.712-08:00",
        "errors": [
          {
            "code": "ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS",
            "message": "Waiting for resources. Currently there are not enough resources available to fulfill the request."
          },
          {
            "code": "QUOTA_EXCEEDED",
            "message": "Quota 'NVIDIA_A100_GPUS' exceeded. Limit: 1500 in region us-central1."
          }
        ]
      }
    }
  }
}

View the status of managed instances

You can monitor the status of individual managed instances by checking their current action and instance status.

To view this information about managed instances, see Check the status of managed instances.

Cancel bulk creation operation

To cancel a bulk creation operation, either resize the MIG to zero or delete the MIG.

Resize the MIG to zero

Console

  1. Go to the Instance groups page.

    Go to Instance groups

  2. Click the name of the MIG in which you want to resize.

  3. Click Edit.

  4. Click Group size & autoscaling to expand the section.

  5. Set the Number of instances to 0.

  6. Click Save.

gcloud

To resize a MIG to zero, use the gcloud compute instance-groups managed resize command and set the --size flag to 0.

Replace the following:

Delete a MIG

Console

  1. In the Google Cloud console, go to the Instance groups page.

    Go to Instance groups

  2. Select the checkbox of the MIG that you want to delete.

  3. Click Delete to delete the MIG and all the instances in it.

gcloud

To delete a MIG, use the delete command.

Replace the following:

REST

To delete a MIG, make a PATCH request using one of the following methods:

Replace the following:

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page