Manages an Azure VMware Solution Private Cloud.
provider "azurerm" {
features {}
disable_correlation_request_id = true
}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_vmware_private_cloud" "example" {
name = "example-vmware-private-cloud"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
sku_name = "av36"
management_cluster {
size = 3
}
network_subnet_cidr = "192.168.48.0/22"
internet_connection_enabled = false
nsxt_password = "QazWsx13$Edc"
vcenter_password = "WsxEdc23$Rfv"
}
The following arguments are supported:
name
- (Required) The name which should be used for this Azure VMware Solution Private Cloud. Changing this forces a new Azure VMware Solution Private Cloud to be created.
resource_group_name
- (Required) The name of the Resource Group where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
location
- (Required) The Azure Region where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
management_cluster
- (Required) A management_cluster
block as defined below.
network_subnet_cidr
- (Required) The subnet which should be unique across virtual network in your subscription as well as on-premise. Changing this forces a new Azure VMware Solution Private Cloud to be created.
sku_name
- (Required) The Name of the SKU used for this Azure VMware Solution Private Cloud. Possible values are av20
, av36
, av36t
, av36p
, av36pt
, av52
, av52t
, and av64
. Changing this forces a new Azure VMware Solution Private Cloud to be created.
internet_connection_enabled
- (Optional) Is the Azure VMware Solution Private Cloud connected to the internet? This field can not be updated with management_cluster[0].size
together.
nsxt_password
- (Optional) The password of the VMware NSX Manager cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
vcenter_password
- (Optional) The password of the VMware vCenter Server cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
tags
- (Optional) A mapping of tags which should be assigned to the Azure VMware Solution Private Cloud.
A management_cluster
block supports the following:
size
- (Required) The size of the management cluster. This field can not updated with internet_connection_enabled
together.In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Azure VMware Solution Private Cloud.
circuit
- A circuit
block as defined below.
hcx_cloud_manager_endpoint
- The endpoint for the VMware HCX Cloud Manager.
nsxt_manager_endpoint
- The endpoint for the VMware NSX Manager.
vcsa_endpoint
- The endpoint for VMware vCenter Server Appliance.
nsxt_certificate_thumbprint
- The thumbprint of the VMware NSX Manager SSL certificate.
vcenter_certificate_thumbprint
- The thumbprint of the VMware vCenter Server SSL certificate.
management_subnet_cidr
- The network used to access VMware vCenter Server and NSX Manager.
provisioning_subnet_cidr
- The network which is used for virtual machine cold migration, cloning, and snapshot migration.
vmotion_subnet_cidr
- The network which is used for live migration of virtual machines.
A circuit
block exports the following:
express_route_id
- The ID of the ExpressRoute Circuit.
express_route_private_peering_id
- The ID of the ExpressRoute Circuit private peering.
primary_subnet_cidr
- The CIDR of the primary subnet.
secondary_subnet_cidr
- The CIDR of the secondary subnet.
A management_cluster
block exports the following:
id
- The ID of the management cluster.
hosts
- A list of hosts in the management cluster.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 10 hours) Used when creating the Azure VMware Solution Private Cloud.read
- (Defaults to 5 minutes) Used when retrieving the Azure VMware Solution Private Cloud.update
- (Defaults to 10 hours) Used when updating the Azure VMware Solution Private Cloud.delete
- (Defaults to 10 hours) Used when deleting the Azure VMware Solution Private Cloud.Azure VMware Solution Private Clouds can be imported using the resource id
, e.g.
terraform import azurerm_vmware_private_cloud.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/privateCloud1