FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

azurerm_traffic_manager_profile

Creates a Traffic Manager Profile to which multiple endpoints can be attached.

Example Usage

resource "azurerm_traffic_manager_profile" "test" {
  name                = "profile1"
  resource_group_name = "${azurerm_resource_group.test.name}"
  location            = "West US"

  traffic_routing_method = "Weighted"

  dns_config {
    relative_name = "profile1"
    ttl           = 100
  }

  monitor_config {
    protocol = "http"
    port     = 80
    path     = "/"
  }
  
  tags {
    environment = "Production"
  }
}

Argument Reference

The following arguments are supported:

The dns_config block supports:

The monitor_config block supports:

Attributes Reference

The following attributes are exported:

Notes

The Traffic Manager is created with the location global.

Import

Traffic Manager Profiles can be imported using the resource id, e.g.

terraform import azurerm_traffic_manager_profile.testProfile /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/trafficManagerProfiles/mytrafficmanagerprofile1

See the source of this document at Terraform.io