1. Packages
  2. Azure Classic
  3. API Docs
  4. mobile
  5. getNetworkAttachedDataNetwork

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.mobile.getNetworkAttachedDataNetwork

Explore with Pulumi AI

Use this data source to access information about an existing Mobile Network Attached Data Network.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.mobile.getNetworkPacketCoreControlPlane({
    name: "example-mnpccp",
    resourceGroupName: "example-rg",
});
const exampleGetNetworkAttachedDataNetwork = Promise.all([example, example]).then(([example, example1]) => azure.mobile.getNetworkAttachedDataNetwork({
    mobileNetworkDataNetworkName: example.name,
    mobileNetworkPacketCoreDataPlaneId: example1.id,
}));
Copy
import pulumi
import pulumi_azure as azure

example = azure.mobile.get_network_packet_core_control_plane(name="example-mnpccp",
    resource_group_name="example-rg")
example_get_network_attached_data_network = azure.mobile.get_network_attached_data_network(mobile_network_data_network_name=example.name,
    mobile_network_packet_core_data_plane_id=example.id)
Copy
package main

import (
	"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 := mobile.LookupNetworkPacketCoreControlPlane(ctx, &mobile.LookupNetworkPacketCoreControlPlaneArgs{
			Name:              "example-mnpccp",
			ResourceGroupName: "example-rg",
		}, nil)
		if err != nil {
			return err
		}
		_, err = mobile.LookupNetworkAttachedDataNetwork(ctx, &mobile.LookupNetworkAttachedDataNetworkArgs{
			MobileNetworkDataNetworkName:       example.Name,
			MobileNetworkPacketCoreDataPlaneId: example.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.Mobile.GetNetworkPacketCoreControlPlane.Invoke(new()
    {
        Name = "example-mnpccp",
        ResourceGroupName = "example-rg",
    });

    var exampleGetNetworkAttachedDataNetwork = Azure.Mobile.GetNetworkAttachedDataNetwork.Invoke(new()
    {
        MobileNetworkDataNetworkName = example.Apply(getNetworkPacketCoreControlPlaneResult => getNetworkPacketCoreControlPlaneResult.Name),
        MobileNetworkPacketCoreDataPlaneId = example.Apply(getNetworkPacketCoreControlPlaneResult => getNetworkPacketCoreControlPlaneResult.Id),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mobile.MobileFunctions;
import com.pulumi.azure.mobile.inputs.GetNetworkPacketCoreControlPlaneArgs;
import com.pulumi.azure.mobile.inputs.GetNetworkAttachedDataNetworkArgs;
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) {
        final var example = MobileFunctions.getNetworkPacketCoreControlPlane(GetNetworkPacketCoreControlPlaneArgs.builder()
            .name("example-mnpccp")
            .resourceGroupName("example-rg")
            .build());

        final var exampleGetNetworkAttachedDataNetwork = MobileFunctions.getNetworkAttachedDataNetwork(GetNetworkAttachedDataNetworkArgs.builder()
            .mobileNetworkDataNetworkName(example.applyValue(getNetworkPacketCoreControlPlaneResult -> getNetworkPacketCoreControlPlaneResult.name()))
            .mobileNetworkPacketCoreDataPlaneId(example.applyValue(getNetworkPacketCoreControlPlaneResult -> getNetworkPacketCoreControlPlaneResult.id()))
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:mobile:getNetworkPacketCoreControlPlane
      arguments:
        name: example-mnpccp
        resourceGroupName: example-rg
  exampleGetNetworkAttachedDataNetwork:
    fn::invoke:
      function: azure:mobile:getNetworkAttachedDataNetwork
      arguments:
        mobileNetworkDataNetworkName: ${example.name}
        mobileNetworkPacketCoreDataPlaneId: ${example.id}
Copy

Using getNetworkAttachedDataNetwork

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNetworkAttachedDataNetwork(args: GetNetworkAttachedDataNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkAttachedDataNetworkResult>
function getNetworkAttachedDataNetworkOutput(args: GetNetworkAttachedDataNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkAttachedDataNetworkResult>
Copy
def get_network_attached_data_network(mobile_network_data_network_name: Optional[str] = None,
                                      mobile_network_packet_core_data_plane_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetNetworkAttachedDataNetworkResult
def get_network_attached_data_network_output(mobile_network_data_network_name: Optional[pulumi.Input[str]] = None,
                                      mobile_network_packet_core_data_plane_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetNetworkAttachedDataNetworkResult]
Copy
func LookupNetworkAttachedDataNetwork(ctx *Context, args *LookupNetworkAttachedDataNetworkArgs, opts ...InvokeOption) (*LookupNetworkAttachedDataNetworkResult, error)
func LookupNetworkAttachedDataNetworkOutput(ctx *Context, args *LookupNetworkAttachedDataNetworkOutputArgs, opts ...InvokeOption) LookupNetworkAttachedDataNetworkResultOutput
Copy

> Note: This function is named LookupNetworkAttachedDataNetwork in the Go SDK.

public static class GetNetworkAttachedDataNetwork 
{
    public static Task<GetNetworkAttachedDataNetworkResult> InvokeAsync(GetNetworkAttachedDataNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkAttachedDataNetworkResult> Invoke(GetNetworkAttachedDataNetworkInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkAttachedDataNetworkResult> getNetworkAttachedDataNetwork(GetNetworkAttachedDataNetworkArgs args, InvokeOptions options)
public static Output<GetNetworkAttachedDataNetworkResult> getNetworkAttachedDataNetwork(GetNetworkAttachedDataNetworkArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:mobile/getNetworkAttachedDataNetwork:getNetworkAttachedDataNetwork
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MobileNetworkDataNetworkName This property is required. string
The Name of the azure.mobile.NetworkDataNetwork this resource belongs to.
MobileNetworkPacketCoreDataPlaneId This property is required. string
The ID of the azure.mobile.NetworkPacketCoreDataPlane which the Mobile Network Attached Data Network belongs to.
MobileNetworkDataNetworkName This property is required. string
The Name of the azure.mobile.NetworkDataNetwork this resource belongs to.
MobileNetworkPacketCoreDataPlaneId This property is required. string
The ID of the azure.mobile.NetworkPacketCoreDataPlane which the Mobile Network Attached Data Network belongs to.
mobileNetworkDataNetworkName This property is required. String
The Name of the azure.mobile.NetworkDataNetwork this resource belongs to.
mobileNetworkPacketCoreDataPlaneId This property is required. String
The ID of the azure.mobile.NetworkPacketCoreDataPlane which the Mobile Network Attached Data Network belongs to.
mobileNetworkDataNetworkName This property is required. string
The Name of the azure.mobile.NetworkDataNetwork this resource belongs to.
mobileNetworkPacketCoreDataPlaneId This property is required. string
The ID of the azure.mobile.NetworkPacketCoreDataPlane which the Mobile Network Attached Data Network belongs to.
mobile_network_data_network_name This property is required. str
The Name of the azure.mobile.NetworkDataNetwork this resource belongs to.
mobile_network_packet_core_data_plane_id This property is required. str
The ID of the azure.mobile.NetworkPacketCoreDataPlane which the Mobile Network Attached Data Network belongs to.
mobileNetworkDataNetworkName This property is required. String
The Name of the azure.mobile.NetworkDataNetwork this resource belongs to.
mobileNetworkPacketCoreDataPlaneId This property is required. String
The ID of the azure.mobile.NetworkPacketCoreDataPlane which the Mobile Network Attached Data Network belongs to.

getNetworkAttachedDataNetwork Result

The following output properties are available:

DnsAddresses List<string>
The DNS servers to signal to UEs to use for this attached data network.
Id string
The provider-assigned unique ID for this managed resource.
Location string
The Azure Region where the Mobile Network Attached Data Network should exist.
MobileNetworkDataNetworkName string
MobileNetworkPacketCoreDataPlaneId string
NetworkAddressPortTranslations List<GetNetworkAttachedDataNetworkNetworkAddressPortTranslation>
A network_address_port_translation block as defined below.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
UserEquipmentAddressPoolPrefixes List<string>
UserEquipmentStaticAddressPoolPrefixes List<string>
UserPlaneAccessIpv4Address string
The IPv4 address for the user data plane interface.
UserPlaneAccessIpv4Gateway string
The default IPv4 gateway for the user data plane interface.
UserPlaneAccessIpv4Subnet string
The IPv4 subnet for the user data plane interface.
UserPlaneAccessName string
The logical name for thie user data plane interface.
DnsAddresses []string
The DNS servers to signal to UEs to use for this attached data network.
Id string
The provider-assigned unique ID for this managed resource.
Location string
The Azure Region where the Mobile Network Attached Data Network should exist.
MobileNetworkDataNetworkName string
MobileNetworkPacketCoreDataPlaneId string
NetworkAddressPortTranslations []GetNetworkAttachedDataNetworkNetworkAddressPortTranslation
A network_address_port_translation block as defined below.
Tags map[string]string
A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
UserEquipmentAddressPoolPrefixes []string
UserEquipmentStaticAddressPoolPrefixes []string
UserPlaneAccessIpv4Address string
The IPv4 address for the user data plane interface.
UserPlaneAccessIpv4Gateway string
The default IPv4 gateway for the user data plane interface.
UserPlaneAccessIpv4Subnet string
The IPv4 subnet for the user data plane interface.
UserPlaneAccessName string
The logical name for thie user data plane interface.
dnsAddresses List<String>
The DNS servers to signal to UEs to use for this attached data network.
id String
The provider-assigned unique ID for this managed resource.
location String
The Azure Region where the Mobile Network Attached Data Network should exist.
mobileNetworkDataNetworkName String
mobileNetworkPacketCoreDataPlaneId String
networkAddressPortTranslations List<GetNetworkAttachedDataNetworkNetworkAddressPortTranslation>
A network_address_port_translation block as defined below.
tags Map<String,String>
A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
userEquipmentAddressPoolPrefixes List<String>
userEquipmentStaticAddressPoolPrefixes List<String>
userPlaneAccessIpv4Address String
The IPv4 address for the user data plane interface.
userPlaneAccessIpv4Gateway String
The default IPv4 gateway for the user data plane interface.
userPlaneAccessIpv4Subnet String
The IPv4 subnet for the user data plane interface.
userPlaneAccessName String
The logical name for thie user data plane interface.
dnsAddresses string[]
The DNS servers to signal to UEs to use for this attached data network.
id string
The provider-assigned unique ID for this managed resource.
location string
The Azure Region where the Mobile Network Attached Data Network should exist.
mobileNetworkDataNetworkName string
mobileNetworkPacketCoreDataPlaneId string
networkAddressPortTranslations GetNetworkAttachedDataNetworkNetworkAddressPortTranslation[]
A network_address_port_translation block as defined below.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
userEquipmentAddressPoolPrefixes string[]
userEquipmentStaticAddressPoolPrefixes string[]
userPlaneAccessIpv4Address string
The IPv4 address for the user data plane interface.
userPlaneAccessIpv4Gateway string
The default IPv4 gateway for the user data plane interface.
userPlaneAccessIpv4Subnet string
The IPv4 subnet for the user data plane interface.
userPlaneAccessName string
The logical name for thie user data plane interface.
dns_addresses Sequence[str]
The DNS servers to signal to UEs to use for this attached data network.
id str
The provider-assigned unique ID for this managed resource.
location str
The Azure Region where the Mobile Network Attached Data Network should exist.
mobile_network_data_network_name str
mobile_network_packet_core_data_plane_id str
network_address_port_translations Sequence[GetNetworkAttachedDataNetworkNetworkAddressPortTranslation]
A network_address_port_translation block as defined below.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
user_equipment_address_pool_prefixes Sequence[str]
user_equipment_static_address_pool_prefixes Sequence[str]
user_plane_access_ipv4_address str
The IPv4 address for the user data plane interface.
user_plane_access_ipv4_gateway str
The default IPv4 gateway for the user data plane interface.
user_plane_access_ipv4_subnet str
The IPv4 subnet for the user data plane interface.
user_plane_access_name str
The logical name for thie user data plane interface.
dnsAddresses List<String>
The DNS servers to signal to UEs to use for this attached data network.
id String
The provider-assigned unique ID for this managed resource.
location String
The Azure Region where the Mobile Network Attached Data Network should exist.
mobileNetworkDataNetworkName String
mobileNetworkPacketCoreDataPlaneId String
networkAddressPortTranslations List<Property Map>
A network_address_port_translation block as defined below.
tags Map<String>
A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
userEquipmentAddressPoolPrefixes List<String>
userEquipmentStaticAddressPoolPrefixes List<String>
userPlaneAccessIpv4Address String
The IPv4 address for the user data plane interface.
userPlaneAccessIpv4Gateway String
The default IPv4 gateway for the user data plane interface.
userPlaneAccessIpv4Subnet String
The IPv4 subnet for the user data plane interface.
userPlaneAccessName String
The logical name for thie user data plane interface.

Supporting Types

GetNetworkAttachedDataNetworkNetworkAddressPortTranslation

IcmpPinholeTimeoutInSeconds This property is required. int
PortRanges This property is required. List<GetNetworkAttachedDataNetworkNetworkAddressPortTranslationPortRange>
A port_range block as defined below.
TcpPinholeTimeoutInSeconds This property is required. int
TcpPortReuseMinimumHoldTimeInSeconds This property is required. int
Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
UdpPinholeTimeoutInSeconds This property is required. int
UdpPortReuseMinimumHoldTimeInSeconds This property is required. int
Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
PinholeMaximumNumber int
IcmpPinholeTimeoutInSeconds This property is required. int
PortRanges This property is required. []GetNetworkAttachedDataNetworkNetworkAddressPortTranslationPortRange
A port_range block as defined below.
TcpPinholeTimeoutInSeconds This property is required. int
TcpPortReuseMinimumHoldTimeInSeconds This property is required. int
Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
UdpPinholeTimeoutInSeconds This property is required. int
UdpPortReuseMinimumHoldTimeInSeconds This property is required. int
Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
PinholeMaximumNumber int
icmpPinholeTimeoutInSeconds This property is required. Integer
portRanges This property is required. List<GetNetworkAttachedDataNetworkNetworkAddressPortTranslationPortRange>
A port_range block as defined below.
tcpPinholeTimeoutInSeconds This property is required. Integer
tcpPortReuseMinimumHoldTimeInSeconds This property is required. Integer
Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
udpPinholeTimeoutInSeconds This property is required. Integer
udpPortReuseMinimumHoldTimeInSeconds This property is required. Integer
Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
pinholeMaximumNumber Integer
icmpPinholeTimeoutInSeconds This property is required. number
portRanges This property is required. GetNetworkAttachedDataNetworkNetworkAddressPortTranslationPortRange[]
A port_range block as defined below.
tcpPinholeTimeoutInSeconds This property is required. number
tcpPortReuseMinimumHoldTimeInSeconds This property is required. number
Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
udpPinholeTimeoutInSeconds This property is required. number
udpPortReuseMinimumHoldTimeInSeconds This property is required. number
Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
pinholeMaximumNumber number
icmp_pinhole_timeout_in_seconds This property is required. int
port_ranges This property is required. Sequence[GetNetworkAttachedDataNetworkNetworkAddressPortTranslationPortRange]
A port_range block as defined below.
tcp_pinhole_timeout_in_seconds This property is required. int
tcp_port_reuse_minimum_hold_time_in_seconds This property is required. int
Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
udp_pinhole_timeout_in_seconds This property is required. int
udp_port_reuse_minimum_hold_time_in_seconds This property is required. int
Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
pinhole_maximum_number int
icmpPinholeTimeoutInSeconds This property is required. Number
portRanges This property is required. List<Property Map>
A port_range block as defined below.
tcpPinholeTimeoutInSeconds This property is required. Number
tcpPortReuseMinimumHoldTimeInSeconds This property is required. Number
Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
udpPinholeTimeoutInSeconds This property is required. Number
udpPortReuseMinimumHoldTimeInSeconds This property is required. Number
Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
pinholeMaximumNumber Number

GetNetworkAttachedDataNetworkNetworkAddressPortTranslationPortRange

Maximum This property is required. int
The maximum port number.
Minimum This property is required. int
The minimum port number.
Maximum This property is required. int
The maximum port number.
Minimum This property is required. int
The minimum port number.
maximum This property is required. Integer
The maximum port number.
minimum This property is required. Integer
The minimum port number.
maximum This property is required. number
The maximum port number.
minimum This property is required. number
The minimum port number.
maximum This property is required. int
The maximum port number.
minimum This property is required. int
The minimum port number.
maximum This property is required. Number
The maximum port number.
minimum This property is required. Number
The minimum port number.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.