Mobile Network Args
Mobile network resource. Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2023-06-01. Other available API versions: 2022-04-01-preview, 2022-11-01, 2023-06-01, 2023-09-01, 2024-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native mobilenetwork [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Create mobile network
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var mobileNetwork = new AzureNative.MobileNetwork.MobileNetwork("mobileNetwork", new()
{
Location = "eastus",
MobileNetworkName = "testMobileNetwork",
PublicLandMobileNetworkIdentifier = new AzureNative.MobileNetwork.Inputs.PlmnIdArgs
{
Mcc = "001",
Mnc = "01",
},
PublicLandMobileNetworks = new[]
{
new AzureNative.MobileNetwork.Inputs.PublicLandMobileNetworkArgs
{
HomeNetworkPublicKeys = new AzureNative.MobileNetwork.Inputs.PublicLandMobileNetworkHomeNetworkPublicKeysArgs
{
ProfileA = new[]
{
new AzureNative.MobileNetwork.Inputs.HomeNetworkPublicKeyArgs
{
Id = 1,
Url = "https://contosovault.vault.azure.net/secrets/exampleHnpk",
},
new AzureNative.MobileNetwork.Inputs.HomeNetworkPublicKeyArgs
{
Id = 2,
Url = "https://contosovault.vault.azure.net/secrets/exampleHnpk2/5e4876e9140e4e16bfe6e2cf92e0cbd2",
},
},
ProfileB = new[]
{
new AzureNative.MobileNetwork.Inputs.HomeNetworkPublicKeyArgs
{
Id = 1,
Url = "https://contosovault.vault.azure.net/secrets/exampleHnpkProfileB",
},
},
},
Mcc = "001",
Mnc = "01",
},
},
ResourceGroupName = "rg1",
});
});
package main
import (
mobilenetwork "github.com/pulumi/pulumi-azure-native-sdk/mobilenetwork/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mobilenetwork.NewMobileNetwork(ctx, "mobileNetwork", &mobilenetwork.MobileNetworkArgs{
Location: pulumi.String("eastus"),
MobileNetworkName: pulumi.String("testMobileNetwork"),
PublicLandMobileNetworkIdentifier: &mobilenetwork.PlmnIdArgs{
Mcc: pulumi.String("001"),
Mnc: pulumi.String("01"),
},
PublicLandMobileNetworks: mobilenetwork.PublicLandMobileNetworkArray{
&mobilenetwork.PublicLandMobileNetworkArgs{
HomeNetworkPublicKeys: &mobilenetwork.PublicLandMobileNetworkHomeNetworkPublicKeysArgs{
ProfileA: mobilenetwork.HomeNetworkPublicKeyArray{
&mobilenetwork.HomeNetworkPublicKeyArgs{
Id: pulumi.Int(1),
Url: pulumi.String("https://contosovault.vault.azure.net/secrets/exampleHnpk"),
},
&mobilenetwork.HomeNetworkPublicKeyArgs{
Id: pulumi.Int(2),
Url: pulumi.String("https://contosovault.vault.azure.net/secrets/exampleHnpk2/5e4876e9140e4e16bfe6e2cf92e0cbd2"),
},
},
ProfileB: mobilenetwork.HomeNetworkPublicKeyArray{
&mobilenetwork.HomeNetworkPublicKeyArgs{
Id: pulumi.Int(1),
Url: pulumi.String("https://contosovault.vault.azure.net/secrets/exampleHnpkProfileB"),
},
},
},
Mcc: pulumi.String("001"),
Mnc: pulumi.String("01"),
},
},
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.mobilenetwork.MobileNetwork;
import com.pulumi.azurenative.mobilenetwork.MobileNetworkArgs;
import com.pulumi.azurenative.mobilenetwork.inputs.PlmnIdArgs;
import com.pulumi.azurenative.mobilenetwork.inputs.PublicLandMobileNetworkArgs;
import com.pulumi.azurenative.mobilenetwork.inputs.PublicLandMobileNetworkHomeNetworkPublicKeysArgs;
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 mobileNetwork = new MobileNetwork("mobileNetwork", MobileNetworkArgs.builder()
.location("eastus")
.mobileNetworkName("testMobileNetwork")
.publicLandMobileNetworkIdentifier(PlmnIdArgs.builder()
.mcc("001")
.mnc("01")
.build())
.publicLandMobileNetworks(PublicLandMobileNetworkArgs.builder()
.homeNetworkPublicKeys(PublicLandMobileNetworkHomeNetworkPublicKeysArgs.builder()
.profileA(
HomeNetworkPublicKeyArgs.builder()
.id(1)
.url("https://contosovault.vault.azure.net/secrets/exampleHnpk")
.build(),
HomeNetworkPublicKeyArgs.builder()
.id(2)
.url("https://contosovault.vault.azure.net/secrets/exampleHnpk2/5e4876e9140e4e16bfe6e2cf92e0cbd2")
.build())
.profileB(HomeNetworkPublicKeyArgs.builder()
.id(1)
.url("https://contosovault.vault.azure.net/secrets/exampleHnpkProfileB")
.build())
.build())
.mcc("001")
.mnc("01")
.build())
.resourceGroupName("rg1")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:mobilenetwork:MobileNetwork testMobileNetwork /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}
Constructors
Properties
The identity used to retrieve any private keys used for SUPI concealment from Azure key vault.
The name of the mobile network.
The unique public land mobile network identifier for the network. If both 'publicLandMobileNetworks' and 'publicLandMobileNetworkIdentifier' are specified, then the 'publicLandMobileNetworks' will take precedence.
A list of public land mobile networks including their identifiers. If both 'publicLandMobileNetworks' and 'publicLandMobileNetworkIdentifier' are specified, then the 'publicLandMobileNetworks' will take precedence.
The name of the resource group. The name is case insensitive.