How to create a vApp in a loop, and in each vApp there are several virtual machines

Here is my terraform script. I need to create several vApps in a loop, for example vApp-1, vApp-2, and each vApp has several virtual machines. I can’t figure out the problem - what name to specify in “data vsphere_vapp_container” if the name is new with each new iteration

resource "vsphere_vapp_container" "vapp_container" {
  count = var.stands
  name = "CHEMP-STAND-${format("%04d", count.index + 1)}"
  parent_resource_pool_id = data.vsphere_compute_cluster.Cluster.resource_pool_id
 }

data "vsphere_vapp_container" "vapp" {
  name = data.vsphere_vapp_container.vapp_container
  datacenter_id = data.vsphere_datacenter.Datacenter.id
}

resource "vsphere_virtual_machine" "vm" {
  name             = "foo"
  resource_pool_id = data.vsphere_vapp_container.vapp.id
  datastore_id     = data.vsphere_datastore.Datastore.id
  num_cpus         = 1
  memory           = 1024
  guest_id         = "ubuntu64Guest"
  network_interface {
    network_id = data.vsphere_network.Network.id
  }
  disk {
    label = "disk0"
    size  = 20
  }
}

In the end, I want to get a structure like this:
vApp-1:
vm, vm, vm, vm
vApp-2:
vm vm vm vm