azurerm_mobile_network_service

Manages a Mobile Network Service.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "east us"
}

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

resource "azurerm_mobile_network_service" "example" {
  name               = "example-mns"
  mobile_network_id  = azurerm_mobile_network.example.id
  location           = azurerm_resource_group.example.location
  service_precedence = 0

  pcc_rule {
    name                    = "default-rule"
    precedence              = 1
    traffic_control_enabled = true

    qos_policy {
      allocation_and_retention_priority_level = 9
      qos_indicator                           = 9
      preemption_capability                   = "NotPreempt"
      preemption_vulnerability                = "Preemptable"

      guaranteed_bit_rate {
        downlink = "100 Mbps"
        uplink   = "10 Mbps"
      }

      maximum_bit_rate {
        downlink = "1 Gbps"
        uplink   = "100 Mbps"
      }
    }

    service_data_flow_template {
      direction      = "Uplink"
      name           = "IP-to-server"
      ports          = []
      protocol       = ["ip"]
      remote_ip_list = ["10.3.4.0/24"]
    }
  }

  service_qos_policy {
    allocation_and_retention_priority_level = 9
    qos_indicator                           = 9
    preemption_capability                   = "NotPreempt"
    preemption_vulnerability                = "Preemptable"
    maximum_bit_rate {
      downlink = "1 Gbps"
      uplink   = "100 Mbps"
    }
  }

  tags = {
    key = "value"
  }

}

Arguments Reference

The following arguments are supported:


A pcc_rule block supports the following:


A qos_policy block supports the following:


A guaranteed_bit_rate block supports the following:


A service_data_flow_template block supports the following:


A service_qos_policy block supports the following:


A maximum_bit_rate 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 Service can be imported using the resource id, e.g.

terraform import azurerm_mobile_network_service.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.MobileNetwork/mobileNetworks/mobileNetwork1/services/service1