1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. getNetworkManagerIpamPool

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

azure.network.getNetworkManagerIpamPool

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Use this data source to access information about an existing Network Manager IPAM Pool.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const current = azure.core.getSubscription({});
    const exampleNetworkManager = new azure.network.NetworkManager("example", {
        name: "example-network-manager",
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        scope: {
            subscriptionIds: [current.then(current => current.id)],
        },
    });
    const exampleNetworkManagerIpamPool = new azure.network.NetworkManagerIpamPool("example", {
        name: "example-ipam-pool",
        location: "West Europe",
        networkManagerId: exampleNetworkManager.id,
        displayName: "example-pool",
        addressPrefixes: ["10.0.0.0/24"],
    });
    const example = azure.network.getNetworkManagerIpamPoolOutput({
        name: exampleNetworkManagerIpamPool.name,
        networkManagerId: exampleNetworkManager.id,
    });
    export const id = example.apply(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    current = azure.core.get_subscription()
    example_network_manager = azure.network.NetworkManager("example",
        name="example-network-manager",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        scope={
            "subscription_ids": [current.id],
        })
    example_network_manager_ipam_pool = azure.network.NetworkManagerIpamPool("example",
        name="example-ipam-pool",
        location="West Europe",
        network_manager_id=example_network_manager.id,
        display_name="example-pool",
        address_prefixes=["10.0.0.0/24"])
    example = azure.network.get_network_manager_ipam_pool_output(name=example_network_manager_ipam_pool.name,
        network_manager_id=example_network_manager.id)
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		current, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		exampleNetworkManager, err := network.NewNetworkManager(ctx, "example", &network.NetworkManagerArgs{
    			Name:              pulumi.String("example-network-manager"),
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			Scope: &network.NetworkManagerScopeArgs{
    				SubscriptionIds: pulumi.StringArray{
    					pulumi.String(current.Id),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleNetworkManagerIpamPool, err := network.NewNetworkManagerIpamPool(ctx, "example", &network.NetworkManagerIpamPoolArgs{
    			Name:             pulumi.String("example-ipam-pool"),
    			Location:         pulumi.String("West Europe"),
    			NetworkManagerId: exampleNetworkManager.ID(),
    			DisplayName:      pulumi.String("example-pool"),
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.0.0.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		example := network.LookupNetworkManagerIpamPoolOutput(ctx, network.GetNetworkManagerIpamPoolOutputArgs{
    			Name:             exampleNetworkManagerIpamPool.Name,
    			NetworkManagerId: exampleNetworkManager.ID(),
    		}, nil)
    		ctx.Export("id", example.ApplyT(func(example network.GetNetworkManagerIpamPoolResult) (*string, error) {
    			return &example.Id, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var current = Azure.Core.GetSubscription.Invoke();
    
        var exampleNetworkManager = new Azure.Network.NetworkManager("example", new()
        {
            Name = "example-network-manager",
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Scope = new Azure.Network.Inputs.NetworkManagerScopeArgs
            {
                SubscriptionIds = new[]
                {
                    current.Apply(getSubscriptionResult => getSubscriptionResult.Id),
                },
            },
        });
    
        var exampleNetworkManagerIpamPool = new Azure.Network.NetworkManagerIpamPool("example", new()
        {
            Name = "example-ipam-pool",
            Location = "West Europe",
            NetworkManagerId = exampleNetworkManager.Id,
            DisplayName = "example-pool",
            AddressPrefixes = new[]
            {
                "10.0.0.0/24",
            },
        });
    
        var example = Azure.Network.GetNetworkManagerIpamPool.Invoke(new()
        {
            Name = exampleNetworkManagerIpamPool.Name,
            NetworkManagerId = exampleNetworkManager.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getNetworkManagerIpamPoolResult => getNetworkManagerIpamPoolResult.Id),
        };
    });
    
    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.core.CoreFunctions;
    import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
    import com.pulumi.azure.network.NetworkManager;
    import com.pulumi.azure.network.NetworkManagerArgs;
    import com.pulumi.azure.network.inputs.NetworkManagerScopeArgs;
    import com.pulumi.azure.network.NetworkManagerIpamPool;
    import com.pulumi.azure.network.NetworkManagerIpamPoolArgs;
    import com.pulumi.azure.network.NetworkFunctions;
    import com.pulumi.azure.network.inputs.GetNetworkManagerIpamPoolArgs;
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            final var current = CoreFunctions.getSubscription(GetSubscriptionArgs.builder()
                .build());
    
            var exampleNetworkManager = new NetworkManager("exampleNetworkManager", NetworkManagerArgs.builder()
                .name("example-network-manager")
                .location(exampleResourceGroup.location())
                .resourceGroupName(exampleResourceGroup.name())
                .scope(NetworkManagerScopeArgs.builder()
                    .subscriptionIds(current.id())
                    .build())
                .build());
    
            var exampleNetworkManagerIpamPool = new NetworkManagerIpamPool("exampleNetworkManagerIpamPool", NetworkManagerIpamPoolArgs.builder()
                .name("example-ipam-pool")
                .location("West Europe")
                .networkManagerId(exampleNetworkManager.id())
                .displayName("example-pool")
                .addressPrefixes("10.0.0.0/24")
                .build());
    
            final var example = NetworkFunctions.getNetworkManagerIpamPool(GetNetworkManagerIpamPoolArgs.builder()
                .name(exampleNetworkManagerIpamPool.name())
                .networkManagerId(exampleNetworkManager.id())
                .build());
    
            ctx.export("id", example.applyValue(_example -> _example.id()));
        }
    }
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        name: example
        properties:
          name: example-resources
          location: West Europe
      exampleNetworkManager:
        type: azure:network:NetworkManager
        name: example
        properties:
          name: example-network-manager
          location: ${exampleResourceGroup.location}
          resourceGroupName: ${exampleResourceGroup.name}
          scope:
            subscriptionIds:
              - ${current.id}
      exampleNetworkManagerIpamPool:
        type: azure:network:NetworkManagerIpamPool
        name: example
        properties:
          name: example-ipam-pool
          location: West Europe
          networkManagerId: ${exampleNetworkManager.id}
          displayName: example-pool
          addressPrefixes:
            - 10.0.0.0/24
    variables:
      current:
        fn::invoke:
          function: azure:core:getSubscription
          arguments: {}
      example:
        fn::invoke:
          function: azure:network:getNetworkManagerIpamPool
          arguments:
            name: ${exampleNetworkManagerIpamPool.name}
            networkManagerId: ${exampleNetworkManager.id}
    outputs:
      id: ${example.id}
    

    API Providers

    This data source uses the following Azure API Providers:

    • Microsoft.Network - 2024-05-01

    Using getNetworkManagerIpamPool

    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 getNetworkManagerIpamPool(args: GetNetworkManagerIpamPoolArgs, opts?: InvokeOptions): Promise<GetNetworkManagerIpamPoolResult>
    function getNetworkManagerIpamPoolOutput(args: GetNetworkManagerIpamPoolOutputArgs, opts?: InvokeOptions): Output<GetNetworkManagerIpamPoolResult>
    def get_network_manager_ipam_pool(name: Optional[str] = None,
                                      network_manager_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetNetworkManagerIpamPoolResult
    def get_network_manager_ipam_pool_output(name: Optional[pulumi.Input[str]] = None,
                                      network_manager_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetNetworkManagerIpamPoolResult]
    func LookupNetworkManagerIpamPool(ctx *Context, args *LookupNetworkManagerIpamPoolArgs, opts ...InvokeOption) (*LookupNetworkManagerIpamPoolResult, error)
    func LookupNetworkManagerIpamPoolOutput(ctx *Context, args *LookupNetworkManagerIpamPoolOutputArgs, opts ...InvokeOption) LookupNetworkManagerIpamPoolResultOutput

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

    public static class GetNetworkManagerIpamPool 
    {
        public static Task<GetNetworkManagerIpamPoolResult> InvokeAsync(GetNetworkManagerIpamPoolArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkManagerIpamPoolResult> Invoke(GetNetworkManagerIpamPoolInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkManagerIpamPoolResult> getNetworkManagerIpamPool(GetNetworkManagerIpamPoolArgs args, InvokeOptions options)
    public static Output<GetNetworkManagerIpamPoolResult> getNetworkManagerIpamPool(GetNetworkManagerIpamPoolArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:network/getNetworkManagerIpamPool:getNetworkManagerIpamPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of this Network Manager IPAM Pool.
    NetworkManagerId string
    The ID of the parent Network Manager.
    Name string
    The name of this Network Manager IPAM Pool.
    NetworkManagerId string
    The ID of the parent Network Manager.
    name String
    The name of this Network Manager IPAM Pool.
    networkManagerId String
    The ID of the parent Network Manager.
    name string
    The name of this Network Manager IPAM Pool.
    networkManagerId string
    The ID of the parent Network Manager.
    name str
    The name of this Network Manager IPAM Pool.
    network_manager_id str
    The ID of the parent Network Manager.
    name String
    The name of this Network Manager IPAM Pool.
    networkManagerId String
    The ID of the parent Network Manager.

    getNetworkManagerIpamPool Result

    The following output properties are available:

    AddressPrefixes List<string>
    A list of IPv4 or IPv6 IP address prefixes assigned to the Network Manager IPAM Pool.
    Description string
    The description of the Network Manager IPAM Pool.
    DisplayName string
    The display name of the Network Manager IPAM Pool.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region where the Network Manager IPAM Pool exists.
    Name string
    NetworkManagerId string
    ParentPoolName string
    The name of the parent IPAM Pool.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the Network Manager IPAM Pool.
    AddressPrefixes []string
    A list of IPv4 or IPv6 IP address prefixes assigned to the Network Manager IPAM Pool.
    Description string
    The description of the Network Manager IPAM Pool.
    DisplayName string
    The display name of the Network Manager IPAM Pool.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region where the Network Manager IPAM Pool exists.
    Name string
    NetworkManagerId string
    ParentPoolName string
    The name of the parent IPAM Pool.
    Tags map[string]string
    A mapping of tags assigned to the Network Manager IPAM Pool.
    addressPrefixes List<String>
    A list of IPv4 or IPv6 IP address prefixes assigned to the Network Manager IPAM Pool.
    description String
    The description of the Network Manager IPAM Pool.
    displayName String
    The display name of the Network Manager IPAM Pool.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Network Manager IPAM Pool exists.
    name String
    networkManagerId String
    parentPoolName String
    The name of the parent IPAM Pool.
    tags Map<String,String>
    A mapping of tags assigned to the Network Manager IPAM Pool.
    addressPrefixes string[]
    A list of IPv4 or IPv6 IP address prefixes assigned to the Network Manager IPAM Pool.
    description string
    The description of the Network Manager IPAM Pool.
    displayName string
    The display name of the Network Manager IPAM Pool.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The Azure Region where the Network Manager IPAM Pool exists.
    name string
    networkManagerId string
    parentPoolName string
    The name of the parent IPAM Pool.
    tags {[key: string]: string}
    A mapping of tags assigned to the Network Manager IPAM Pool.
    address_prefixes Sequence[str]
    A list of IPv4 or IPv6 IP address prefixes assigned to the Network Manager IPAM Pool.
    description str
    The description of the Network Manager IPAM Pool.
    display_name str
    The display name of the Network Manager IPAM Pool.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    The Azure Region where the Network Manager IPAM Pool exists.
    name str
    network_manager_id str
    parent_pool_name str
    The name of the parent IPAM Pool.
    tags Mapping[str, str]
    A mapping of tags assigned to the Network Manager IPAM Pool.
    addressPrefixes List<String>
    A list of IPv4 or IPv6 IP address prefixes assigned to the Network Manager IPAM Pool.
    description String
    The description of the Network Manager IPAM Pool.
    displayName String
    The display name of the Network Manager IPAM Pool.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Network Manager IPAM Pool exists.
    name String
    networkManagerId String
    parentPoolName String
    The name of the parent IPAM Pool.
    tags Map<String>
    A mapping of tags assigned to the Network Manager IPAM Pool.

    Package Details

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

    We recommend using Azure Native.

    Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi