We recommend using Azure Native.
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",
resourceGroupName: example.name,
location: example.location,
scope: {
subscriptionIds: [current.then(current => current.id)],
},
scopeAccesses: ["Routing"],
});
const exampleNetworkManagerNetworkGroup = new azure.network.NetworkManagerNetworkGroup("example", {
name: "example-network-group",
networkManagerId: exampleNetworkManager.id,
});
const exampleNetworkManagerRoutingConfiguration = new azure.network.NetworkManagerRoutingConfiguration("example", {
name: "example-routing-configuration",
networkManagerId: exampleNetworkManager.id,
});
const exampleNetworkManagerRoutingRuleCollection = new azure.network.NetworkManagerRoutingRuleCollection("example", {
name: "example-routing-rule-collection",
routingConfigurationId: exampleNetworkManagerRoutingConfiguration.id,
networkGroupIds: [exampleNetworkManagerNetworkGroup.id],
description: "example routing rule collection",
});
const exampleNetworkManagerRoutingRule = new azure.network.NetworkManagerRoutingRule("example", {
name: "example-routing-rule",
ruleCollectionId: exampleNetworkManagerRoutingRuleCollection.id,
description: "example routing rule",
destination: {
type: "AddressPrefix",
address: "10.0.0.0/24",
},
nextHop: {
type: "VirtualNetworkGateway",
},
});
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",
resource_group_name=example.name,
location=example.location,
scope={
"subscription_ids": [current.id],
},
scope_accesses=["Routing"])
example_network_manager_network_group = azure.network.NetworkManagerNetworkGroup("example",
name="example-network-group",
network_manager_id=example_network_manager.id)
example_network_manager_routing_configuration = azure.network.NetworkManagerRoutingConfiguration("example",
name="example-routing-configuration",
network_manager_id=example_network_manager.id)
example_network_manager_routing_rule_collection = azure.network.NetworkManagerRoutingRuleCollection("example",
name="example-routing-rule-collection",
routing_configuration_id=example_network_manager_routing_configuration.id,
network_group_ids=[example_network_manager_network_group.id],
description="example routing rule collection")
example_network_manager_routing_rule = azure.network.NetworkManagerRoutingRule("example",
name="example-routing-rule",
rule_collection_id=example_network_manager_routing_rule_collection.id,
description="example routing rule",
destination={
"type": "AddressPrefix",
"address": "10.0.0.0/24",
},
next_hop={
"type": "VirtualNetworkGateway",
})
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"),
ResourceGroupName: example.Name,
Location: example.Location,
Scope: &network.NetworkManagerScopeArgs{
SubscriptionIds: pulumi.StringArray{
pulumi.String(current.Id),
},
},
ScopeAccesses: pulumi.StringArray{
pulumi.String("Routing"),
},
})
if err != nil {
return err
}
exampleNetworkManagerNetworkGroup, err := network.NewNetworkManagerNetworkGroup(ctx, "example", &network.NetworkManagerNetworkGroupArgs{
Name: pulumi.String("example-network-group"),
NetworkManagerId: exampleNetworkManager.ID(),
})
if err != nil {
return err
}
exampleNetworkManagerRoutingConfiguration, err := network.NewNetworkManagerRoutingConfiguration(ctx, "example", &network.NetworkManagerRoutingConfigurationArgs{
Name: pulumi.String("example-routing-configuration"),
NetworkManagerId: exampleNetworkManager.ID(),
})
if err != nil {
return err
}
exampleNetworkManagerRoutingRuleCollection, err := network.NewNetworkManagerRoutingRuleCollection(ctx, "example", &network.NetworkManagerRoutingRuleCollectionArgs{
Name: pulumi.String("example-routing-rule-collection"),
RoutingConfigurationId: exampleNetworkManagerRoutingConfiguration.ID(),
NetworkGroupIds: pulumi.StringArray{
exampleNetworkManagerNetworkGroup.ID(),
},
Description: pulumi.String("example routing rule collection"),
})
if err != nil {
return err
}
_, err = network.NewNetworkManagerRoutingRule(ctx, "example", &network.NetworkManagerRoutingRuleArgs{
Name: pulumi.String("example-routing-rule"),
RuleCollectionId: exampleNetworkManagerRoutingRuleCollection.ID(),
Description: pulumi.String("example routing rule"),
Destination: &network.NetworkManagerRoutingRuleDestinationArgs{
Type: pulumi.String("AddressPrefix"),
Address: pulumi.String("10.0.0.0/24"),
},
NextHop: &network.NetworkManagerRoutingRuleNextHopArgs{
Type: pulumi.String("VirtualNetworkGateway"),
},
})
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",
ResourceGroupName = example.Name,
Location = example.Location,
Scope = new Azure.Network.Inputs.NetworkManagerScopeArgs
{
SubscriptionIds = new[]
{
current.Apply(getSubscriptionResult => getSubscriptionResult.Id),
},
},
ScopeAccesses = new[]
{
"Routing",
},
});
var exampleNetworkManagerNetworkGroup = new Azure.Network.NetworkManagerNetworkGroup("example", new()
{
Name = "example-network-group",
NetworkManagerId = exampleNetworkManager.Id,
});
var exampleNetworkManagerRoutingConfiguration = new Azure.Network.NetworkManagerRoutingConfiguration("example", new()
{
Name = "example-routing-configuration",
NetworkManagerId = exampleNetworkManager.Id,
});
var exampleNetworkManagerRoutingRuleCollection = new Azure.Network.NetworkManagerRoutingRuleCollection("example", new()
{
Name = "example-routing-rule-collection",
RoutingConfigurationId = exampleNetworkManagerRoutingConfiguration.Id,
NetworkGroupIds = new[]
{
exampleNetworkManagerNetworkGroup.Id,
},
Description = "example routing rule collection",
});
var exampleNetworkManagerRoutingRule = new Azure.Network.NetworkManagerRoutingRule("example", new()
{
Name = "example-routing-rule",
RuleCollectionId = exampleNetworkManagerRoutingRuleCollection.Id,
Description = "example routing rule",
Destination = new Azure.Network.Inputs.NetworkManagerRoutingRuleDestinationArgs
{
Type = "AddressPrefix",
Address = "10.0.0.0/24",
},
NextHop = new Azure.Network.Inputs.NetworkManagerRoutingRuleNextHopArgs
{
Type = "VirtualNetworkGateway",
},
});
});
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.NetworkManagerNetworkGroup;
import com.pulumi.azure.network.NetworkManagerNetworkGroupArgs;
import com.pulumi.azure.network.NetworkManagerRoutingConfiguration;
import com.pulumi.azure.network.NetworkManagerRoutingConfigurationArgs;
import com.pulumi.azure.network.NetworkManagerRoutingRuleCollection;
import com.pulumi.azure.network.NetworkManagerRoutingRuleCollectionArgs;
import com.pulumi.azure.network.NetworkManagerRoutingRule;
import com.pulumi.azure.network.NetworkManagerRoutingRuleArgs;
import com.pulumi.azure.network.inputs.NetworkManagerRoutingRuleDestinationArgs;
import com.pulumi.azure.network.inputs.NetworkManagerRoutingRuleNextHopArgs;
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")
.resourceGroupName(example.name())
.location(example.location())
.scope(NetworkManagerScopeArgs.builder()
.subscriptionIds(current.id())
.build())
.scopeAccesses("Routing")
.build());
var exampleNetworkManagerNetworkGroup = new NetworkManagerNetworkGroup("exampleNetworkManagerNetworkGroup", NetworkManagerNetworkGroupArgs.builder()
.name("example-network-group")
.networkManagerId(exampleNetworkManager.id())
.build());
var exampleNetworkManagerRoutingConfiguration = new NetworkManagerRoutingConfiguration("exampleNetworkManagerRoutingConfiguration", NetworkManagerRoutingConfigurationArgs.builder()
.name("example-routing-configuration")
.networkManagerId(exampleNetworkManager.id())
.build());
var exampleNetworkManagerRoutingRuleCollection = new NetworkManagerRoutingRuleCollection("exampleNetworkManagerRoutingRuleCollection", NetworkManagerRoutingRuleCollectionArgs.builder()
.name("example-routing-rule-collection")
.routingConfigurationId(exampleNetworkManagerRoutingConfiguration.id())
.networkGroupIds(exampleNetworkManagerNetworkGroup.id())
.description("example routing rule collection")
.build());
var exampleNetworkManagerRoutingRule = new NetworkManagerRoutingRule("exampleNetworkManagerRoutingRule", NetworkManagerRoutingRuleArgs.builder()
.name("example-routing-rule")
.ruleCollectionId(exampleNetworkManagerRoutingRuleCollection.id())
.description("example routing rule")
.destination(NetworkManagerRoutingRuleDestinationArgs.builder()
.type("AddressPrefix")
.address("10.0.0.0/24")
.build())
.nextHop(NetworkManagerRoutingRuleNextHopArgs.builder()
.type("VirtualNetworkGateway")
.build())
.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
resourceGroupName: ${example.name}
location: ${example.location}
scope:
subscriptionIds:
- ${current.id}
scopeAccesses:
- Routing
exampleNetworkManagerNetworkGroup:
type: azure:network:NetworkManagerNetworkGroup
name: example
properties:
name: example-network-group
networkManagerId: ${exampleNetworkManager.id}
exampleNetworkManagerRoutingConfiguration:
type: azure:network:NetworkManagerRoutingConfiguration
name: example
properties:
name: example-routing-configuration
networkManagerId: ${exampleNetworkManager.id}
exampleNetworkManagerRoutingRuleCollection:
type: azure:network:NetworkManagerRoutingRuleCollection
name: example
properties:
name: example-routing-rule-collection
routingConfigurationId: ${exampleNetworkManagerRoutingConfiguration.id}
networkGroupIds:
- ${exampleNetworkManagerNetworkGroup.id}
description: example routing rule collection
exampleNetworkManagerRoutingRule:
type: azure:network:NetworkManagerRoutingRule
name: example
properties:
name: example-routing-rule
ruleCollectionId: ${exampleNetworkManagerRoutingRuleCollection.id}
description: example routing rule
destination:
type: AddressPrefix
address: 10.0.0.0/24
nextHop:
type: VirtualNetworkGateway
variables:
current:
fn::invoke:
function: azure:core:getSubscription
arguments: {}
API Providers
This resource uses the following Azure API Providers:
Microsoft.Network- 2025-01-01
Create NetworkManagerRoutingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkManagerRoutingRule(name: string, args: NetworkManagerRoutingRuleArgs, opts?: CustomResourceOptions);@overload
def NetworkManagerRoutingRule(resource_name: str,
args: NetworkManagerRoutingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkManagerRoutingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination: Optional[NetworkManagerRoutingRuleDestinationArgs] = None,
next_hop: Optional[NetworkManagerRoutingRuleNextHopArgs] = None,
rule_collection_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewNetworkManagerRoutingRule(ctx *Context, name string, args NetworkManagerRoutingRuleArgs, opts ...ResourceOption) (*NetworkManagerRoutingRule, error)public NetworkManagerRoutingRule(string name, NetworkManagerRoutingRuleArgs args, CustomResourceOptions? opts = null)
public NetworkManagerRoutingRule(String name, NetworkManagerRoutingRuleArgs args)
public NetworkManagerRoutingRule(String name, NetworkManagerRoutingRuleArgs args, CustomResourceOptions options)
type: azure:network:NetworkManagerRoutingRule
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 NetworkManagerRoutingRuleArgs
- 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 NetworkManagerRoutingRuleArgs
- 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 NetworkManagerRoutingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkManagerRoutingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkManagerRoutingRuleArgs
- 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 networkManagerRoutingRuleResource = new Azure.Network.NetworkManagerRoutingRule("networkManagerRoutingRuleResource", new()
{
Destination = new Azure.Network.Inputs.NetworkManagerRoutingRuleDestinationArgs
{
Address = "string",
Type = "string",
},
NextHop = new Azure.Network.Inputs.NetworkManagerRoutingRuleNextHopArgs
{
Type = "string",
Address = "string",
},
RuleCollectionId = "string",
Description = "string",
Name = "string",
});
example, err := network.NewNetworkManagerRoutingRule(ctx, "networkManagerRoutingRuleResource", &network.NetworkManagerRoutingRuleArgs{
Destination: &network.NetworkManagerRoutingRuleDestinationArgs{
Address: pulumi.String("string"),
Type: pulumi.String("string"),
},
NextHop: &network.NetworkManagerRoutingRuleNextHopArgs{
Type: pulumi.String("string"),
Address: pulumi.String("string"),
},
RuleCollectionId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var networkManagerRoutingRuleResource = new NetworkManagerRoutingRule("networkManagerRoutingRuleResource", NetworkManagerRoutingRuleArgs.builder()
.destination(NetworkManagerRoutingRuleDestinationArgs.builder()
.address("string")
.type("string")
.build())
.nextHop(NetworkManagerRoutingRuleNextHopArgs.builder()
.type("string")
.address("string")
.build())
.ruleCollectionId("string")
.description("string")
.name("string")
.build());
network_manager_routing_rule_resource = azure.network.NetworkManagerRoutingRule("networkManagerRoutingRuleResource",
destination={
"address": "string",
"type": "string",
},
next_hop={
"type": "string",
"address": "string",
},
rule_collection_id="string",
description="string",
name="string")
const networkManagerRoutingRuleResource = new azure.network.NetworkManagerRoutingRule("networkManagerRoutingRuleResource", {
destination: {
address: "string",
type: "string",
},
nextHop: {
type: "string",
address: "string",
},
ruleCollectionId: "string",
description: "string",
name: "string",
});
type: azure:network:NetworkManagerRoutingRule
properties:
description: string
destination:
address: string
type: string
name: string
nextHop:
address: string
type: string
ruleCollectionId: string
NetworkManagerRoutingRule 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 NetworkManagerRoutingRule resource accepts the following input properties:
- Destination
Network
Manager Routing Rule Destination - A
destinationblock as defined below. - Next
Hop NetworkManager Routing Rule Next Hop - A
next_hopblock as defined below. - Rule
Collection stringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- Description string
- A description for the routing rule.
- Name string
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- Destination
Network
Manager Routing Rule Destination Args - A
destinationblock as defined below. - Next
Hop NetworkManager Routing Rule Next Hop Args - A
next_hopblock as defined below. - Rule
Collection stringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- Description string
- A description for the routing rule.
- Name string
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- destination
Network
Manager Routing Rule Destination - A
destinationblock as defined below. - next
Hop NetworkManager Routing Rule Next Hop - A
next_hopblock as defined below. - rule
Collection StringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description String
- A description for the routing rule.
- name String
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- destination
Network
Manager Routing Rule Destination - A
destinationblock as defined below. - next
Hop NetworkManager Routing Rule Next Hop - A
next_hopblock as defined below. - rule
Collection stringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description string
- A description for the routing rule.
- name string
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- destination
Network
Manager Routing Rule Destination Args - A
destinationblock as defined below. - next_
hop NetworkManager Routing Rule Next Hop Args - A
next_hopblock as defined below. - rule_
collection_ strid - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description str
- A description for the routing rule.
- name str
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- destination Property Map
- A
destinationblock as defined below. - next
Hop Property Map - A
next_hopblock as defined below. - rule
Collection StringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description String
- A description for the routing rule.
- name String
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkManagerRoutingRule 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 NetworkManagerRoutingRule Resource
Get an existing NetworkManagerRoutingRule 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?: NetworkManagerRoutingRuleState, opts?: CustomResourceOptions): NetworkManagerRoutingRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
destination: Optional[NetworkManagerRoutingRuleDestinationArgs] = None,
name: Optional[str] = None,
next_hop: Optional[NetworkManagerRoutingRuleNextHopArgs] = None,
rule_collection_id: Optional[str] = None) -> NetworkManagerRoutingRulefunc GetNetworkManagerRoutingRule(ctx *Context, name string, id IDInput, state *NetworkManagerRoutingRuleState, opts ...ResourceOption) (*NetworkManagerRoutingRule, error)public static NetworkManagerRoutingRule Get(string name, Input<string> id, NetworkManagerRoutingRuleState? state, CustomResourceOptions? opts = null)public static NetworkManagerRoutingRule get(String name, Output<String> id, NetworkManagerRoutingRuleState state, CustomResourceOptions options)resources: _: type: azure:network:NetworkManagerRoutingRule 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.
- Description string
- A description for the routing rule.
- Destination
Network
Manager Routing Rule Destination - A
destinationblock as defined below. - Name string
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- Next
Hop NetworkManager Routing Rule Next Hop - A
next_hopblock as defined below. - Rule
Collection stringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- Description string
- A description for the routing rule.
- Destination
Network
Manager Routing Rule Destination Args - A
destinationblock as defined below. - Name string
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- Next
Hop NetworkManager Routing Rule Next Hop Args - A
next_hopblock as defined below. - Rule
Collection stringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description String
- A description for the routing rule.
- destination
Network
Manager Routing Rule Destination - A
destinationblock as defined below. - name String
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- next
Hop NetworkManager Routing Rule Next Hop - A
next_hopblock as defined below. - rule
Collection StringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description string
- A description for the routing rule.
- destination
Network
Manager Routing Rule Destination - A
destinationblock as defined below. - name string
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- next
Hop NetworkManager Routing Rule Next Hop - A
next_hopblock as defined below. - rule
Collection stringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description str
- A description for the routing rule.
- destination
Network
Manager Routing Rule Destination Args - A
destinationblock as defined below. - name str
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- next_
hop NetworkManager Routing Rule Next Hop Args - A
next_hopblock as defined below. - rule_
collection_ strid - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
- description String
- A description for the routing rule.
- destination Property Map
- A
destinationblock as defined below. - name String
- The name of the Network Manager Routing Rule. Changing this forces a new resource to be created.
- next
Hop Property Map - A
next_hopblock as defined below. - rule
Collection StringId - The ID of the Network Manager Routing Rule Collection to which this rule belongs. Changing this forces a new resource to be created.
Supporting Types
NetworkManagerRoutingRuleDestination, NetworkManagerRoutingRuleDestinationArgs
NetworkManagerRoutingRuleNextHop, NetworkManagerRoutingRuleNextHopArgs
Import
Network Manager Routing Rules can be imported using the resource id, e.g.
$ pulumi import azure:network/networkManagerRoutingRule:NetworkManagerRoutingRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/manager1/routingConfigurations/conf1/ruleCollections/collection1/rules/rule1
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
azurermTerraform Provider.
