Skip to content

azurermVmwareCluster

Manages a VMware Cluster.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
  disable_correlation_request_id: true,
  features: [{}],
});
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-resources",
  }
);
const azurermVmwarePrivateCloudExample =
  new azurerm.vmwarePrivateCloud.VmwarePrivateCloud(this, "example_2", {
    internet_connection_enabled: false,
    location: azurermResourceGroupExample.location,
    management_cluster: [
      {
        size: 3,
      },
    ],
    name: "example-vmware-private-cloud",
    network_subnet_cidr: "192.168.48.0/22",
    nsxt_password: "QazWsx13$Edc",
    resource_group_name: azurermResourceGroupExample.name,
    sku_name: "av36",
    vcenter_password: "WsxEdc23$Rfv",
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermVmwarePrivateCloudExample.overrideLogicalId("example");
const azurermVmwareClusterExample = new azurerm.vmwareCluster.VmwareCluster(
  this,
  "example_3",
  {
    cluster_node_count: 3,
    name: "example-Cluster",
    sku_name: "av36",
    vmware_cloud_id: azurermVmwarePrivateCloudExample.id,
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermVmwareClusterExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • name - (Required) The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

  • vmwareCloudId - (Required) The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

  • clusterNodeCount - (Required) The count of the VMware Cluster nodes.

  • skuName - (Required) The cluster SKU to use. Possible values are av20, av36, av36T, av36P and av52. Changing this forces a new VMware Cluster to be created.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the VMware Cluster.

  • clusterNumber - A number that identifies this VMware Cluster in its VMware Private Cloud.

  • hosts - A list of host of the VMware Cluster.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 hours) Used when creating the VMware Cluster.
  • read - (Defaults to 5 minutes) Used when retrieving the VMware Cluster.
  • update - (Defaults to 5 hours) Used when updating the VMware Cluster.
  • delete - (Defaults to 5 hours) Used when deleting the VMware Cluster.

Import

VMware Clusters can be imported using the resourceId, e.g.

terraform import azurerm_vmware_cluster.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AVS/privateClouds/privateCloud1/clusters/cluster1