GCP infrastructureIntermediate20 min read

What Does Unmanaged instance group Mean?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

An unmanaged instance group is a way to group virtual machines in Google Cloud. You control each VM inside it yourself. The group does not automatically create or fix VMs for you. This is useful when you have VMs that are not identical or that need to be managed separately.

Commonly Confused With

Unmanaged instance groupvsManaged instance group

A managed instance group automatically creates and manages identical VMs from an instance template. It supports autoscaling, autohealing, and rolling updates. Unmanaged groups lack all these features and require manual management of heterogeneous VMs.

If you want to run 10 copies of the same web server that scale automatically, use a managed instance group. If you have three different VMs that you want to put behind a load balancer, use an unmanaged instance group.

Unmanaged instance groupvsInstance template

An instance template is a blueprint that defines the machine type, boot disk image, and other settings for a VM. It is used only with managed instance groups. Unmanaged instance groups do not use templates; you add VMs manually.

Creating an instance template is like writing a recipe. A managed instance group uses that recipe to bake multiple identical cakes. An unmanaged instance group is like a basket where you put different cakes that you baked yourself.

Unmanaged instance groupvsVirtual private cloud (VPC) network

A VPC network provides networking for all your VMs, including those in instance groups. An unmanaged instance group is a container for VMs, not a networking layer. You can have VMs in multiple VPCs, but an instance group is scoped to one region or zone.

Your VPC network is like the streets in a city. The instance group is like a list of houses on those streets. The list does not change the streets, it just tells you which houses are included.

Must Know for Exams

Unmanaged instance groups appear in several Google Cloud certification exams, including the Associate Cloud Engineer, Professional Cloud Architect, and Professional Cloud Network Engineer. While managed instance groups are more commonly tested, understanding unmanaged groups is critical because exam questions often ask you to identify when to use each type.

In the Associate Cloud Engineer exam, you may see scenario-based questions where a company has existing VMs that are not identical and wants to attach a load balancer. You need to know that unmanaged instance groups are the solution. The exam might ask: "Which instance group should you use to group existing VMs with different configurations?" The answer is unmanaged instance group. Questions may also ask about the limitations: "What features are not available with unmanaged instance groups?" Options could include autoscaling, autohealing, and rolling updates.

In the Professional Cloud Architect exam, you might be given a high-level design case. The company is migrating from on-premises and wants to use a load balancer immediately while standardizing VMs later. The correct architectural choice is to create an unmanaged instance group. The exam tests your ability to trade off operational complexity versus flexibility.

In the Professional Cloud Network Engineer exam, you need to understand how load balancers discover backends. Unmanaged instance groups are used with backend services. Exam questions may focus on health checks: in an unmanaged group, health checks are configured at the backend service level, and the load balancer marks each VM individually. There is no automated removal of unhealthy VMs unless you set up your own script.

General IT certifications that cover cloud fundamentals like CompTIA Cloud+ also touch on instance groups conceptually. You may not need to memorize Google Cloud-specific commands, but you should understand the difference between homogeneous and heterogeneous groups of servers. Unmanaged instance groups are the heterogeneous option in Google Cloud.

A common exam trap is that learners confuse unmanaged instance groups with managed instance groups when a question mentions creating a group of identical VMs. Managed groups are required for identical VMs with automation. Unmanaged groups are only for heterogeneous, manually managed VMs. Always check whether the question mentions existing VMs or different configurations.

Simple Meaning

Think of an unmanaged instance group like a folder on your computer where you keep photos. Each photo is different and you decide which ones to add, remove, or edit. The folder does not change anything on its own. It just holds the photos together so you can find them easily.

In Google Cloud, an unmanaged instance group works the same way. You have several virtual machines (VMs) that you want to keep in one place. Maybe they run different software, or one is a web server and another is a database server. The group does not try to make them all the same. It does not add more VMs when traffic goes up. It does not replace a VM if it crashes. You have to do all of that yourself.

