azurerm_resource_management_private_link_association

Manages a Resource Management Private Link Association.

Example Usage

data "azurerm_client_config" "example" {}

data "azurerm_management_group" "example" {
  name = data.azurerm_client_config.example.tenant_id
}

resource "azurerm_resource_group" "example" {
  name     = "example"
  location = "West Europe"
}

resource "azurerm_resource_management_private_link" "example" {
  name                = "example"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
}

resource "random_uuid" "example" {
}

resource "azurerm_resource_management_private_link_association" "example" {
  name                                = random_uuid.example.result
  management_group_id                 = azurerm_management_group.example.id
  resource_management_private_link_id = azurerm_resource_management_private_link.example.id
  public_network_access_enabled       = true
}

Arguments Reference

The following arguments are supported:

resource "azurerm_resource_management_private_link_association" "example" {
  management_group_id                 = azurerm_management_group.example.id
  resource_management_private_link_id = azurerm_resource_management_private_link.example.id
  public_network_access_enabled       = true
  lifecycle {
    ignore_changes = [name]
  }
}

Attributes Reference

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


Timeouts

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

Import

An existing Private Link Association can be imported into Terraform using the resource id, e.g.

terraform import azurerm_resource_management_private_link_association.example /providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/privateLinkAssociations/00000000-0000-0000-0000-000000000000