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

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a Virtual Hub Route Table.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
            {
                AddressSpaces = 
                {
                    "10.5.0.0/16",
                },
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleNetworkSecurityGroup = new Azure.Network.NetworkSecurityGroup("exampleNetworkSecurityGroup", new Azure.Network.NetworkSecurityGroupArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                VirtualNetworkName = exampleVirtualNetwork.Name,
                AddressPrefixes = 
                {
                    "10.5.1.0/24",
                },
            });
            var exampleSubnetNetworkSecurityGroupAssociation = new Azure.Network.SubnetNetworkSecurityGroupAssociation("exampleSubnetNetworkSecurityGroupAssociation", new Azure.Network.SubnetNetworkSecurityGroupAssociationArgs
            {
                SubnetId = exampleSubnet.Id,
                NetworkSecurityGroupId = exampleNetworkSecurityGroup.Id,
            });
            var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new Azure.Network.VirtualWanArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
            });
            var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new Azure.Network.VirtualHubArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
                VirtualWanId = exampleVirtualWan.Id,
                AddressPrefix = "10.0.2.0/24",
            });
            var exampleVirtualHubConnection = new Azure.Network.VirtualHubConnection("exampleVirtualHubConnection", new Azure.Network.VirtualHubConnectionArgs
            {
                VirtualHubId = exampleVirtualHub.Id,
                RemoteVirtualNetworkId = exampleVirtualNetwork.Id,
            });
            var exampleVirtualHubRouteTable = new Azure.Network.VirtualHubRouteTable("exampleVirtualHubRouteTable", new Azure.Network.VirtualHubRouteTableArgs
            {
                VirtualHubId = exampleVirtualHub.Id,
                Labels = 
                {
                    "label1",
                },
                Routes = 
                {
                    new Azure.Network.Inputs.VirtualHubRouteTableRouteArgs
                    {
                        Name = "example-route",
                        DestinationsType = "CIDR",
                        Destinations = 
                        {
                            "10.0.0.0/16",
                        },
                        NextHopType = "ResourceId",
                        NextHop = exampleVirtualHubConnection.Id,
                    },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/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
    		}
    		exampleVirtualHubConnection, err := network.NewVirtualHubConnection(ctx, "exampleVirtualHubConnection", &network.VirtualHubConnectionArgs{
    			VirtualHubId:           exampleVirtualHub.ID(),
    			RemoteVirtualNetworkId: exampleVirtualNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewVirtualHubRouteTable(ctx, "exampleVirtualHubRouteTable", &network.VirtualHubRouteTableArgs{
    			VirtualHubId: exampleVirtualHub.ID(),
    			Labels: pulumi.StringArray{
    				pulumi.String("label1"),
    			},
    			Routes: network.VirtualHubRouteTableRouteArray{
    				&network.VirtualHubRouteTableRouteArgs{
    					Name:             pulumi.String("example-route"),
    					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
    	})
    }
    

    Example coming soon!

    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 exampleVirtualHubConnection = new azure.network.VirtualHubConnection("exampleVirtualHubConnection", {
        virtualHubId: exampleVirtualHub.id,
        remoteVirtualNetworkId: exampleVirtualNetwork.id,
    });
    const exampleVirtualHubRouteTable = new azure.network.VirtualHubRouteTable("exampleVirtualHubRouteTable", {
        virtualHubId: exampleVirtualHub.id,
        labels: ["label1"],
        routes: [{
            name: "example-route",
            destinationsType: "CIDR",
            destinations: ["10.0.0.0/16"],
            nextHopType: "ResourceId",
            nextHop: exampleVirtualHubConnection.id,
        }],
    });
    
    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_connection = azure.network.VirtualHubConnection("exampleVirtualHubConnection",
        virtual_hub_id=example_virtual_hub.id,
        remote_virtual_network_id=example_virtual_network.id)
    example_virtual_hub_route_table = azure.network.VirtualHubRouteTable("exampleVirtualHubRouteTable",
        virtual_hub_id=example_virtual_hub.id,
        labels=["label1"],
        routes=[azure.network.VirtualHubRouteTableRouteArgs(
            name="example-route",
            destinations_type="CIDR",
            destinations=["10.0.0.0/16"],
            next_hop_type="ResourceId",
            next_hop=example_virtual_hub_connection.id,
        )])
    

    Example coming soon!

    Create VirtualHubRouteTable Resource

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

    Constructor syntax

    new VirtualHubRouteTable(name: string, args: VirtualHubRouteTableArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualHubRouteTable(resource_name: str,
                             args: VirtualHubRouteTableArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualHubRouteTable(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             virtual_hub_id: Optional[str] = None,
                             labels: Optional[Sequence[str]] = None,
                             name: Optional[str] = None,
                             routes: Optional[Sequence[VirtualHubRouteTableRouteArgs]] = None)
    func NewVirtualHubRouteTable(ctx *Context, name string, args VirtualHubRouteTableArgs, opts ...ResourceOption) (*VirtualHubRouteTable, error)
    public VirtualHubRouteTable(string name, VirtualHubRouteTableArgs args, CustomResourceOptions? opts = null)
    public VirtualHubRouteTable(String name, VirtualHubRouteTableArgs args)
    public VirtualHubRouteTable(String name, VirtualHubRouteTableArgs args, CustomResourceOptions options)
    
    type: azure:network:VirtualHubRouteTable
    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 VirtualHubRouteTableArgs
    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 VirtualHubRouteTableArgs
    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 VirtualHubRouteTableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualHubRouteTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualHubRouteTableArgs
    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 virtualHubRouteTableResource = new Azure.Network.VirtualHubRouteTable("virtualHubRouteTableResource", new()
    {
        VirtualHubId = "string",
        Labels = new[]
        {
            "string",
        },
        Name = "string",
        Routes = new[]
        {
            new Azure.Network.Inputs.VirtualHubRouteTableRouteArgs
            {
                Destinations = new[]
                {
                    "string",
                },
                DestinationsType = "string",
                Name = "string",
                NextHop = "string",
                NextHopType = "string",
            },
        },
    });
    
    example, err := network.NewVirtualHubRouteTable(ctx, "virtualHubRouteTableResource", &network.VirtualHubRouteTableArgs{
    	VirtualHubId: pulumi.String("string"),
    	Labels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	Routes: network.VirtualHubRouteTableRouteTypeArray{
    		&network.VirtualHubRouteTableRouteTypeArgs{
    			Destinations: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			DestinationsType: pulumi.String("string"),
    			Name:             pulumi.String("string"),
    			NextHop:          pulumi.String("string"),
    			NextHopType:      pulumi.String("string"),
    		},
    	},
    })
    
    var virtualHubRouteTableResource = new VirtualHubRouteTable("virtualHubRouteTableResource", VirtualHubRouteTableArgs.builder()
        .virtualHubId("string")
        .labels("string")
        .name("string")
        .routes(VirtualHubRouteTableRouteArgs.builder()
            .destinations("string")
            .destinationsType("string")
            .name("string")
            .nextHop("string")
            .nextHopType("string")
            .build())
        .build());
    
    virtual_hub_route_table_resource = azure.network.VirtualHubRouteTable("virtualHubRouteTableResource",
        virtual_hub_id="string",
        labels=["string"],
        name="string",
        routes=[{
            "destinations": ["string"],
            "destinations_type": "string",
            "name": "string",
            "next_hop": "string",
            "next_hop_type": "string",
        }])
    
    const virtualHubRouteTableResource = new azure.network.VirtualHubRouteTable("virtualHubRouteTableResource", {
        virtualHubId: "string",
        labels: ["string"],
        name: "string",
        routes: [{
            destinations: ["string"],
            destinationsType: "string",
            name: "string",
            nextHop: "string",
            nextHopType: "string",
        }],
    });
    
    type: azure:network:VirtualHubRouteTable
    properties:
        labels:
            - string
        name: string
        routes:
            - destinations:
                - string
              destinationsType: string
              name: string
              nextHop: string
              nextHopType: string
        virtualHubId: string
    

    VirtualHubRouteTable 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 VirtualHubRouteTable resource accepts the following input properties:

    VirtualHubId string
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    Labels List<string>
    List of labels associated with this route table.
    Name string
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    Routes List<VirtualHubRouteTableRoute>
    A route block as defined below.
    VirtualHubId string
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    Labels []string
    List of labels associated with this route table.
    Name string
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    Routes []VirtualHubRouteTableRouteTypeArgs
    A route block as defined below.
    virtualHubId String
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels List<String>
    List of labels associated with this route table.
    name String
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes List<VirtualHubRouteTableRoute>
    A route block as defined below.
    virtualHubId string
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels string[]
    List of labels associated with this route table.
    name string
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes VirtualHubRouteTableRoute[]
    A route block as defined below.
    virtual_hub_id str
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels Sequence[str]
    List of labels associated with this route table.
    name str
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes Sequence[VirtualHubRouteTableRouteArgs]
    A route block as defined below.
    virtualHubId String
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels List<String>
    List of labels associated with this route table.
    name String
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes List<Property Map>
    A route block as defined below.

    Outputs

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

    Get an existing VirtualHubRouteTable 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?: VirtualHubRouteTableState, opts?: CustomResourceOptions): VirtualHubRouteTable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            labels: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            routes: Optional[Sequence[VirtualHubRouteTableRouteArgs]] = None,
            virtual_hub_id: Optional[str] = None) -> VirtualHubRouteTable
    func GetVirtualHubRouteTable(ctx *Context, name string, id IDInput, state *VirtualHubRouteTableState, opts ...ResourceOption) (*VirtualHubRouteTable, error)
    public static VirtualHubRouteTable Get(string name, Input<string> id, VirtualHubRouteTableState? state, CustomResourceOptions? opts = null)
    public static VirtualHubRouteTable get(String name, Output<String> id, VirtualHubRouteTableState state, CustomResourceOptions options)
    resources:  _:    type: azure:network:VirtualHubRouteTable    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:
    Labels List<string>
    List of labels associated with this route table.
    Name string
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    Routes List<VirtualHubRouteTableRoute>
    A route block as defined below.
    VirtualHubId string
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    Labels []string
    List of labels associated with this route table.
    Name string
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    Routes []VirtualHubRouteTableRouteTypeArgs
    A route block as defined below.
    VirtualHubId string
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels List<String>
    List of labels associated with this route table.
    name String
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes List<VirtualHubRouteTableRoute>
    A route block as defined below.
    virtualHubId String
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels string[]
    List of labels associated with this route table.
    name string
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes VirtualHubRouteTableRoute[]
    A route block as defined below.
    virtualHubId string
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels Sequence[str]
    List of labels associated with this route table.
    name str
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes Sequence[VirtualHubRouteTableRouteArgs]
    A route block as defined below.
    virtual_hub_id str
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.
    labels List<String>
    List of labels associated with this route table.
    name String
    The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
    routes List<Property Map>
    A route block as defined below.
    virtualHubId String
    The ID of the Virtual Hub within which this route table should be created. Changing this forces a new resource to be created.

    Supporting Types

    VirtualHubRouteTableRoute, VirtualHubRouteTableRouteArgs

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

    Import

    Virtual Hub Route Tables can be imported using the resource id, e.g.

     $ pulumi import azure:network/virtualHubRouteTable:VirtualHubRouteTable example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/routeTable1
    

    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.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.