People use unmanaged instance groups when they need a simple way to apply the same setting to several VMs at once. For example, you might want to attach a load balancer to all VMs in the group. Or you might need to write a script that restarts all VMs in the group at the same time. The group makes that possible without changing how each VM works.

Because unmanaged instance groups do not have automation, they are less common in modern cloud setups. Most cloud users prefer managed groups that handle scaling and health automatically. But for some older applications or custom setups, unmanaged groups still make sense.

Full Technical Definition

An unmanaged instance group in Google Cloud is a collection of existing Compute Engine virtual machine instances that you manually add and remove. Unlike a managed instance group, the unmanaged group does not maintain identical instances, does not perform autohealing, and does not offer autoscaling or rolling updates. It is essentially a logical grouping mechanism that allows you to apply load balancer backend services or network endpoint groups to a set of heterogeneous VMs.

The instances in an unmanaged instance group can have different machine types, different boot disks, different images, and different configurations. You create each VM separately using the gcloud command line, the Cloud Console, or an API call, and then you add that VM to an existing unmanaged group. The group itself does not enforce any consistency across its members.

One important technical detail is that unmanaged instance groups are a prerequisite for using certain Google Cloud networking features. For example, an HTTP(S) load balancer requires a backend service that points to an instance group. If you are not using a managed instance group, you must use an unmanaged instance group. The load balancer uses the group to discover which VMs should receive traffic, and it performs health checks against each VM individually.

Unmanaged instance groups also support zonal and regional scopes. A zonal unmanaged group spans a single zone, while a regional unmanaged group spans multiple zones in a region. This is useful for building cross-zone fault tolerant applications, but again, you must manage the VMs yourself. If a VM fails in one zone, you must replace it manually.

The gcloud command to create an unmanaged instance group is: gcloud compute instance-groups unmanaged create GROUP_NAME. To add an instance, you use: gcloud compute instance-groups unmanaged add-instances GROUP_NAME --instances INSTANCE1,INSTANCE2. The instances must be in the same zone as the group unless the group is regional.

From an architectural perspective, unmanaged instance groups lack the operational benefits of managed groups. There is no instance template, no target size, no update policy, and no health check based autohealing. This means the operator is responsible for capacity planning, patching, and recovery. In exam contexts, you should understand that unmanaged instance groups are a legacy pattern and are rarely the best choice for new deployments, but they may appear in migration scenarios or when integrating with on-premises or custom environments.

Real-Life Example

Imagine you are the manager of a small neighborhood with several houses. Each house is different: one is a brick bungalow, another is a two-story wooden house, and a third is a modern glass home. The houses are not built from a single blueprint. They each have their own plumbing, electrical system, and style.

Now you want to organize these houses into a group called "My Neighborhood." As the manager, you keep a list of the houses. When a new house is built, you add it to the list. If a house gets damaged and is torn down, you remove it from the list. The group itself does not build new houses, does not repair damaged ones, and does not make all houses look the same.

In this analogy, the houses are your virtual machines. The list you keep is the unmanaged instance group. The group helps you see all the VMs in one place, but it does not take any automatic action. If a VM crashes, you must notice the problem and create a new VM. If traffic increases, you must decide to add more VMs. The unmanaged group just holds the collection together.

This is different from a managed instance group, which would be like a neighborhood where all houses come from the same blueprint, are built by a construction company, and are automatically repaired or replaced by a maintenance crew. For many cloud users, the managed approach saves time and reduces errors. But for a small, custom setup where every VM is unique, the unmanaged group is simpler and gives you full control.

Why This Term Matters

Unmanaged instance groups matter because they are the simplest way to group virtual machines in Google Cloud when you need to use load balancers or other networking features. Even though managed groups are more popular, there are real scenarios where unmanaged groups are the right choice.

