azurerm_network_manager_subscription_connection

Manages a Network Manager Subscription Connection which may cross tenants.

Example Usage

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

data "azurerm_subscription" "current" {
}

resource "azurerm_network_manager" "example" {
  name                = "example-networkmanager"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  scope {
    subscription_ids = [data.azurerm_subscription.current.id]
  }
  scope_accesses = ["SecurityAdmin"]
}

resource "azurerm_network_manager_subscription_connection" "example" {
  name               = "example-nsnmc"
  subscription_id    = data.azurerm_subscription.current.id
  network_manager_id = azurerm_network_manager.example.id
  description        = "example"
}

Arguments Reference

The following arguments are supported:

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

Network Subscription Network Manager Connection can be imported using the resource id, e.g.

terraform import azurerm_network_manager_subscription_connection.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkManagerConnections/networkManagerConnection1