Stay organized with collections Save and categorize content based on your preferences.
gcloud beta compute instance-groups managed update-instances
NAME
(--all-instances
| --instances
=INSTANCE
,[INSTANCE
,…]) [--minimal-action
=MINIMAL_ACTION
; default="none"] [--most-disruptive-allowed-action
=MOST_DISRUPTIVE_ALLOWED_ACTION
; default="replace"] [--region
=REGION
| --zone
=ZONE
] [GCLOUD_WIDE_FLAG …
]
(BETA)
When using a managed instance group, it's possible that your intended specification for a VM is different from the current state of that VM. For example, this can happen due to changes to the group's target instance template. This command enables you to initiate the update process on the given set of instances instantly, thus when your Managed Instance Group is stable you can be sure that all the changes were applied.
gcloud beta compute instance-groups managed update-instances
allows you to specify the least and the most disruptive actions that can be performed while updating the instances. This way you can reduce the risk of rolling out too many changes at once. Possible actions are: none
, refresh
, restart
and replace
. The level of disruption to the instance is ordered as: none
< refresh
< restart
< replace
.
The command returns the operation status per instance, which might be
, FAIL
, or SUCCESS
. MEMBER_NOT_FOUND
is returned only for regional groups when the gcloud command-line tool wasn't able to resolve the zone from the instance name.MEMBER_NOT_FOUND
instance-1
, instance-2
in my-group
, with minimal-action=none
and most-disruptive-allowed-action=restart
, run:
gcloud beta compute instance-groups managed update-instances my-group --instances=instance-1,instance2 --minimal-action=none --most-disruptive-allowed-action=restart
NAME
--all-instances
--instances
=INSTANCE
,[INSTANCE
,…]
--minimal-action
=MINIMAL_ACTION
; default="none"
minimal-action
value from the MIG's update policy, unless it is not set in which case the default is replace
.
MINIMAL_ACTION
must be one of:
none
refresh
restart
replace
--most-disruptive-allowed-action
=MOST_DISRUPTIVE_ALLOWED_ACTION
; default="replace"
most-disruptive-allowed-action
value from the MIG's update policy, unless it is not set in which case the default is replace
.
MOST_DISRUPTIVE_ALLOWED_ACTION
must be one of:
none
refresh
restart
replace
--region
=REGION
A list of regions can be fetched by running:
gcloud compute regions list
Overrides the default compute/region
property value for this command invocation.
--zone
=ZONE
A list of zones can be fetched by running:
gcloud compute zones list
Overrides the default compute/zone
property value for this command invocation.
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud compute instance-groups managed update-instances
gcloud alpha compute instance-groups managed update-instances
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 2025-05-07 UTC.
[[["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 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4