One practical situation is when you are migrating an existing application to the cloud. Your on-premises servers may all be different sizes and configurations. You lift and shift them into Compute Engine as separate VMs. You need to put a load balancer in front of them. But the VMs are not identical, so a managed instance group would force you to rebuild them using a single template. That would break your migration timeline. Instead, you create an unmanaged instance group, add each existing VM, and attach the load balancer. This lets you migrate quickly and gradually standardize later.

Another situation is when you have a few VMs that run critical but custom software. Maybe one VM has a special GPU card, another has a specific kernel patch, and a third runs a legacy database. You do not want automatic scaling or healing to accidentally wipe out your customizations. With an unmanaged instance group, you keep full control. You decide when to patch, when to add capacity, and how to handle failures.

Unmanaged instance groups also matter for understanding cloud architecture. Many exam questions ask you to compare managed and unmanaged groups. Knowing the limitations of unmanaged groups helps you choose the right tool for each job. If you need low operational overhead, you pick managed. If you need full control over individual VMs, you pick unmanaged. This decision appears in both architecting and operations contexts.

How It Appears in Exam Questions

Exam questions about unmanaged instance groups often fall into three patterns: scenario-based selection, configuration tasks, and troubleshooting.

Scenario-based selection: The question describes a company that has three web servers running different operating system versions. They need a load balancer to distribute web traffic. They do not plan to change the OS versions soon. Which instance group type should they use? The correct answer is unmanaged instance group. A distractor might be managed instance group with multiple instance templates. But setting up multiple instance templates defeats the purpose of a managed group. The scenario focuses on heterogeneity.

Configuration tasks: The question might ask you to add an existing VM to an unmanaged instance group using the gcloud command. The command will be something like: gcloud compute instance-groups unmanaged add-instances my-group --instances my-vm. You need to recall the correct syntax. Alternatively, the question might provide a partially complete Terraform configuration and ask you to fill in the resource type. For unmanaged instance groups, the resource is google_compute_instance_group. For managed, it is google_compute_instance_group_manager.

Troubleshooting questions: The scenario describes that traffic to a load balancer is not reaching certain VMs. The VMs are inside an unmanaged instance group. The question might ask you to check the health check status for those VMs, or verify that the instance group has the correct VMs listed. Another troubleshooting pattern: the load balancer shows zero healthy backends even though VMs are running. The issue might be that the VMs were added to the instance group after the load balancer was configured, and the health check firewall rule is missing. You need to understand that health checks in unmanaged groups are per-VM and require firewall rules allowing health check probes.

A less common pattern is cost optimization: the question asks how to reduce costs by removing unused VMs. Unmanaged instance groups make it easy to see which VMs are grouped, and you can remove them manually. But you must understand that the group itself does not automate cost savings.

Finally, there are compare and contrast questions. You get a table with two columns: managed and unmanaged. You need to correctly assign properties like autoscaling, rolling updates, identical instances, and health based autohealing. Unmanaged gets none of those features.

Practise Unmanaged instance group Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

A small e-commerce company runs its website on Google Cloud. They have three VMs: VM-Web1 runs Ubuntu with Apache, VM-Web2 runs CentOS with Nginx, and VM-Web3 runs Windows Server with IIS. The VMs were migrated from an on-premises data center and each uses a different configuration. The company now wants to add a global HTTP load balancer to distribute traffic across the three VMs.

The cloud engineer knows that a load balancer needs a backend service that references an instance group. She cannot use a managed instance group because the VMs are not identical and would require separate instance templates. Instead, she creates an unmanaged instance group called ecom-web-group. She adds VM-Web1, VM-Web2, and VM-Web3 to the group. Then she creates a backend service that uses this group as its backend. She configures the health check to accept HTTP on port 80.

At first, everything works. But after a few days, VM-Web2 crashes due to a memory leak. The load balancer health check detects that VM-Web2 is unhealthy and stops sending traffic to it. However, the unmanaged instance group does not automatically replace VM-Web2. The cloud engineer must manually create a new VM with the same CentOS and Nginx configuration and add it to the group.

