We recommend using Azure Native.
azure.mobile.Network
Explore with Pulumi AI
Manages a Mobile Network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "east us",
});
const exampleNetwork = new azure.mobile.Network("example", {
name: "example-mn",
resourceGroupName: example.name,
location: example.location,
mobileCountryCode: "001",
mobileNetworkCode: "01",
tags: {
key: "value",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="east us")
example_network = azure.mobile.Network("example",
name="example-mn",
resource_group_name=example.name,
location=example.location,
mobile_country_code="001",
mobile_network_code="01",
tags={
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mobile"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("east us"),
})
if err != nil {
return err
}
_, err = mobile.NewNetwork(ctx, "example", &mobile.NetworkArgs{
Name: pulumi.String("example-mn"),
ResourceGroupName: example.Name,
Location: example.Location,
MobileCountryCode: pulumi.String("001"),
MobileNetworkCode: pulumi.String("01"),
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "east us",
});
var exampleNetwork = new Azure.Mobile.Network("example", new()
{
Name = "example-mn",
ResourceGroupName = example.Name,
Location = example.Location,
MobileCountryCode = "001",
MobileNetworkCode = "01",
Tags =
{
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mobile.Network;
import com.pulumi.azure.mobile.NetworkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("east us")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.name("example-mn")
.resourceGroupName(example.name())
.location(example.location())
.mobileCountryCode("001")
.mobileNetworkCode("01")
.tags(Map.of("key", "value"))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: east us
exampleNetwork:
type: azure:mobile:Network
name: example
properties:
name: example-mn
resourceGroupName: ${example.name}
location: ${example.location}
mobileCountryCode: '001'
mobileNetworkCode: '01'
tags:
key: value
Create Network Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Network(name: string, args: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
args: NetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Network(resource_name: str,
opts: Optional[ResourceOptions] = None,
mobile_country_code: Optional[str] = None,
mobile_network_code: Optional[str] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewNetwork(ctx *Context, name string, args NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs args, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: azure:mobile:Network
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkResource = new Azure.Mobile.Network("networkResource", new()
{
MobileCountryCode = "string",
MobileNetworkCode = "string",
ResourceGroupName = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := mobile.NewNetwork(ctx, "networkResource", &mobile.NetworkArgs{
MobileCountryCode: pulumi.String("string"),
MobileNetworkCode: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkResource = new Network("networkResource", NetworkArgs.builder()
.mobileCountryCode("string")
.mobileNetworkCode("string")
.resourceGroupName("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
network_resource = azure.mobile.Network("networkResource",
mobile_country_code="string",
mobile_network_code="string",
resource_group_name="string",
location="string",
name="string",
tags={
"string": "string",
})
const networkResource = new azure.mobile.Network("networkResource", {
mobileCountryCode: "string",
mobileNetworkCode: "string",
resourceGroupName: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:mobile:Network
properties:
location: string
mobileCountryCode: string
mobileNetworkCode: string
name: string
resourceGroupName: string
tags:
string: string
Network Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Network resource accepts the following input properties:
- Mobile
Country stringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Mobile
Network stringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- Location string
- 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
andnortheurope
. - Name string
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Mobile Network.
- Mobile
Country stringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Mobile
Network stringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- Location string
- 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
andnortheurope
. - Name string
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- map[string]string
- A mapping of tags which should be assigned to the Mobile Network.
- mobile
Country StringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile
Network StringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- location String
- 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
andnortheurope
. - name String
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Mobile Network.
- mobile
Country stringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile
Network stringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- resource
Group stringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- location string
- 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
andnortheurope
. - name string
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Mobile Network.
- mobile_
country_ strcode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile_
network_ strcode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- resource_
group_ strname - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- location str
- 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
andnortheurope
. - name str
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Mobile Network.
- mobile
Country StringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile
Network StringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- location String
- 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
andnortheurope
. - name String
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- Map<String>
- A mapping of tags which should be assigned to the Mobile Network.
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Key string - The mobile network resource identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Key string - The mobile network resource identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Key String - The mobile network resource identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Key string - The mobile network resource identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
key str - The mobile network resource identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Key String - The mobile network resource identifier.
Look up Existing Network Resource
Get an existing Network resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkState, opts?: CustomResourceOptions): Network
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
mobile_country_code: Optional[str] = None,
mobile_network_code: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_key: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Network
func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Location string
- 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
andnortheurope
. - Mobile
Country stringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Mobile
Network stringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Name string
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- Resource
Group stringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- Service
Key string - The mobile network resource identifier.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Mobile Network.
- Location string
- 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
andnortheurope
. - Mobile
Country stringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Mobile
Network stringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- Name string
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- Resource
Group stringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- Service
Key string - The mobile network resource identifier.
- map[string]string
- A mapping of tags which should be assigned to the Mobile Network.
- location String
- 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
andnortheurope
. - mobile
Country StringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile
Network StringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- name String
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- resource
Group StringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- service
Key String - The mobile network resource identifier.
- Map<String,String>
- A mapping of tags which should be assigned to the Mobile Network.
- location string
- 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
andnortheurope
. - mobile
Country stringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile
Network stringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- name string
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- resource
Group stringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- service
Key string - The mobile network resource identifier.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Mobile Network.
- location str
- 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
andnortheurope
. - mobile_
country_ strcode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile_
network_ strcode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- name str
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- resource_
group_ strname - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- service_
key str - The mobile network resource identifier.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Mobile Network.
- location String
- 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
andnortheurope
. - mobile
Country StringCode - Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- mobile
Network StringCode - Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 . Changing this forces a new resource to be created.
- name String
- Specifies the name which should be used for this Mobile Network. Changing this forces a new Mobile Network to be created.
- resource
Group StringName - Specifies the name of the Resource Group where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
- service
Key String - The mobile network resource identifier.
- Map<String>
- A mapping of tags which should be assigned to the Mobile Network.
Import
Mobile Network can be imported using the resource id
, e.g.
$ pulumi import azure:mobile/network:Network example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.MobileNetwork/mobileNetworks/mobileNetwork1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.