Skip to content

azurermVirtualWan

Manages a Virtual WAN.

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.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-resources",
  }
);
const azurermVirtualWanExample = new azurerm.virtualWan.VirtualWan(
  this,
  "example_1",
  {
    location: azurermResourceGroupExample.location,
    name: "example-vwan",
    resource_group_name: azurermResourceGroupExample.name,
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermVirtualWanExample.overrideLogicalId("example");

Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Virtual WAN. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) The name of the resource group in which to create the Virtual WAN. Changing this forces a new resource to be created.

  • location - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • disableVpnEncryption - (Optional) Boolean flag to specify whether VPN encryption is disabled. Defaults to false.

  • allowBranchToBranchTraffic - (Optional) Boolean flag to specify whether branch to branch traffic is allowed. Defaults to true.

  • office365LocalBreakoutCategory - (Optional) Specifies the Office365 local breakout category. Possible values include: optimize, optimizeAndAllow, all, none. Defaults to none.

  • type - (Optional) Specifies the Virtual WAN type. Possible Values include: basic and standard. Defaults to standard.

  • tags - (Optional) A mapping of tags to assign to the Virtual WAN.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Virtual WAN.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the Virtual WAN.
  • update - (Defaults to 30 minutes) Used when updating the Virtual WAN.
  • read - (Defaults to 5 minutes) Used when retrieving the Virtual WAN.
  • delete - (Defaults to 30 minutes) Used when deleting the Virtual WAN.

Import

Virtual WAN can be imported using the resourceId, e.g.

terraform import azurerm_virtual_wan.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualWans/testvwan