azure.network.VirtualHubRouteTableRoute

Explore with Pulumi AI

Manages a Route in a Virtual Hub Route Table.

Note: Route table routes can managed with this resource, or in-line with the virtual_hub_route_table resource. Using both is not supported.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new()
    {
        AddressSpaces = new[]
        {
            "10.5.0.0/16",
        },
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleNetworkSecurityGroup = new Azure.Network.NetworkSecurityGroup("exampleNetworkSecurityGroup", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.5.1.0/24",
        },
    });

    var exampleSubnetNetworkSecurityGroupAssociation = new Azure.Network.SubnetNetworkSecurityGroupAssociation("exampleSubnetNetworkSecurityGroupAssociation", new()
    {
        SubnetId = exampleSubnet.Id,
        NetworkSecurityGroupId = exampleNetworkSecurityGroup.Id,
    });

    var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
    });

    var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        VirtualWanId = exampleVirtualWan.Id,
        AddressPrefix = "10.0.2.0/24",
    });

    var exampleVirtualHubRouteTable = new Azure.Network.VirtualHubRouteTable("exampleVirtualHubRouteTable", new()
    {
        VirtualHubId = exampleVirtualHub.Id,
        Labels = new[]
        {
            "label1",
        },
    });

    var exampleVirtualHubConnection = new Azure.Network.VirtualHubConnection("exampleVirtualHubConnection", new()
    {
        VirtualHubId = exampleVirtualHub.Id,
        RemoteVirtualNetworkId = exampleVirtualNetwork.Id,
        Routing = new Azure.Network.Inputs.VirtualHubConnectionRoutingArgs
        {
            AssociatedRouteTableId = exampleVirtualHubRouteTable.Id,
        },
    });

    var exampleVirtualHubRouteTableRoute = new Azure.Network.VirtualHubRouteTableRoute("exampleVirtualHubRouteTableRoute", new()
    {
        RouteTableId = exampleVirtualHubRouteTable.Id,
        DestinationsType = "CIDR",
        Destinations = new[]
        {
            "10.0.0.0/16",
        },
        NextHopType = "ResourceId",
        NextHop = exampleVirtualHubConnection.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/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, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.5.0.0/16"),
			},
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		exampleNetworkSecurityGroup, err := network.NewNetworkSecurityGroup(ctx, "exampleNetworkSecurityGroup", &network.NetworkSecurityGroupArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
			ResourceGroupName:  exampleResourceGroup.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.5.1.0/24"),
			},
		})
		if err != nil {
			return err
		}
		_, err = network.NewSubnetNetworkSecurityGroupAssociation(ctx, "exampleSubnetNetworkSecurityGroupAssociation", &network.SubnetNetworkSecurityGroupAssociationArgs{
			SubnetId:               exampleSubnet.ID(),
			NetworkSecurityGroupId: exampleNetworkSecurityGroup.ID(),
		})
		if err != nil {
			return err
		}
		exampleVirtualWan, err := network.NewVirtualWan(ctx, "exampleVirtualWan", &network.VirtualWanArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
		})
		if err != nil {
			return err
		}
		exampleVirtualHub, err := network.NewVirtualHub(ctx, "exampleVirtualHub", &network.VirtualHubArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			VirtualWanId:      exampleVirtualWan.ID(),
			AddressPrefix:     pulumi.String("10.0.2.0/24"),
		})
		if err != nil {
			return err
		}
		exampleVirtualHubRouteTable, err := network.NewVirtualHubRouteTable(ctx, "exampleVirtualHubRouteTable", &network.VirtualHubRouteTableArgs{
			VirtualHubId: exampleVirtualHub.ID(),
			Labels: pulumi.StringArray{
				pulumi.String("label1"),
			},
		})
		if err != nil {
			return err
		}
		exampleVirtualHubConnection, err := network.NewVirtualHubConnection(ctx, "exampleVirtualHubConnection", &network.VirtualHubConnectionArgs{
			VirtualHubId:           exampleVirtualHub.ID(),
			RemoteVirtualNetworkId: exampleVirtualNetwork.ID(),
			Routing: &network.VirtualHubConnectionRoutingArgs{
				AssociatedRouteTableId: exampleVirtualHubRouteTable.ID(),
			},
		})
		if err != nil {
			return err
		}
		_, err = network.NewVirtualHubRouteTableRoute(ctx, "exampleVirtualHubRouteTableRoute", &network.VirtualHubRouteTableRouteArgs{
			RouteTableId:     exampleVirtualHubRouteTable.ID(),
			DestinationsType: pulumi.String("CIDR"),
			Destinations: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
			NextHopType: pulumi.String("ResourceId"),
			NextHop:     exampleVirtualHubConnection.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.NetworkSecurityGroup;
import com.pulumi.azure.network.NetworkSecurityGroupArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.SubnetNetworkSecurityGroupAssociation;
import com.pulumi.azure.network.SubnetNetworkSecurityGroupAssociationArgs;
import com.pulumi.azure.network.VirtualWan;
import com.pulumi.azure.network.VirtualWanArgs;
import com.pulumi.azure.network.VirtualHub;
import com.pulumi.azure.network.VirtualHubArgs;
import com.pulumi.azure.network.VirtualHubRouteTable;
import com.pulumi.azure.network.VirtualHubRouteTableArgs;
import com.pulumi.azure.network.VirtualHubConnection;
import com.pulumi.azure.network.VirtualHubConnectionArgs;
import com.pulumi.azure.network.inputs.VirtualHubConnectionRoutingArgs;
import com.pulumi.azure.network.VirtualHubRouteTableRoute;
import com.pulumi.azure.network.VirtualHubRouteTableRouteArgs;
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()        
            .location("West Europe")
            .build());

        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()        
            .addressSpaces("10.5.0.0/16")
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleNetworkSecurityGroup = new NetworkSecurityGroup("exampleNetworkSecurityGroup", NetworkSecurityGroupArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.5.1.0/24")
            .build());

        var exampleSubnetNetworkSecurityGroupAssociation = new SubnetNetworkSecurityGroupAssociation("exampleSubnetNetworkSecurityGroupAssociation", SubnetNetworkSecurityGroupAssociationArgs.builder()        
            .subnetId(exampleSubnet.id())
            .networkSecurityGroupId(exampleNetworkSecurityGroup.id())
            .build());

        var exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .build());

        var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .virtualWanId(exampleVirtualWan.id())
            .addressPrefix("10.0.2.0/24")
            .build());

        var exampleVirtualHubRouteTable = new VirtualHubRouteTable("exampleVirtualHubRouteTable", VirtualHubRouteTableArgs.builder()        
            .virtualHubId(exampleVirtualHub.id())
            .labels("label1")
            .build());

        var exampleVirtualHubConnection = new VirtualHubConnection("exampleVirtualHubConnection", VirtualHubConnectionArgs.builder()        
            .virtualHubId(exampleVirtualHub.id())
            .remoteVirtualNetworkId(exampleVirtualNetwork.id())
            .routing(VirtualHubConnectionRoutingArgs.builder()
                .associatedRouteTableId(exampleVirtualHubRouteTable.id())
                .build())
            .build());

        var exampleVirtualHubRouteTableRoute = new VirtualHubRouteTableRoute("exampleVirtualHubRouteTableRoute", VirtualHubRouteTableRouteArgs.builder()        
            .routeTableId(exampleVirtualHubRouteTable.id())
            .destinationsType("CIDR")
            .destinations("10.0.0.0/16")
            .nextHopType("ResourceId")
            .nextHop(exampleVirtualHubConnection.id())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    address_spaces=["10.5.0.0/16"],
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_network_security_group = azure.network.NetworkSecurityGroup("exampleNetworkSecurityGroup",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.5.1.0/24"])
example_subnet_network_security_group_association = azure.network.SubnetNetworkSecurityGroupAssociation("exampleSubnetNetworkSecurityGroupAssociation",
    subnet_id=example_subnet.id,
    network_security_group_id=example_network_security_group.id)
example_virtual_wan = azure.network.VirtualWan("exampleVirtualWan",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location)
example_virtual_hub = azure.network.VirtualHub("exampleVirtualHub",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    virtual_wan_id=example_virtual_wan.id,
    address_prefix="10.0.2.0/24")
example_virtual_hub_route_table = azure.network.VirtualHubRouteTable("exampleVirtualHubRouteTable",
    virtual_hub_id=example_virtual_hub.id,
    labels=["label1"])
example_virtual_hub_connection = azure.network.VirtualHubConnection("exampleVirtualHubConnection",
    virtual_hub_id=example_virtual_hub.id,
    remote_virtual_network_id=example_virtual_network.id,
    routing=azure.network.VirtualHubConnectionRoutingArgs(
        associated_route_table_id=example_virtual_hub_route_table.id,
    ))
example_virtual_hub_route_table_route = azure.network.VirtualHubRouteTableRoute("exampleVirtualHubRouteTableRoute",
    route_table_id=example_virtual_hub_route_table.id,
    destinations_type="CIDR",
    destinations=["10.0.0.0/16"],
    next_hop_type="ResourceId",
    next_hop=example_virtual_hub_connection.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
    addressSpaces: ["10.5.0.0/16"],
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleNetworkSecurityGroup = new azure.network.NetworkSecurityGroup("exampleNetworkSecurityGroup", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
    resourceGroupName: exampleResourceGroup.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.5.1.0/24"],
});
const exampleSubnetNetworkSecurityGroupAssociation = new azure.network.SubnetNetworkSecurityGroupAssociation("exampleSubnetNetworkSecurityGroupAssociation", {
    subnetId: exampleSubnet.id,
    networkSecurityGroupId: exampleNetworkSecurityGroup.id,
});
const exampleVirtualWan = new azure.network.VirtualWan("exampleVirtualWan", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
});
const exampleVirtualHub = new azure.network.VirtualHub("exampleVirtualHub", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    virtualWanId: exampleVirtualWan.id,
    addressPrefix: "10.0.2.0/24",
});
const exampleVirtualHubRouteTable = new azure.network.VirtualHubRouteTable("exampleVirtualHubRouteTable", {
    virtualHubId: exampleVirtualHub.id,
    labels: ["label1"],
});
const exampleVirtualHubConnection = new azure.network.VirtualHubConnection("exampleVirtualHubConnection", {
    virtualHubId: exampleVirtualHub.id,
    remoteVirtualNetworkId: exampleVirtualNetwork.id,
    routing: {
        associatedRouteTableId: exampleVirtualHubRouteTable.id,
    },
});
const exampleVirtualHubRouteTableRoute = new azure.network.VirtualHubRouteTableRoute("exampleVirtualHubRouteTableRoute", {
    routeTableId: exampleVirtualHubRouteTable.id,
    destinationsType: "CIDR",
    destinations: ["10.0.0.0/16"],
    nextHopType: "ResourceId",
    nextHop: exampleVirtualHubConnection.id,
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    properties:
      addressSpaces:
        - 10.5.0.0/16
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleNetworkSecurityGroup:
    type: azure:network:NetworkSecurityGroup
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleSubnet:
    type: azure:network:Subnet
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.5.1.0/24
  exampleSubnetNetworkSecurityGroupAssociation:
    type: azure:network:SubnetNetworkSecurityGroupAssociation
    properties:
      subnetId: ${exampleSubnet.id}
      networkSecurityGroupId: ${exampleNetworkSecurityGroup.id}
  exampleVirtualWan:
    type: azure:network:VirtualWan
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
  exampleVirtualHub:
    type: azure:network:VirtualHub
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      virtualWanId: ${exampleVirtualWan.id}
      addressPrefix: 10.0.2.0/24
  exampleVirtualHubConnection:
    type: azure:network:VirtualHubConnection
    properties:
      virtualHubId: ${exampleVirtualHub.id}
      remoteVirtualNetworkId: ${exampleVirtualNetwork.id}
      routing:
        associatedRouteTableId: ${exampleVirtualHubRouteTable.id}
  exampleVirtualHubRouteTable:
    type: azure:network:VirtualHubRouteTable
    properties:
      virtualHubId: ${exampleVirtualHub.id}
      labels:
        - label1
  exampleVirtualHubRouteTableRoute:
    type: azure:network:VirtualHubRouteTableRoute
    properties:
      routeTableId: ${exampleVirtualHubRouteTable.id}
      destinationsType: CIDR
      destinations:
        - 10.0.0.0/16
      nextHopType: ResourceId
      nextHop: ${exampleVirtualHubConnection.id}

Create VirtualHubRouteTableRoute Resource

new VirtualHubRouteTableRoute(name: string, args: VirtualHubRouteTableRouteArgs, opts?: CustomResourceOptions);
@overload
def VirtualHubRouteTableRoute(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              destinations: Optional[Sequence[str]] = None,
                              destinations_type: Optional[str] = None,
                              name: Optional[str] = None,
                              next_hop: Optional[str] = None,
                              next_hop_type: Optional[str] = None,
                              route_table_id: Optional[str] = None)
@overload
def VirtualHubRouteTableRoute(resource_name: str,
                              args: VirtualHubRouteTableRouteInitArgs,
                              opts: Optional[ResourceOptions] = None)
func NewVirtualHubRouteTableRoute(ctx *Context, name string, args VirtualHubRouteTableRouteArgs, opts ...ResourceOption) (*VirtualHubRouteTableRoute, error)
public VirtualHubRouteTableRoute(string name, VirtualHubRouteTableRouteArgs args, CustomResourceOptions? opts = null)
public VirtualHubRouteTableRoute(String name, VirtualHubRouteTableRouteArgs args)
public VirtualHubRouteTableRoute(String name, VirtualHubRouteTableRouteArgs args, CustomResourceOptions options)
type: azure:network:VirtualHubRouteTableRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VirtualHubRouteTableRouteArgs
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 VirtualHubRouteTableRouteInitArgs
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 VirtualHubRouteTableRouteArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VirtualHubRouteTableRouteArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VirtualHubRouteTableRouteArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VirtualHubRouteTableRoute Resource Properties

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

Inputs

The VirtualHubRouteTableRoute resource accepts the following input properties:

Destinations List<string>

A list of destination addresses for this route.

DestinationsType string

The type of destinations. Possible values are CIDR, ResourceId and Service.

NextHop string

The next hop's resource ID.

RouteTableId string

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

Name string

The name which should be used for this route. Changing this forces a new resource to be created.

NextHopType string

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

Destinations []string

A list of destination addresses for this route.

DestinationsType string

The type of destinations. Possible values are CIDR, ResourceId and Service.

NextHop string

The next hop's resource ID.

RouteTableId string

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

Name string

The name which should be used for this route. Changing this forces a new resource to be created.

NextHopType string

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

destinations List<String>

A list of destination addresses for this route.

destinationsType String

The type of destinations. Possible values are CIDR, ResourceId and Service.

nextHop String

The next hop's resource ID.

routeTableId String

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

name String

The name which should be used for this route. Changing this forces a new resource to be created.

nextHopType String

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

destinations string[]

A list of destination addresses for this route.

destinationsType string

The type of destinations. Possible values are CIDR, ResourceId and Service.

nextHop string

The next hop's resource ID.

routeTableId string

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

name string

The name which should be used for this route. Changing this forces a new resource to be created.

nextHopType string

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

destinations Sequence[str]

A list of destination addresses for this route.

destinations_type str

The type of destinations. Possible values are CIDR, ResourceId and Service.

next_hop str

The next hop's resource ID.

route_table_id str

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

name str

The name which should be used for this route. Changing this forces a new resource to be created.

next_hop_type str

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

destinations List<String>

A list of destination addresses for this route.

destinationsType String

The type of destinations. Possible values are CIDR, ResourceId and Service.

nextHop String

The next hop's resource ID.

routeTableId String

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

name String

The name which should be used for this route. Changing this forces a new resource to be created.

nextHopType String

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

Outputs

All input properties are implicitly available as output properties. Additionally, the VirtualHubRouteTableRoute 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 VirtualHubRouteTableRoute Resource

Get an existing VirtualHubRouteTableRoute 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?: VirtualHubRouteTableRouteState, opts?: CustomResourceOptions): VirtualHubRouteTableRoute
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        destinations: Optional[Sequence[str]] = None,
        destinations_type: Optional[str] = None,
        name: Optional[str] = None,
        next_hop: Optional[str] = None,
        next_hop_type: Optional[str] = None,
        route_table_id: Optional[str] = None) -> VirtualHubRouteTableRoute
