Meta tags:
description= Create resize requests to add VMs all at once to a managed instance group (MIG).;
Headings (most frequently used words):
gcloud, rest, console, create, mig, resize, the, requests, in, and, required, specify, of, use, provisioning, model, stay, organized, with, collections, save, categorize, content, based, on, your, preferences, before, you, begin, prepare, for, request, what, next, roles, an, instance, template, or, update, number, vms, list, vm, names, products, pricing, support, resources, engage, permissions, flex, start, reservation, bound,
Text of the page (most frequently used words):
the (479), create (233), instance (160), for (136), vms (135), mig (132), and (130), you (93), with (83), #template (83), about (77), image (75), #resize (67), use (65), compute (62), troubleshoot (62), set (59), reservation (58), using (57), request (54), region (53), following (52), disk (49), that (48), manage (47), cloud (42), machine (42), view (41), specify (40), server (39), regional (38), google (37), name (37), disks (37), requests (33), configure (33), windows (33), run (32), overview (32), type (32), images (32), zone (31), then (30), performance (30), groups (29), select (27), must (26), field (26), delete (25), want (25), flag (25), instances (24), gcloud (24), engine (24), one (23), from (23), your (22), project (22), projects (22), workload (22), network (22), see (21), managed (21), which (21), number (21), section (21), family (21), hyperdisk (21), sql (21), resources (20), more (20), reservations (20), access (20), monitor (20), information (19), duration (19), gpu (19), mig_name (18), command (18), configuration (18), creating (17), example (17), apply (17), global (17), templates (17), provisioning (17), start (17), linux (17), policies (16), project_id (16), post (16), zonal (16), debian (16), best (16), boot (16), host (16), exists (15), zones (15), add (15), click (15), creation (15), created (15), default (15), practices (15), model (15), workloads (15), custom (15), bulk (15), virtual (15), snapshots (15), ssh (15), recommendations (15), names (14), console (14), policy (14), options (14), management (14), load (14), connect (14), all (13), update (13), maintenance (13), flex (13), microsoft (13), cluster (13), send (12), migs (12), replace (12), regions (12), method (12), specific (12), list (12), instance_template_name (12), choose (12), change (12), based (12), storage (12), sole (12), availability (12), persistent (12), page (11), where (11), resize_request_name (11), rest (11), can (11), between (11), mode (11), learning (11), stateful (11), action (10), gpus (10), specified (10), include (10), googleapis (10), com (10), insert (10), cli (10), once (10), service (10), multiple (10), families (10), h4d (10), time (10), install (10), metadata (10), machines (10), attached (10), migrate (10), logs (10), https (9), instancegroupmanagers (9), days (9), group (9), version (9), scheduling (9), optimize (9), application (9), licenses (9), tenant (9), openshift (9), shutdown (9), hpc (9), events (8), samples (8), license (8), seconds (8), seven (8), enter (8), new (8), available (8), instancetemplates (8), target (8), single (8), back (8), auto (8), future (8), machine_type (8), image_project (8), terminate (8), data (8), permissions (8), authentication (8), import (8), cpu (8), resource (8), login (8), internal (8), disaster (8), recovery (8), high (8), agent (8), existing (8), guest (8), keys (8), flexibility (8), dns (8), optimized (8), tpu (8), thumb (7), this (7), how (7), usage (7), within (7), beta (7), minutes (7), requested (7), location (7), calendar (7), consume (7), non (7), bound (7), stop (7), networking (7), commitments (7), startup (7), balancing (7), benchmark (7), enable (7), manually (7), idle (7), addresses (7), scale (7), deploy (7), mysql (7), remove (7), snapshot (7), backup (7), terms (6), code (6), otherwise (6), api (6), different (6), count (6), configured (6), note (6), make (6), previous (6), values (6), instance_template_url (6), follows (6), size (6), distribution (6), autoscaling (6), image_family (6), reservationaffinity (6), instanceterminationaction (6), settings (6), value (6), deep (6), tools (6), documentation (6), get (6), roles (6), required (6), identity (6), local (6), highly (6), security (6), migration (6), updates (6), instant (6), files (6), nested (6), across (6), applications (6), demand (6), pools (6), failover (6), extension (6), transfer (6), customized (6), spot (6), support (5), understand (5), are (5), details (5), learn (5), fails (5), body (5), methods (5), creates (5), after (5), url (5), none (5), do_nothing (5), shape (5), failure (5), prepare (5), latest (5), contains (5), public (5), properties (5), termination (5), expand (5), advanced (5), during (5), services (5), environment (5), monitoring (5), databases (5), accounts (5), errors (5), drivers (5), virtualization (5), nvidia (5), operations (5), placement (5), node (5), build (5), multi (5), modify (5), capacity (5), schedules (5), audit (5), symphony (5), email (5), scripts (5), manager (5), operating (5), systems (5), enhanced (5), capabilities (5), tenancy (5), restore (5), types (5), control (5), workstation (5), faq (5), português (4), español (4), sign (4), other (4), down (4), need (4), unique (4), resizerequests (4), specifies (4), opens (4), have (4), same (4), redistribution (4), disable (4), lifecycle (4), repairs (4), reservation_name (4), reservation_url (4), most (4), recent (4), deprecated (4), used (4), bookworm (4), supported (4), consumereservationtype (4), onhostmaintenance (4), provisioningmodel (4), reservation_bound (4), affinity (4), when (4), frameworks (4), consumption (4), run_duration (4), flex_start (4), hours (4), prevent (4), apis (4), development (4), authenticate (4), external (4), provider (4), running (4), plan (4), quota (4), distributed (4), issues (4), ubuntu (4), bandwidth (4), tcp (4), pmu (4), ssd (4), share (4), upgrade (4), live (4), cross (4), metrics (4), health (4), active (4), clusters (4), containers (4), container (4), database (4), uses (4), postgresql (4), extensions (4), work (4), suspend (4), graceful (4), locations (4), plans (4), replication (4), review (4), content (3), apache (3), cancel (3), instance_names (3), optional (3), appears (3), edit (3), until (3), before (3), described (3), general (3), only (3), versions (3), any (3), also (3), repair (3), turn (3), off (3), latency (3), networks (3), fields (3), without (3), follow (3), prompts (3), these (3), consuming (3), define (3), attach (3), maxrunduration (3), format (3), accelerator (3), max (3), limit (3), predefined (3), credentials (3), costs (3), guides (3), infrastructure (3), observability (3), analytics (3), automatic (3), troubleshooting (3), encryption (3), pro (3), serial (3), configurations (3), patterns (3), higher (3), discounts (3), cuds (3), manual (3), scalable (3), resilient (3), autoscale (3), balancer (3), testing (3), ibm (3), spectrum (3), perform (3), deploying (3), deployment (3), rhel (3), protect (3), certificates (3), query (3), state (3), account (3), increase (3), schedule (3), design (3), pool (3), move (3), workstations (3), series (3), tpus (3), product (3), 한국어 (2), 日本語 (2), עברית (2), brasil (2), italiano (2), indonesia (2), français (2), américa (2), latina (2), deutsch (2), english (2), site (2), youtube (2), center (2), started (2), system (2), pricing (2), products (2), last (2), updated (2), 2026 (2), utc (2), except (2), licensed (2), under (2), feedback (2), next (2), instance_name_2 (2), instance_name_1 (2), two (2), regioninstancegroupmanagerresizerequests (2), instancegroupmanagerresizerequests (2), specifying (2), optionally (2), both (2), resizeby (2), additional (2), pane (2), them (2), sure (2), pre (2), features (2), might (2), partial (2), instancetemplate (2), targetsize (2), any_single_zone (2), instancelifecyclepolicy (2), defaultactiononfailure (2), checkbox (2), allow (2), alternate (2), formatted (2), v20240617 (2), true (2), initializeparams (2), sourceimage (2), machinetype (2), networkinterfaces (2), specific_reservation (2), key (2), regioninstancetemplates (2), such (2), v20240701 (2), complete (2), steps (2), recommended (2), science (2), consider (2), prepackaged (2), comes (2), essential (2), end (2), ultra (2), 600 (2), no_reservation (2), a4x (2), role (2), exact (2), iam (2), idp (2), first (2), federated (2), verify (2), sufficient (2), hypercomputer (2), sdk (2), languages (2), industry (2), solutions (2), hybrid (2), multicloud (2), pipelines (2), hosting (2), commitment (2), standard (2), full (2), registration (2), sles (2), export (2), port (2), collecting (2), nodes (2), report (2), arm (2), core (2), rdp (2), app (2), analyze (2), visible (2), cores (2), automatically (2), committed (2), generation (2), underutilized (2), insights (2), utilization (2), globally (2), web (2), autohealing (2), iis (2), shared (2), reserve (2), autoscaler (2), autoscalers (2), activity (2), kubernetes (2), place (2), directory (2), setting (2), redis (2), cloning (2), writer (2), always (2), alwayson (2), file (2), volumes (2), synchronization (2), switch (2), byol (2), payg (2), byos (2), changes (2), guide (2), securing (2), event (2), simulate (2), topology (2), together (2), check (2), failures (2), suspended (2), stopped (2), physical (2), interfaces (2), ipv6 (2), static (2), decrease (2), basic (2), consistent (2), scoped (2), copy (2), appliances (2), asynchronous (2), throughput (2), encrypt (2), mount (2), memory (2), extreme (2), balanced (2), organization (2), user (2), through (2), rdma (2), preemptible (2), models (2), rtx (2), vws (2), constraints (2), reference (2), technology (2), areas (2), close (2), subscribe, newsletter, our, third, decade, climate, join, cookies, privacy, tech, twitter, blog, engage, training, certification, architecture, getting, github, status, release, notes, community, forums, contact, sales, marketplace, easy, easytounderstand, solved, problem, solvedmyproblem, otherup, hard, hardtounderstand, incorrect, sample, incorrectinformationorsamplecode, missing, missingtheinformationsamplesineed, otherdown, tell, noted, java, registered, trademark, oracle, its, affiliates, developers, creative, commons, attribution, actual, forecasted, what, comma, separated, requires, determines, requestedrunduration, lists, hour, unit, needed, row, column, become, deletes, ends, prepared, feature, subject, offerings, limited, launch, stage, descriptions, preview, workloadpolicy, distributionpolicy, targetshape, updatepolicy, instanceredistributiontype, regioninstancegroupmanagers, dialog, whether, clear, minimize, among, opportunistic, additionally, period, 604, 800, 604800, guestaccelerators, followed, respectively, day, three, four, 1d2h3m4s, 30m, 168, their, case, sections, able, ask, administrator, grant, granting, folders, organizations, instanceadmin, admin, haven, already, verifies, selecting, provide, installed, previously, components, init, installation, initialize, don, tab, remains, pending, begin, achieve, option, helps, obtain, demanded, like, instead, document, explains, save, categorize, preferences, stay, organized, collections, home, concurrent, operation, renewal, nvme, resizing, common, pay, viewing, output, diagnostic, sudoers, screenshots, generate, bug, blackwell, soft, lockups, bus, locks, rescue, inaccessible, dumps, kernel, panic, fstab, unresponsive, suspension, reboots, shutdowns, connectivity, tips, nics, dpdk, improve, resiliency, communication, reduce, compact, idpf, interface, irdma, driver, nic, customize, threads, per, sustained, merge, split, extend, renew, purchase, cost, savings, dynamic, overcommit, cpus, floating, reliable, udp, backends, routing, scaling, combine, cud, sharing, decisions, signals, serving, predictions, organize, labels, replica, states, observe, reports, tensorflow, inference, tensorrt5, monte, carlo, spark, forwarding, others, integrate, clustering, exchange, 2016, sharepoint, strategies, passive, inactive, setups, built, integrations, validation, were, deployed, transition, test, hammerdb, bucket, aws, ec2, pacemaker, s2d, block, netapp, hot, standby, drbd, architectures, client, private, address, mailjet, mailgun, sendgrid, sending, blue, green, deployments, lamp, joomla, asp, net, interactive, mongodb, flask, terraform, servers, over, mtls, random, generator, virtio, rng, accurate, protocol, ntp, append, els, restrictions, packages, deprecate, trusted, red, hat, knowledgebase, functionality, risks, vpc, controls, confidential, kek, secure, expiration, shielded, attributes, handle, notices, process, faulty, unmanaged, affect, preserved, repairing, maintain, upgrades, override, selectively, applying, accelerate, out, outage, rebalance, reenable, proactive, distribute, info, accidental, deletion, spread, rename, reset, resume, restart, referrers, source, uuid, recover, corrupted, duplicate, clones, alerts, backups, vss, regionally, protection, considerations, synchronous, consistency, failback, replicate, provisioned, iops, limits, evaluate, help, kms, customer, supplied, symbolic, links, practice, device, ram, exapools, ptr, record, rates, tags, restrict, automate, password, require, powershell, sac, securely, apps, root, vpn, bastion, iap, connection, browser, connections, iso, imported, prerequisites, importing, exporting, bring, own, path, detach, reattach, constraint, accounting, provision, examples, slurm, reserved, team, slice, slices, adds, scenarios, deterministic, base, requirements, ready, aci, preempted, historical, alternative, similar, displays, ops, logging, subnet, has, gpudirect, enabled, minimum, platform, hostname, quickstarts, office, licensing, premium, strategy, gemini, bare, metal, accelerators, platforms, scores, purpose, discover, free, skip, main,
Text of the page (random words):
cloud compute instance templates create instance_template_name image project image_project image family image_family instance template region region instance termination action delete machine type machine_type maintenance policy terminate max run duration run_duration provisioning model flex_start reservation affinity none replace the following instance_template_name the name of the instance template to create image_project the image project that contains the image for example debian cloud for more information about the supported image projects see public images image_family an image family specify an image family to use the most recent non deprecated os image for example if you specify debian 12 the latest version in the debian 12 image family is used for more information about using image families see image families best practices note if you want to use a specific version of the os image such as debian 12 bookworm v20240701 then replace the image family flag with the image flag region the region in which to create the instance template machine_type the machine type to use for the flex start vms if you specify an n1 machine type then you must include the accelerator flag to define the number and type of gpus to attach to your vms run_duration the duration you want the requested vms to run you must format the value as the number of days hours minutes or seconds followed by d h m and s respectively for example specify 30m for 30 minutes or 1d2h3m4s for one day two hours three minutes and four seconds the value must be between 10 minutes and seven days rest to create an instance template make a post request to one of the following methods to create a regional instance template regioninstancetemplates insert method to create a global instance template instancetemplates insert method in the request body include the following fields the reservationaffinity consumereservationtype field set to no_reservation the scheduling instanceterminationaction field set to delete the scheduling maxrunduration field the scheduling onhostmaintenance field set to terminate the scheduling provisioningmodel field set to flex_start the following example request creates a regional instance template post https compute googleapis com compute v1 projects project_id regions region instancetemplates name instance_template_name properties disks boot true initializeparams sourceimage projects image_project global images image machinetype machine_type networkinterfaces network global networks default reservationaffinity consumereservationtype no_reservation scheduling instanceterminationaction delete maxrunduration seconds run_duration onhostmaintenance terminate provisioningmodel flex_start replace the following project_id the id of the project in which to create the instance template region the region in which to create the instance template instance_template_name the name of the instance template to create image_project the image project that contains the image for example debian cloud for more information about the supported image projects see public images image specify one of the following a specific version of the os image for example debian 12 bookworm v20240617 an image family which must be formatted as family image_family specify an image family to use the most recent non deprecated os image for example if you specify family debian 12 the latest version in the debian 12 image family is used for more information about using image families see image families best practices machine_type the machine type to use for the vms if you specify an n1 machine type then you must include the guestaccelerators field to define the number and type of gpus to attach to your vms run_duration the duration in seconds you want the requested vms to run the value must be between 600 which is 600 seconds 10 minutes and 604800 which is 604 800 seconds seven days for more information about creating an instance template see create instance templates use the reservation bound provisioning model to create an instance template configured for mig resize requests and for consuming a reservation you must specify the following in the template to use an a4 or a3 ultra machine type or an h4d machine type as specified in the reservation that you want to consume to stop vms during host maintenance events to delete vms at the end of the reservation period by using the instanceterminationaction field to target the reservation for consumption to use the reservation bound provisioning model note if you want to run data science or machine learning workloads then consider using a deep learning vm images image when you create an instance template deep learning vm is a set of prepackaged vm images that comes with machine learning frameworks and essential tools for more information about these images see choose an image in the deep learning vm documentation to create an instance template select one of the following options console in the google cloud console go to the instance templates page go to instance templates click create instance template the create an instance template page opens in the name field enter a name for the instance template in the location section select one of the following options to create a regional instance template select regional recommended and then select the region in which to create the template to create a global instance template select global in the machine configuration section specify a machine type in the provisioning model section complete the following steps expand vm provisioning model advanced settings in the on vm termination list select delete optional to change the default value boot disk type or image in the boot disk section click change then follow the prompts to change the boot disk expand the advanced options section and then do the following expand the management section in the reservations section select choose a reservation and then click choose reservation in the pane that appears follow the prompts to select the reservation that you want to consume click create gcloud to create an instance template use the instance templates create command with the following flag settings the instance termination action flag set to delete the maintenance policy flag set to terminate the provisioning model flag set to reservation_bound the reservation affinity flag set to specific the reservation flag the following example command creates a regional instance template if you want to create a global instance template then use the same command without the instance template region flag gcloud compute instance templates create instance_template_name image project image_project image family image_family instance termination action delete instance template region region machine type machine_type maintenance policy terminate provisioning model reservation_bound reservation affinity specific reservation reservation_url replace the following instance_template_name the name of the instance template to create image_project the image project that contains the image for example debian cloud for more information about the supported image projects see public images image_family an image family specify an image family to use the most recent non deprecated os image for example if you specify debian 12 the latest version in the debian 12 image family is used for more information about using image families see image families best practices note if you want to use a specific version of the os image such as debian 12 bookworm v20240701 then replace the image family flag with the image flag region the region in which to create the instance template machine_type the machine type that is specified in the reservation that you want to consume reservation_url the url of the auto created reservation for a future reservation in calendar mode that you want to consume specify one of the following values if the auto created reservation exists in your project reservation_name if the auto created reservation exists in a different project projects project_id reservations reservation_name rest to create an instance template make a post request to one of the following methods to create a regional instance template regioninstancetemplates insert method to create a global instance template instancetemplates insert method in the request body include the following fields the reservationaffinity consumereservationtype field set to specific_reservation the reservationaffinity key field set to compute googleapis com reservation name the reservationaffinity values field set to the url of the auto created reservation the scheduling instanceterminationaction field set to delete the scheduling onhostmaintenance field set to terminate the scheduling provisioningmodel field set to reservation_bound for example to create a regional instance template make a request as follows post https compute googleapis com compute v1 projects project_id regions region instancetemplates name instance_template_name properties disks boot true initializeparams sourceimage projects image_project global images image machinetype machine_type networkinterfaces network global networks default reservationaffinity consumereservationtype specific_reservation key compute googleapis com reservation name values reservation_url scheduling instanceterminationaction delete onhostmaintenance terminate provisioningmodel reservation_bound replace the following project_id the id of the project in which to create the instance template region the region in which to create the instance template instance_template_name the name of the instance template to create image_project the image project that contains the image for example debian cloud for more information about the supported image projects see public images image specify one of the following a specific version of the os image for example debian 12 bookworm v20240617 an image family which must be formatted as family image_family specify an image family to use the most recent non deprecated os image for example if you specify family debian 12 the latest version in the debian 12 image family is used for more information about using image families see image families best practices machine_type the machine type that is specified in the reservation that you want to consume reservation_url the url of the auto created reservation for a future reservation in calendar mode that you want to consume specify one of the following values if the auto created reservation exists in your project reservation_name if the auto created reservation exists in a different project projects project_id reservations reservation_name for more information about creating an instance template see create instance templates create or update a mig after creating the instance template as described in the previous section use that instance template to create a mig as follows or update a mig additionally you must do the following to prepare the mig for resize requests set the mig s update type to opportunistic default turn off repairs if you ve configured autoscaling in the mig then delete the autoscaling configuration if you re using a regional mig then set the target distribution shape to any_single_zone to create the mig select one of the following options if you want to specify a workload policy to minimize network latency among your vms then you must use the gcloud cli or rest api console in the google cloud console go to the instance groups page go to instance groups click create instance group the create instance group page opens in the name field enter a name for the mig before you select an instance template you must turn off repairs as follows in the vm instance lifecycle section clear the allow repair of vms in an alternate zone checkbox in the default action on failure list select no action go back to the instance template field in the instance template list select the instance template that you created in the previous section if you select a regional instance template then the region list is set to the template s region in the number of instances field enter 0 in the location section specify whether you want to create a zonal or a regional mig as follows to create a zonal mig select single zone or to create a regional mig select multiple zones select the region and zones of the mig if you re creating a regional mig then do the following in the target distribution shape field select any single zone in the dialog that appears click disable instance redistribution click create gcloud use the instance groups managed create command with the default action on vm failure flag set to do_nothing if you re creating a regional mig then you must also include the target distribution shape flag set to any single zone and the instance redistribution type flag set to none to create a zonal mig run the following command gcloud compute instance groups managed create mig_name template instance_template_url size 0 zone zone default action on vm failure do_nothing to create a regional mig run the following command gcloud compute instance groups managed create mig_name template instance_template_url size 0 region region target distribution shape any single zone instance redistribution type none default action on vm failure do_nothing replace the following mig_name the name of the mig to create instance_template_url the partial url of the instance template that you created in the previous section if you want to use a regional instance template to create the mig then you can only create the mig within the template s region specify one of the following values for a regional instance template projects project_id regions region instancetemplates instance_template_name for a global instance template instance_template_name zone the zone in which to create the mig region the region in which to create the mig if you want to apply a workload policy to your mig then include the workload policy flag in the command you must specify a workload policy that is in the same region as the mig rest to create a zonal mig send a post request using the instancegroupmanagers insert method as follows post https compute googleapis com compute v1 projects project_id zones zone instancegroupmanagers versions instancetemplate instance_template_url name mig_name targetsize 0 instancelifecyclepolicy defaultactiononfailure do_nothing to create a regional mig send a post request using the regioninstancegroupmanagers insert method as follows post https compute googleapis com compute v1 projects project_id regions region instancegroupmanagers versions instancetemplate instance_template_url name mig_name targetsize 0 distributionpolicy targetshape any_single_zone updatepolicy instanceredistributiontype none instancelifecyclepolicy defaultactiononfailure do_nothing replace the following project_id the id of the project where the instance template that you created in the previous section exists instance_template_url the partial url of the instance template that you...
|