The commvault_vm_group Terraform Resource

Updated

On this page

Use the commvault_vm_group resource type to create and delete a VM group in the CommCell environment.

Syntax

resource "commvault_vm_group" "<local name>" 

{

vm_group_name = "<vm group name>"

plan_id = <plan ID>

client_id = <client ID>

vms = <List VMs> //Add VMs enclosed in quotes and separated by a comma

}

Where local name is the name that is used by the Commvault Terraform module to refer the resource and, has no significance in the target platform.

Arguments

The following arguments are supported.

Name

Description

Required

vm_group_name

The name of the VM group.

Yes

plan_id

The ID of the plan that you want to associate with the VM group.

Yes

client_id

The ID of the hypervisor client.

Yes

vms

The VMs that you want to back up in a VM group.

Yes

tags

The tags that you want to back up in a VM group.

No

company_id

The ID of the company that you want the VM group to associate with.

No

Example

This resource block manages the vg1 VM group.

resource "commvault_vm_group" "g1" 

{

vm_group_name = "vg1"

plan_id = "101"

client_id = "266"

vms = ["vm1","vm2"]

}