func GetVirtualHubRouteTableRoute(ctx *Context, name string, id IDInput, state *VirtualHubRouteTableRouteState, opts ...ResourceOption) (*VirtualHubRouteTableRoute, error)
public static VirtualHubRouteTableRoute Get(string name, Input<string> id, VirtualHubRouteTableRouteState? state, CustomResourceOptions? opts = null)
public static VirtualHubRouteTableRoute get(String name, Output<String> id, VirtualHubRouteTableRouteState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
Destinations List<string>

A list of destination addresses for this route.

DestinationsType string

The type of destinations. Possible values are CIDR, ResourceId and Service.

Name string

The name which should be used for this route. Changing this forces a new resource to be created.

NextHop string

The next hop's resource ID.

NextHopType string

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

RouteTableId string

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

Destinations []string

A list of destination addresses for this route.

DestinationsType string

The type of destinations. Possible values are CIDR, ResourceId and Service.

Name string

The name which should be used for this route. Changing this forces a new resource to be created.

NextHop string

The next hop's resource ID.

NextHopType string

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

RouteTableId string

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

destinations List<String>

A list of destination addresses for this route.

destinationsType String

The type of destinations. Possible values are CIDR, ResourceId and Service.

name String

The name which should be used for this route. Changing this forces a new resource to be created.

nextHop String

The next hop's resource ID.

nextHopType String

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

routeTableId String

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

destinations string[]

A list of destination addresses for this route.

destinationsType string

The type of destinations. Possible values are CIDR, ResourceId and Service.

name string

The name which should be used for this route. Changing this forces a new resource to be created.

nextHop string

The next hop's resource ID.

nextHopType string

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

routeTableId string

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

destinations Sequence[str]

A list of destination addresses for this route.

destinations_type str

The type of destinations. Possible values are CIDR, ResourceId and Service.

name str

The name which should be used for this route. Changing this forces a new resource to be created.

next_hop str

The next hop's resource ID.

next_hop_type str

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

route_table_id str

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

destinations List<String>

A list of destination addresses for this route.

destinationsType String

The type of destinations. Possible values are CIDR, ResourceId and Service.

name String

The name which should be used for this route. Changing this forces a new resource to be created.

nextHop String

The next hop's resource ID.

nextHopType String

The type of next hop. Currently the only possible value is ResourceId. Defaults to ResourceId.

routeTableId String

The ID of the Virtual Hub Route Table to link this route to. Changing this forces a new resource to be created.

Import

Virtual Hub Route Table Routes can be imported using <Route Table Resource Id>/routes/<Route Name>, e.g.

 $ pulumi import azure:network/virtualHubRouteTableRoute:VirtualHubRouteTableRoute example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/routeTable1/routes/routeName

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.