This scenario shows the key tradeoff: unmanaged instance groups are great for grouping heterogeneous VMs quickly, but they require manual intervention for recovery. The company later decides to standardize all VMs on Ubuntu and switch to a managed instance group to automatically recover from failures.

Common Mistakes

Thinking that unmanaged instance groups support autoscaling.

Autoscaling is only available for managed instance groups. Unmanaged groups have no mechanism to automatically add or remove instances based on load.

Remember: unmanaged means no automation. For autoscaling, you must use a managed instance group.

Believing that all instances in an unmanaged group must be identical.

Unmanaged groups are designed for heterogeneous instances. They can have different machine types, images, and configurations. Identical instances are only required in managed groups.

If you need to group different VMs, choose unmanaged. If you need identical VMs with automation, choose managed.

Assuming an unmanaged instance group automatically replaces unhealthy instances.

Unmanaged groups do not perform autohealing. You must manually detect and replace failed VMs. Autohealing is a managed group feature based on health checks.

For automatic recovery, use a managed instance group with a health check and autohealing enabled.

Confusing unmanaged instance groups with instance templates.

Instance templates are used by managed instance groups to create identical VMs. Unmanaged groups do not use instance templates at all. Adding a VM to an unmanaged group does not reference any template.

Think of instance templates as blueprints for managed groups. Unmanaged groups simply collect existing VMs without a blueprint.

Trying to update all VMs in an unmanaged group with a rolling update policy.

Rolling updates are a feature of managed instance groups. Unmanaged groups have no update mechanism. You must update each VM individually or use configuration management tools.

If you need rolling updates, use a managed instance group. Otherwise, patch VMs manually or with automation outside the group.

Exam Trap — Don't Get Fooled

