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

We recommend using Azure Native.

Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi

azure.network.NetworkManagerRoutingConfiguration

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi

    Manages a Network Manager Routing Configuration.

    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: "West Europe",
    });
    const current = azure.core.getSubscription({});
    const exampleNetworkManager = new azure.network.NetworkManager("example", {
        name: "example-network-manager",
        location: example.location,
        resourceGroupName: example.name,
        scope: {
            subscriptionIds: [current.then(current => current.id)],
        },
        scopeAccesses: ["Routing"],
    });
    const exampleNetworkManagerRoutingConfiguration = new azure.network.NetworkManagerRoutingConfiguration("example", {
        name: "example-routing-configuration",
        networkManagerId: exampleNetworkManager.id,
        description: "example routing configuration",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = 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.location,
        resource_group_name=example.name,
        scope={
            "subscription_ids": [current.id],
        },
        scope_accesses=["Routing"])
    example_network_manager_routing_configuration = azure.network.NetworkManagerRoutingConfiguration("example",
        name="example-routing-configuration",
        network_manager_id=example_network_manager.id,
        description="example routing configuration")
    
    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 {
    		example, 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:          example.Location,
    			ResourceGroupName: example.Name,
    			Scope: &network.NetworkManagerScopeArgs{
    				SubscriptionIds: pulumi.StringArray{
    					pulumi.String(current.Id),
    				},
    			},
    			ScopeAccesses: pulumi.StringArray{
    				pulumi.String("Routing"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewNetworkManagerRoutingConfiguration(ctx, "example", &network.NetworkManagerRoutingConfigurationArgs{
    			Name:             pulumi.String("example-routing-configuration"),
    			NetworkManagerId: exampleNetworkManager.ID(),
    			Description:      pulumi.String("example routing configuration"),
    		})
    		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 = "West Europe",
        });
    
        var current = Azure.Core.GetSubscription.Invoke();
    
        var exampleNetworkManager = new Azure.Network.NetworkManager("example", new()
        {
            Name = "example-network-manager",
            Location = example.Location,
            ResourceGroupName = example.Name,
            Scope = new Azure.Network.Inputs.NetworkManagerScopeArgs
            {
                SubscriptionIds = new[]
                {
                    current.Apply(getSubscriptionResult => getSubscriptionResult.Id),
                },
            },
            ScopeAccesses = new[]
            {
                "Routing",
            },
        });
    
        var exampleNetworkManagerRoutingConfiguration = new Azure.Network.NetworkManagerRoutingConfiguration("example", new()
        {
            Name = "example-routing-configuration",
            NetworkManagerId = exampleNetworkManager.Id,
            Description = "example routing configuration",
        });
    
    });
    
    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.NetworkManagerRoutingConfiguration;
    import com.pulumi.azure.network.NetworkManagerRoutingConfigurationArgs;
    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("West Europe")
                .build());
    
            final var current = CoreFunctions.getSubscription(GetSubscriptionArgs.builder()
                .build());
    
            var exampleNetworkManager = new NetworkManager("exampleNetworkManager", NetworkManagerArgs.builder()
                .name("example-network-manager")
                .location(example.location())
                .resourceGroupName(example.name())
                .scope(NetworkManagerScopeArgs.builder()
                    .subscriptionIds(current.id())
                    .build())
                .scopeAccesses("Routing")
                .build());
    
            var exampleNetworkManagerRoutingConfiguration = new NetworkManagerRoutingConfiguration("exampleNetworkManagerRoutingConfiguration", NetworkManagerRoutingConfigurationArgs.builder()
                .name("example-routing-configuration")
                .networkManagerId(exampleNetworkManager.id())
                .description("example routing configuration")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleNetworkManager:
        type: azure:network:NetworkManager
        name: example
        properties:
          name: example-network-manager
          location: ${example.location}
          resourceGroupName: ${example.name}
          scope:
            subscriptionIds:
              - ${current.id}
          scopeAccesses:
            - Routing
      exampleNetworkManagerRoutingConfiguration:
        type: azure:network:NetworkManagerRoutingConfiguration
        name: example
        properties:
          name: example-routing-configuration
          networkManagerId: ${exampleNetworkManager.id}
          description: example routing configuration
    variables:
      current:
        fn::invoke:
          function: azure:core:getSubscription
          arguments: {}
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.Network: 2024-05-01

    Create NetworkManagerRoutingConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkManagerRoutingConfiguration(name: string, args: NetworkManagerRoutingConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkManagerRoutingConfiguration(resource_name: str,
                                           args: NetworkManagerRoutingConfigurationArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkManagerRoutingConfiguration(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           network_manager_id: Optional[str] = None,
                                           description: Optional[str] = None,
                                           name: Optional[str] = None)
    func NewNetworkManagerRoutingConfiguration(ctx *Context, name string, args NetworkManagerRoutingConfigurationArgs, opts ...ResourceOption) (*NetworkManagerRoutingConfiguration, error)
    public NetworkManagerRoutingConfiguration(string name, NetworkManagerRoutingConfigurationArgs args, CustomResourceOptions? opts = null)
    public NetworkManagerRoutingConfiguration(String name, NetworkManagerRoutingConfigurationArgs args)
    public NetworkManagerRoutingConfiguration(String name, NetworkManagerRoutingConfigurationArgs args, CustomResourceOptions options)
    
    type: azure:network:NetworkManagerRoutingConfiguration
    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 NetworkManagerRoutingConfigurationArgs
    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 NetworkManagerRoutingConfigurationArgs
    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 NetworkManagerRoutingConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkManagerRoutingConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkManagerRoutingConfigurationArgs
    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 networkManagerRoutingConfigurationResource = new Azure.Network.NetworkManagerRoutingConfiguration("networkManagerRoutingConfigurationResource", new()
    {
        NetworkManagerId = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := network.NewNetworkManagerRoutingConfiguration(ctx, "networkManagerRoutingConfigurationResource", &network.NetworkManagerRoutingConfigurationArgs{
    	NetworkManagerId: pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	Name:             pulumi.String("string"),
    })
    
    var networkManagerRoutingConfigurationResource = new NetworkManagerRoutingConfiguration("networkManagerRoutingConfigurationResource", NetworkManagerRoutingConfigurationArgs.builder()
        .networkManagerId("string")
        .description("string")
        .name("string")
        .build());
    
    network_manager_routing_configuration_resource = azure.network.NetworkManagerRoutingConfiguration("networkManagerRoutingConfigurationResource",
        network_manager_id="string",
        description="string",
        name="string")
    
    const networkManagerRoutingConfigurationResource = new azure.network.NetworkManagerRoutingConfiguration("networkManagerRoutingConfigurationResource", {
        networkManagerId: "string",
        description: "string",
        name: "string",
    });
    
    type: azure:network:NetworkManagerRoutingConfiguration
    properties:
        description: string
        name: string
        networkManagerId: string
    

    NetworkManagerRoutingConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NetworkManagerRoutingConfiguration resource accepts the following input properties:

    NetworkManagerId string
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    Description string
    The description of the Network Manager.
    Name string
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    NetworkManagerId string
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    Description string
    The description of the Network Manager.
    Name string
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    networkManagerId String
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description String
    The description of the Network Manager.
    name String
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    networkManagerId string
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description string
    The description of the Network Manager.
    name string
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    network_manager_id str
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description str
    The description of the Network Manager.
    name str
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    networkManagerId String
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description String
    The description of the Network Manager.
    name String
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkManagerRoutingConfiguration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NetworkManagerRoutingConfiguration Resource

    Get an existing NetworkManagerRoutingConfiguration 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?: NetworkManagerRoutingConfigurationState, opts?: CustomResourceOptions): NetworkManagerRoutingConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            network_manager_id: Optional[str] = None) -> NetworkManagerRoutingConfiguration
    func GetNetworkManagerRoutingConfiguration(ctx *Context, name string, id IDInput, state *NetworkManagerRoutingConfigurationState, opts ...ResourceOption) (*NetworkManagerRoutingConfiguration, error)
    public static NetworkManagerRoutingConfiguration Get(string name, Input<string> id, NetworkManagerRoutingConfigurationState? state, CustomResourceOptions? opts = null)
    public static NetworkManagerRoutingConfiguration get(String name, Output<String> id, NetworkManagerRoutingConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: azure:network:NetworkManagerRoutingConfiguration    get:      id: ${id}
    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.
    The following state arguments are supported:
    Description string
    The description of the Network Manager.
    Name string
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    NetworkManagerId string
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    Description string
    The description of the Network Manager.
    Name string
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    NetworkManagerId string
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description String
    The description of the Network Manager.
    name String
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    networkManagerId String
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description string
    The description of the Network Manager.
    name string
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    networkManagerId string
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description str
    The description of the Network Manager.
    name str
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    network_manager_id str
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.
    description String
    The description of the Network Manager.
    name String
    The name which should be used for this Network Manager Routing Configuration. Changing this forces a new Network Manager Routing Configuration to be created.
    networkManagerId String
    The ID of the Network Manager. Changing this forces a new Network Manager Routing Configuration to be created.

    Import

    Network Manager Routing Configurations can be imported using the resource id, e.g.

    $ pulumi import azure:network/networkManagerRoutingConfiguration:NetworkManagerRoutingConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/manager1/routingConfigurations/conf1
    

    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.
    azure logo

    We recommend using Azure Native.

    Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi