Skip to content

azurermMobileNetwork

Manages a Mobile Network.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "east us",
    name: "example-resources",
  }
);
const azurermMobileNetworkExample = new azurerm.mobileNetwork.MobileNetwork(
  this,
  "example_1",
  {
    location: azurermResourceGroupExample.location,
    mobile_country_code: "001",
    mobile_network_code: "01",
    name: "example-mn",
    resource_group_name: azurermResourceGroupExample.name,
    tags: {
      key: "value",
    },
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMobileNetworkExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • name - (Required) Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.

  • resourceGroupName - (Required) Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.

  • location - (Required) Specifies the Azure Region where the Mobile Network should exist. Changing this forces a new Mobile Network to be created. The possible values are eastus and northeurope.

  • mobileCountryCode - (Required) Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 .

  • mobileNetworkCode - (Required) Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 .

  • tags - (Optional) A mapping of tags which should be assigned to the Mobile Network.


Attributes Reference

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

  • id - The ID of the Mobile Network.

  • serviceKey - The mobile network resource identifier.

Timeouts

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

  • create - (Defaults to 180 minutes) Used when creating the Mobile Network.
  • read - (Defaults to 5 minutes) Used when retrieving the Mobile Network.
  • update - (Defaults to 180 minutes) Used when updating the Mobile Network.
  • delete - (Defaults to 180 minutes) Used when deleting the Mobile Network.

Import

Mobile Network can be imported using the resourceId, e.g.

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