{"trap":"The exam gives a scenario where a company has several existing VMs with different configurations and wants to use a load balancer. They also want autoscaling for future traffic spikes. Many learners choose managed instance group because of the autoscaling requirement."

,"why_learners_choose_it":"Learners focus on the autoscaling keyword and immediately think managed instance group. They overlook that the existing VMs are not identical and cannot be placed in a managed group without rebuilding them.","how_to_avoid_it":"Read the entire scenario carefully.

If the VMs already exist and are different, you must use unmanaged instance group. Autoscaling can be achieved later by standardizing the VMs and migrating to a managed group. The correct answer is to use unmanaged group for now and plan a migration."

Step-by-Step Breakdown

1

Plan your VMs

Decide which virtual machines you want to group together. They can have different operating systems, machine types, and configurations. Make sure they are in the same zone (for zonal groups) or region (for regional groups).

2

Create the unmanaged instance group

Use the Google Cloud Console, gcloud CLI, or API to create an empty unmanaged instance group. Specify a name, zone or region, and optionally a network for network endpoint groups. The group has no default size.

3

Create your VMs if they do not exist

If you do not already have VMs, create them individually using gcloud or the console. Each VM can be unique. This step is separate from the group creation.

4

Add existing VMs to the group

Use the add-instances command or console to add one or more existing VMs to the unmanaged instance group. The VMs must be in the same zone (for zonal groups) or region (for regional groups).

5

Configure the load balancer (optional)

If you intend to use a load balancer, create a backend service and set the unmanaged instance group as the backend. Configure health checks so the load balancer knows which VMs are healthy. The health check is per-VM.

6

Manage the VMs manually

Monitor the VMs yourself. If a VM fails, create a replacement manually and add it to the group. If you need to update software, do it on each VM individually or use a configuration management tool like Ansible or Chef.

Practical Mini-Lesson

In practice, unmanaged instance groups are a tool for grouping VMs when you need a load balancer but cannot or do not want to use a managed instance group. As a cloud professional, you will encounter these groups most often in migration projects or when supporting legacy applications.

When you create an unmanaged instance group, the most important decision is whether to make it zonal or regional. A zonal group keeps all VMs in one availability zone. This is simpler but offers no protection against zone failures. A regional group allows you to have VMs in multiple zones, which improves fault tolerance, but you must manage VMs in each zone yourself. The load balancer can distribute traffic across all zones automatically.

One common configuration detail is the port name mapping. When you add VMs to an unmanaged group, you can specify a named port. For example, you could map the name "http" to port 80 for all VMs. This is important for load balancer backends because the load balancer uses the named port to forward traffic. If your VMs run on different ports, you can assign different named ports, but the load balancer backend service uses only one port name. So all VMs in the backend must respond on the same port for the named port mapping to work with a single backend service.

Another practical consideration is health checks. Unmanaged instance groups do not automatically run health checks. Instead, health checks are configured at the load balancer backend service level. If you remove the load balancer, there is no other automatic health checking. You must set up monitoring manually, perhaps using Stackdriver (now Cloud Monitoring) alerts to detect down VMs.

What can go wrong? A common issue is that a VM is added to the group but is not reachable by the load balancer because the firewall does not allow health check probe packets. The health check source IP ranges are documented by Google Cloud, and you must create firewall rules to allow them. Another issue is accidentally removing a VM from the group while it is still running, which makes the load balancer stop sending traffic to it. You can remove VMs from the group without deleting the VMs themselves, but that might cause traffic disruption.

In a real project, unmanaged instance groups are often a temporary step. You might start with unmanaged groups to get a load balancer working quickly, then gradually standardize your VMs onto a single image and switch to a managed instance group. This reduces manual work and improves reliability. Knowing when to transition is a mark of a skilled cloud architect.

Memory Tip

Remember: U in Unmanaged stands for User Owns Everything. You create, fix, update, and scale each VM yourself.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Related Glossary Terms

Frequently Asked Questions

Can I add a VM to an unmanaged instance group after it is created?

Yes, you can add existing VMs to an unmanaged instance group at any time using the gcloud command or the Cloud Console. The VM must be in the same zone as the group unless the group is regional.

Does an unmanaged instance group support autoscaling?

No, autoscaling is only available for managed instance groups. Unmanaged groups require manual addition or removal of VMs.

Can I use an unmanaged instance group with a global load balancer?

Yes, you can use an unmanaged instance group as a backend for a global HTTP(S) load balancer, as long as the group is zonal or regional and the load balancer is configured accordingly.

Do unmanaged instance groups cost money on their own?

No, there is no charge for creating or maintaining an unmanaged instance group. You only pay for the underlying VM instances and any other resources like load balancers.

How do I remove a VM from an unmanaged instance group without deleting it?

You can use the remove-instances subcommand of the gcloud compute instance-groups unmanaged command. The VM continues to run but is no longer part of the group.

Can I convert an unmanaged instance group into a managed instance group?

No, you cannot directly convert it. You must create a new managed instance group from an instance template and migrate your workloads to the new VMs.

Summary

An unmanaged instance group is a simple collection of virtual machines in Google Cloud that you manage individually. It is the right choice when you have existing VMs that are not identical and you need to group them for load balancing or other networking purposes. Unlike managed instance groups, unmanaged groups provide no automation features such as autoscaling, autohealing, or rolling updates. You are responsible for adding, removing, updating, and repairing every VM in the group.

This concept matters in cloud certifications because it tests your understanding of when to use different operational models. Scenarios involving heterogeneous VMs, lift-and-shift migrations, or manual management point to unmanaged instance groups. Questions will often compare managed and unmanaged groups, testing your ability to choose based on requirements like identical instances, automation, and control.

For exams, remember the key tradeoff: managed groups give you automation but enforce identical VMs; unmanaged groups give you flexibility but require manual work. Know the basic gcloud commands and the fact that unmanaged groups are always a prerequisite for load balancers when you cannot use managed groups. Avoid common mistakes like assuming autoscaling or autohealing exists in unmanaged groups. With this understanding, you will be ready to answer both scenario and configuration questions correctly.