Skip to content

azurermVmwareExpressRouteAuthorization

Manages an Express Route VMware Authorization.

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 azurermVmwareExpressRouteAuthorizationExample =
  new azurerm.vmwareExpressRouteAuthorization.VmwareExpressRouteAuthorization(
    this,
    "example_3",
    {
      name: "example-authorization",
      private_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.*/
azurermVmwareExpressRouteAuthorizationExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

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

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

Attributes Reference

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

  • id - The ID of the VMware Authorization.

  • expressRouteAuthorizationId - The ID of the Express Route Circuit Authorization.

  • expressRouteAuthorizationKey - The key of the Express Route Circuit Authorization.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the VMware Authorization.
  • read - (Defaults to 5 minutes) Used when retrieving the VMware Authorization.
  • delete - (Defaults to 30 minutes) Used when deleting the VMware Authorization.

Import

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

terraform import azurerm_vmware_express_route_authorization.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AVS/privateClouds/privateCloud1/authorizations/authorization1