azurerm_mobile_network_attached_data_network

Manages a Mobile Network Attached Data Network.

Example Usage

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

resource "azurerm_databox_edge_device" "example" {
  name                = "example-device"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location

  sku_name = "EdgeP_Base-Standard"
}

resource "azurerm_mobile_network" "example" {
  name                = "example-mn"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  mobile_country_code = "001"
  mobile_network_code = "01"
}

resource "azurerm_mobile_network_packet_core_control_plane" "example" {
  name                              = "example-mnpccp"
  resource_group_name               = azurerm_resource_group.example.name
  location                          = "West Europe"
  sku                               = "G0"
  mobile_network_id                 = azurerm_mobile_network.example.id
  control_plane_access_name         = "default-interface"
  control_plane_access_ipv4_address = "192.168.1.199"
  control_plane_access_ipv4_gateway = "192.168.1.1"
  control_plane_access_ipv4_subnet  = "192.168.1.0/25"

  platform {
    type           = "AKS-HCI"
    edge_device_id = azurerm_databox_edge_device.example.id
  }
}

resource "azurerm_mobile_network_packet_core_data_plane" "example" {
  name                                        = "example-mnpcdp"
  mobile_network_packet_core_control_plane_id = azurerm_mobile_network_packet_core_control_plane.example.id
  location                                    = azurerm_resource_group.example.location
  user_plane_access_name                      = "default-interface"
  user_plane_access_ipv4_address              = "192.168.1.199"
  user_plane_access_ipv4_gateway              = "192.168.1.1"
  user_plane_access_ipv4_subnet               = "192.168.1.0/25"
}

resource "azurerm_mobile_network_data_network" "example" {
  name              = "example-data-network"
  mobile_network_id = azurerm_mobile_network.example.id
  location          = azurerm_resource_group.example.location
}

resource "azurerm_mobile_network_attached_data_network" "example" {
  mobile_network_data_network_name            = azurerm_mobile_network_data_network.example.name
  mobile_network_packet_core_data_plane_id    = azurerm_mobile_network_packet_core_data_plane.example.id
  location                                    = azurerm_resource_group.example.location
  dns_addresses                               = ["1.1.1.1"]
  user_equipment_address_pool_prefixes        = ["2.4.1.0/24"]
  user_equipment_static_address_pool_prefixes = ["2.4.2.0/24"]
  user_plane_access_name                      = "test"
  user_plane_access_ipv4_address              = "10.204.141.4"
  user_plane_access_ipv4_gateway              = "10.204.141.1"
  user_plane_access_ipv4_subnet               = "10.204.141.0/24"

  network_address_port_translation {
    pinhole_maximum_number          = 65536
    icmp_pinhole_timeout_in_seconds = 30
    tcp_pinhole_timeout_in_seconds  = 100
    udp_pinhole_timeout_in_seconds  = 39

    port_range {
      maximum = 49999
      minimum = 1024
    }
    tcp_port_reuse_minimum_hold_time_in_seconds     = 120
    udp_tcp_port_reuse_minimum_hold_time_in_seconds = 60

  }

  tags = {
    key = "value"
  }

}

Arguments Reference

The following arguments are supported:


A network_address_port_translation block supports the following:


A port_range block supports the following:

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

Mobile Network Attached Data Network can be imported using the resource id, e.g.

terraform import azurerm_mobile_network_attached_data_network.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/packetCoreControlPlane1/packetCoreDataPlanes/packetCoreDataPlane1/attachedDataNetworks/attachedDataNetwork1