commvault_vm_group resource type to create and delete a VM group in the CommCell environment.
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.
The following arguments are supported.
The name of the VM group.
The ID of the plan that you want to associate with the VM group.
The ID of the hypervisor client.
The VMs that you want to back up in a VM group.
The tags that you want to back up in a VM group.
The ID of the company that you want the VM group to associate with.
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"]