We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.mobile.getNetworkAttachedDataNetwork
Start a Neo task
Explain and create an azure.mobile.getNetworkAttachedDataNetwork resource
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,
}));
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)
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
})
}
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),
});
});
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.name())
.mobileNetworkPacketCoreDataPlaneId(example.id())
.build());
}
}
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}
API Providers
This data source uses the following Azure API Providers:
Microsoft.MobileNetwork- 2022-11-01
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>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]func LookupNetworkAttachedDataNetwork(ctx *Context, args *LookupNetworkAttachedDataNetworkArgs, opts ...InvokeOption) (*LookupNetworkAttachedDataNetworkResult, error)
func LookupNetworkAttachedDataNetworkOutput(ctx *Context, args *LookupNetworkAttachedDataNetworkOutputArgs, opts ...InvokeOption) LookupNetworkAttachedDataNetworkResultOutput> 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)
}public static CompletableFuture<GetNetworkAttachedDataNetworkResult> getNetworkAttachedDataNetwork(GetNetworkAttachedDataNetworkArgs args, InvokeOptions options)
public static Output<GetNetworkAttachedDataNetworkResult> getNetworkAttachedDataNetwork(GetNetworkAttachedDataNetworkArgs args, InvokeOptions options)
fn::invoke:
function: azure:mobile/getNetworkAttachedDataNetwork:getNetworkAttachedDataNetwork
arguments:
# arguments dictionaryThe following arguments are supported:
- Mobile
Network stringData Network Name - The Name of the
azure.mobile.NetworkDataNetworkthis resource belongs to. - Mobile
Network stringPacket Core Data Plane Id - The ID of the
azure.mobile.NetworkPacketCoreDataPlanewhich the Mobile Network Attached Data Network belongs to.
- Mobile
Network stringData Network Name - The Name of the
azure.mobile.NetworkDataNetworkthis resource belongs to. - Mobile
Network stringPacket Core Data Plane Id - The ID of the
azure.mobile.NetworkPacketCoreDataPlanewhich the Mobile Network Attached Data Network belongs to.
- mobile
Network StringData Network Name - The Name of the
azure.mobile.NetworkDataNetworkthis resource belongs to. - mobile
Network StringPacket Core Data Plane Id - The ID of the
azure.mobile.NetworkPacketCoreDataPlanewhich the Mobile Network Attached Data Network belongs to.
- mobile
Network stringData Network Name - The Name of the
azure.mobile.NetworkDataNetworkthis resource belongs to. - mobile
Network stringPacket Core Data Plane Id - The ID of the
azure.mobile.NetworkPacketCoreDataPlanewhich the Mobile Network Attached Data Network belongs to.
- mobile_
network_ strdata_ network_ name - The Name of the
azure.mobile.NetworkDataNetworkthis resource belongs to. - mobile_
network_ strpacket_ core_ data_ plane_ id - The ID of the
azure.mobile.NetworkPacketCoreDataPlanewhich the Mobile Network Attached Data Network belongs to.
- mobile
Network StringData Network Name - The Name of the
azure.mobile.NetworkDataNetworkthis resource belongs to. - mobile
Network StringPacket Core Data Plane Id - The ID of the
azure.mobile.NetworkPacketCoreDataPlanewhich the Mobile Network Attached Data Network belongs to.
getNetworkAttachedDataNetwork Result
The following output properties are available:
- Dns
Addresses 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.
- Mobile
Network stringData Network Name - Mobile
Network stringPacket Core Data Plane Id - Network
Address List<GetPort Translations Network Attached Data Network Network Address Port Translation> - A
network_address_port_translationblock as defined below. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
- User
Equipment List<string>Address Pool Prefixes - User
Equipment List<string>Static Address Pool Prefixes - User
Plane stringAccess Ipv4Address - The IPv4 address for the user data plane interface.
- User
Plane stringAccess Ipv4Gateway - The default IPv4 gateway for the user data plane interface.
- User
Plane stringAccess Ipv4Subnet - The IPv4 subnet for the user data plane interface.
- User
Plane stringAccess Name - The logical name for thie user data plane interface.
- Dns
Addresses []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.
- Mobile
Network stringData Network Name - Mobile
Network stringPacket Core Data Plane Id - Network
Address []GetPort Translations Network Attached Data Network Network Address Port Translation - A
network_address_port_translationblock as defined below. - map[string]string
- A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
- User
Equipment []stringAddress Pool Prefixes - User
Equipment []stringStatic Address Pool Prefixes - User
Plane stringAccess Ipv4Address - The IPv4 address for the user data plane interface.
- User
Plane stringAccess Ipv4Gateway - The default IPv4 gateway for the user data plane interface.
- User
Plane stringAccess Ipv4Subnet - The IPv4 subnet for the user data plane interface.
- User
Plane stringAccess Name - The logical name for thie user data plane interface.
- dns
Addresses 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.
- mobile
Network StringData Network Name - mobile
Network StringPacket Core Data Plane Id - network
Address List<GetPort Translations Network Attached Data Network Network Address Port Translation> - A
network_address_port_translationblock as defined below. - Map<String,String>
- A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
- user
Equipment List<String>Address Pool Prefixes - user
Equipment List<String>Static Address Pool Prefixes - user
Plane StringAccess Ipv4Address - The IPv4 address for the user data plane interface.
- user
Plane StringAccess Ipv4Gateway - The default IPv4 gateway for the user data plane interface.
- user
Plane StringAccess Ipv4Subnet - The IPv4 subnet for the user data plane interface.
- user
Plane StringAccess Name - The logical name for thie user data plane interface.
- dns
Addresses 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.
- mobile
Network stringData Network Name - mobile
Network stringPacket Core Data Plane Id - network
Address GetPort Translations Network Attached Data Network Network Address Port Translation[] - A
network_address_port_translationblock as defined below. - {[key: string]: string}
- A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
- user
Equipment string[]Address Pool Prefixes - user
Equipment string[]Static Address Pool Prefixes - user
Plane stringAccess Ipv4Address - The IPv4 address for the user data plane interface.
- user
Plane stringAccess Ipv4Gateway - The default IPv4 gateway for the user data plane interface.
- user
Plane stringAccess Ipv4Subnet - The IPv4 subnet for the user data plane interface.
- user
Plane stringAccess Name - 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_ strdata_ network_ name - mobile_
network_ strpacket_ core_ data_ plane_ id - network_
address_ Sequence[Getport_ translations Network Attached Data Network Network Address Port Translation] - A
network_address_port_translationblock as defined below. - Mapping[str, str]
- A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
- user_
equipment_ Sequence[str]address_ pool_ prefixes - user_
equipment_ Sequence[str]static_ address_ pool_ prefixes - user_
plane_ straccess_ ipv4_ address - The IPv4 address for the user data plane interface.
- user_
plane_ straccess_ ipv4_ gateway - The default IPv4 gateway for the user data plane interface.
- user_
plane_ straccess_ ipv4_ subnet - The IPv4 subnet for the user data plane interface.
- user_
plane_ straccess_ name - The logical name for thie user data plane interface.
- dns
Addresses 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.
- mobile
Network StringData Network Name - mobile
Network StringPacket Core Data Plane Id - network
Address List<Property Map>Port Translations - A
network_address_port_translationblock as defined below. - Map<String>
- A mapping of tags which should be assigned to the Mobile Network Attached Data Network.
- user
Equipment List<String>Address Pool Prefixes - user
Equipment List<String>Static Address Pool Prefixes - user
Plane StringAccess Ipv4Address - The IPv4 address for the user data plane interface.
- user
Plane StringAccess Ipv4Gateway - The default IPv4 gateway for the user data plane interface.
- user
Plane StringAccess Ipv4Subnet - The IPv4 subnet for the user data plane interface.
- user
Plane StringAccess Name - The logical name for thie user data plane interface.
Supporting Types
GetNetworkAttachedDataNetworkNetworkAddressPortTranslation
- Icmp
Pinhole intTimeout In Seconds - Port
Ranges List<GetNetwork Attached Data Network Network Address Port Translation Port Range> - A
port_rangeblock as defined below. - Tcp
Pinhole intTimeout In Seconds - Tcp
Port intReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
- Udp
Pinhole intTimeout In Seconds - Udp
Port intReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
- Pinhole
Maximum intNumber
- Icmp
Pinhole intTimeout In Seconds - Port
Ranges []GetNetwork Attached Data Network Network Address Port Translation Port Range - A
port_rangeblock as defined below. - Tcp
Pinhole intTimeout In Seconds - Tcp
Port intReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
- Udp
Pinhole intTimeout In Seconds - Udp
Port intReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
- Pinhole
Maximum intNumber
- icmp
Pinhole IntegerTimeout In Seconds - port
Ranges List<GetNetwork Attached Data Network Network Address Port Translation Port Range> - A
port_rangeblock as defined below. - tcp
Pinhole IntegerTimeout In Seconds - tcp
Port IntegerReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
- udp
Pinhole IntegerTimeout In Seconds - udp
Port IntegerReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
- pinhole
Maximum IntegerNumber
- icmp
Pinhole numberTimeout In Seconds - port
Ranges GetNetwork Attached Data Network Network Address Port Translation Port Range[] - A
port_rangeblock as defined below. - tcp
Pinhole numberTimeout In Seconds - tcp
Port numberReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
- udp
Pinhole numberTimeout In Seconds - udp
Port numberReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
- pinhole
Maximum numberNumber
- icmp_
pinhole_ inttimeout_ in_ seconds - port_
ranges Sequence[GetNetwork Attached Data Network Network Address Port Translation Port Range] - A
port_rangeblock as defined below. - tcp_
pinhole_ inttimeout_ in_ seconds - tcp_
port_ intreuse_ minimum_ hold_ time_ in_ seconds - Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
- udp_
pinhole_ inttimeout_ in_ seconds - udp_
port_ intreuse_ minimum_ hold_ time_ in_ seconds - Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
- pinhole_
maximum_ intnumber
- icmp
Pinhole NumberTimeout In Seconds - port
Ranges List<Property Map> - A
port_rangeblock as defined below. - tcp
Pinhole NumberTimeout In Seconds - tcp
Port NumberReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
- udp
Pinhole NumberTimeout In Seconds - udp
Port NumberReuse Minimum Hold Time In Seconds - Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
- pinhole
Maximum NumberNumber
GetNetworkAttachedDataNetworkNetworkAddressPortTranslationPortRange
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
