Reference documentation and code samples for the Compute Engine v1 API enum InstanceGroupManagerInstanceLifecyclePolicy.Types.DefaultActionOnFailure.
The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis page provides versioned documentation for the \u003ccode\u003eInstanceGroupManagerInstanceLifecyclePolicy.Types.DefaultActionOnFailure\u003c/code\u003e enum within the Google.Cloud.Compute.V1 library, with the latest version being 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDefaultActionOnFailure\u003c/code\u003e enum specifies the action a Managed Instance Group (MIG) takes when a VM fails or becomes unhealthy.\u003c/p\u003e\n"],["\u003cp\u003eThe two main actions defined in the enum are \u003ccode\u003eREPAIR\u003c/code\u003e, where MIG recreates the failed VM, and \u003ccode\u003eDO_NOTHING\u003c/code\u003e, where MIG takes no action on the failed VM.\u003c/p\u003e\n"],["\u003cp\u003eThe default behavior for a MIG is \u003ccode\u003eREPAIR\u003c/code\u003e, meaning it will automatically attempt to fix failed or unhealthy VMs by recreating them.\u003c/p\u003e\n"],["\u003cp\u003eAn additional field in the enum, \u003ccode\u003eUndefinedDefaultActionOnFailure\u003c/code\u003e, is a value to indicate that the enum field is not set.\u003c/p\u003e\n"]]],[],null,[]]