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

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 Connection for a Virtual Hub.

    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 = 
                {
                    "172.0.0.0/16",
                },
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            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.1.0/24",
            });
            var exampleVirtualHubConnection = new Azure.Network.VirtualHubConnection("exampleVirtualHubConnection", new Azure.Network.VirtualHubConnectionArgs
            {
                VirtualHubId = exampleVirtualHub.Id,
                RemoteVirtualNetworkId = exampleVirtualNetwork.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("172.0.0.0/16"),
    			},
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    		})
    		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.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewVirtualHubConnection(ctx, "exampleVirtualHubConnection", &network.VirtualHubConnectionArgs{
    			VirtualHubId:           exampleVirtualHub.ID(),
    			RemoteVirtualNetworkId: exampleVirtualNetwork.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: ["172.0.0.0/16"],
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
    });
    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.1.0/24",
    });
    const exampleVirtualHubConnection = new azure.network.VirtualHubConnection("exampleVirtualHubConnection", {
        virtualHubId: exampleVirtualHub.id,
        remoteVirtualNetworkId: exampleVirtualNetwork.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=["172.0.0.0/16"],
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name)
    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.1.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 coming soon!

    Create VirtualHubConnection Resource

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

    Constructor syntax

    new VirtualHubConnection(name: string, args: VirtualHubConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualHubConnection(resource_name: str,
                             args: VirtualHubConnectionArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualHubConnection(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             remote_virtual_network_id: Optional[str] = None,
                             virtual_hub_id: Optional[str] = None,
                             hub_to_vitual_network_traffic_allowed: Optional[bool] = None,
                             internet_security_enabled: Optional[bool] = None,
                             name: Optional[str] = None,
                             routing: Optional[VirtualHubConnectionRoutingArgs] = None,
                             vitual_network_to_hub_gateways_traffic_allowed: Optional[bool] = None)
    func NewVirtualHubConnection(ctx *Context, name string, args VirtualHubConnectionArgs, opts ...ResourceOption) (*VirtualHubConnection, error)
    public VirtualHubConnection(string name, VirtualHubConnectionArgs args, CustomResourceOptions? opts = null)
    public VirtualHubConnection(String name, VirtualHubConnectionArgs args)
    public VirtualHubConnection(String name, VirtualHubConnectionArgs args, CustomResourceOptions options)
    
    type: azure:network:VirtualHubConnection
    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 VirtualHubConnectionArgs
    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 VirtualHubConnectionArgs
    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 VirtualHubConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualHubConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualHubConnectionArgs
    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 virtualHubConnectionResource = new Azure.Network.VirtualHubConnection("virtualHubConnectionResource", new()
    {
        RemoteVirtualNetworkId = "string",
        VirtualHubId = "string",
        InternetSecurityEnabled = false,
        Name = "string",
        Routing = new Azure.Network.Inputs.VirtualHubConnectionRoutingArgs
        {
            AssociatedRouteTableId = "string",
            PropagatedRouteTable = new Azure.Network.Inputs.VirtualHubConnectionRoutingPropagatedRouteTableArgs
            {
                Labels = new[]
                {
                    "string",
                },
                RouteTableIds = new[]
                {
                    "string",
                },
            },
            StaticVnetRoutes = new[]
            {
                new Azure.Network.Inputs.VirtualHubConnectionRoutingStaticVnetRouteArgs
                {
                    AddressPrefixes = new[]
                    {
                        "string",
                    },
                    Name = "string",
                    NextHopIpAddress = "string",
                },
            },
        },
    });
    
    example, err := network.NewVirtualHubConnection(ctx, "virtualHubConnectionResource", &network.VirtualHubConnectionArgs{
    	RemoteVirtualNetworkId:  pulumi.String("string"),
    	VirtualHubId:            pulumi.String("string"),
    	InternetSecurityEnabled: pulumi.Bool(false),
    	Name:                    pulumi.String("string"),
    	Routing: &network.VirtualHubConnectionRoutingArgs{
    		AssociatedRouteTableId: pulumi.String("string"),
    		PropagatedRouteTable: &network.VirtualHubConnectionRoutingPropagatedRouteTableArgs{
    			Labels: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			RouteTableIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		StaticVnetRoutes: network.VirtualHubConnectionRoutingStaticVnetRouteArray{
    			&network.VirtualHubConnectionRoutingStaticVnetRouteArgs{
    				AddressPrefixes: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Name:             pulumi.String("string"),
    				NextHopIpAddress: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var virtualHubConnectionResource = new VirtualHubConnection("virtualHubConnectionResource", VirtualHubConnectionArgs.builder()
        .remoteVirtualNetworkId("string")
        .virtualHubId("string")
        .internetSecurityEnabled(false)
        .name("string")
        .routing(VirtualHubConnectionRoutingArgs.builder()
            .associatedRouteTableId("string")
            .propagatedRouteTable(VirtualHubConnectionRoutingPropagatedRouteTableArgs.builder()
                .labels("string")
                .routeTableIds("string")
                .build())
            .staticVnetRoutes(VirtualHubConnectionRoutingStaticVnetRouteArgs.builder()
                .addressPrefixes("string")
                .name("string")
                .nextHopIpAddress("string")
                .build())
            .build())
        .build());
    
    virtual_hub_connection_resource = azure.network.VirtualHubConnection("virtualHubConnectionResource",
        remote_virtual_network_id="string",
        virtual_hub_id="string",
        internet_security_enabled=False,
        name="string",
        routing={
            "associated_route_table_id": "string",
            "propagated_route_table": {
                "labels": ["string"],
                "route_table_ids": ["string"],
            },
            "static_vnet_routes": [{
                "address_prefixes": ["string"],
                "name": "string",
                "next_hop_ip_address": "string",
            }],
        })
    
    const virtualHubConnectionResource = new azure.network.VirtualHubConnection("virtualHubConnectionResource", {
        remoteVirtualNetworkId: "string",
        virtualHubId: "string",
        internetSecurityEnabled: false,
        name: "string",
        routing: {
            associatedRouteTableId: "string",
            propagatedRouteTable: {
                labels: ["string"],
                routeTableIds: ["string"],
            },
            staticVnetRoutes: [{
                addressPrefixes: ["string"],
                name: "string",
                nextHopIpAddress: "string",
            }],
        },
    });
    
    type: azure:network:VirtualHubConnection
    properties:
        internetSecurityEnabled: false
        name: string
        remoteVirtualNetworkId: string
        routing:
            associatedRouteTableId: string
            propagatedRouteTable:
                labels:
                    - string
                routeTableIds:
                    - string
            staticVnetRoutes:
                - addressPrefixes:
                    - string
                  name: string
                  nextHopIpAddress: string
        virtualHubId: string
    

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

    RemoteVirtualNetworkId string
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    VirtualHubId string
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    HubToVitualNetworkTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    InternetSecurityEnabled bool
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    Name string
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    Routing VirtualHubConnectionRouting
    A routing block as defined below.
    VitualNetworkToHubGatewaysTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    RemoteVirtualNetworkId string
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    VirtualHubId string
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    HubToVitualNetworkTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    InternetSecurityEnabled bool
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    Name string
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    Routing VirtualHubConnectionRoutingArgs
    A routing block as defined below.
    VitualNetworkToHubGatewaysTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    remoteVirtualNetworkId String
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    virtualHubId String
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    hubToVitualNetworkTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internetSecurityEnabled Boolean
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name String
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    routing VirtualHubConnectionRouting
    A routing block as defined below.
    vitualNetworkToHubGatewaysTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    remoteVirtualNetworkId string
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    virtualHubId string
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    hubToVitualNetworkTrafficAllowed boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internetSecurityEnabled boolean
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name string
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    routing VirtualHubConnectionRouting
    A routing block as defined below.
    vitualNetworkToHubGatewaysTrafficAllowed boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    remote_virtual_network_id str
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    virtual_hub_id str
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    hub_to_vitual_network_traffic_allowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internet_security_enabled bool
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name str
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    routing VirtualHubConnectionRoutingArgs
    A routing block as defined below.
    vitual_network_to_hub_gateways_traffic_allowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    remoteVirtualNetworkId String
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    virtualHubId String
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    hubToVitualNetworkTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internetSecurityEnabled Boolean
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name String
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    routing Property Map
    A routing block as defined below.
    vitualNetworkToHubGatewaysTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    Outputs

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

    Get an existing VirtualHubConnection 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?: VirtualHubConnectionState, opts?: CustomResourceOptions): VirtualHubConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            hub_to_vitual_network_traffic_allowed: Optional[bool] = None,
            internet_security_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            remote_virtual_network_id: Optional[str] = None,
            routing: Optional[VirtualHubConnectionRoutingArgs] = None,
            virtual_hub_id: Optional[str] = None,
            vitual_network_to_hub_gateways_traffic_allowed: Optional[bool] = None) -> VirtualHubConnection
    func GetVirtualHubConnection(ctx *Context, name string, id IDInput, state *VirtualHubConnectionState, opts ...ResourceOption) (*VirtualHubConnection, error)
    public static VirtualHubConnection Get(string name, Input<string> id, VirtualHubConnectionState? state, CustomResourceOptions? opts = null)
    public static VirtualHubConnection get(String name, Output<String> id, VirtualHubConnectionState state, CustomResourceOptions options)
    resources:  _:    type: azure:network:VirtualHubConnection    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:
    HubToVitualNetworkTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    InternetSecurityEnabled bool
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    Name string
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    RemoteVirtualNetworkId string
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    Routing VirtualHubConnectionRouting
    A routing block as defined below.
    VirtualHubId string
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    VitualNetworkToHubGatewaysTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    HubToVitualNetworkTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    InternetSecurityEnabled bool
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    Name string
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    RemoteVirtualNetworkId string
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    Routing VirtualHubConnectionRoutingArgs
    A routing block as defined below.
    VirtualHubId string
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    VitualNetworkToHubGatewaysTrafficAllowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    hubToVitualNetworkTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internetSecurityEnabled Boolean
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name String
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    remoteVirtualNetworkId String
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    routing VirtualHubConnectionRouting
    A routing block as defined below.
    virtualHubId String
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    vitualNetworkToHubGatewaysTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    hubToVitualNetworkTrafficAllowed boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internetSecurityEnabled boolean
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name string
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    remoteVirtualNetworkId string
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    routing VirtualHubConnectionRouting
    A routing block as defined below.
    virtualHubId string
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    vitualNetworkToHubGatewaysTrafficAllowed boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    hub_to_vitual_network_traffic_allowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internet_security_enabled bool
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name str
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    remote_virtual_network_id str
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    routing VirtualHubConnectionRoutingArgs
    A routing block as defined below.
    virtual_hub_id str
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    vitual_network_to_hub_gateways_traffic_allowed bool

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    hubToVitualNetworkTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    internetSecurityEnabled Boolean
    Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
    name String
    The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
    remoteVirtualNetworkId String
    The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
    routing Property Map
    A routing block as defined below.
    virtualHubId String
    The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
    vitualNetworkToHubGatewaysTrafficAllowed Boolean

    Deprecated: Due to a breaking behavioural change in the Azure API this property is no longer functional and will be removed in version 3.0 of the provider

    Supporting Types

    VirtualHubConnectionRouting, VirtualHubConnectionRoutingArgs

    AssociatedRouteTableId string
    The ID of the route table associated with this Virtual Hub connection.
    PropagatedRouteTable VirtualHubConnectionRoutingPropagatedRouteTable
    A propagated_route_table block as defined below.
    StaticVnetRoutes List<VirtualHubConnectionRoutingStaticVnetRoute>
    A static_vnet_route block as defined below.
    AssociatedRouteTableId string
    The ID of the route table associated with this Virtual Hub connection.
    PropagatedRouteTable VirtualHubConnectionRoutingPropagatedRouteTable
    A propagated_route_table block as defined below.
    StaticVnetRoutes []VirtualHubConnectionRoutingStaticVnetRoute
    A static_vnet_route block as defined below.
    associatedRouteTableId String
    The ID of the route table associated with this Virtual Hub connection.
    propagatedRouteTable VirtualHubConnectionRoutingPropagatedRouteTable
    A propagated_route_table block as defined below.
    staticVnetRoutes List<VirtualHubConnectionRoutingStaticVnetRoute>
    A static_vnet_route block as defined below.
    associatedRouteTableId string
    The ID of the route table associated with this Virtual Hub connection.
    propagatedRouteTable VirtualHubConnectionRoutingPropagatedRouteTable
    A propagated_route_table block as defined below.
    staticVnetRoutes VirtualHubConnectionRoutingStaticVnetRoute[]
    A static_vnet_route block as defined below.
    associated_route_table_id str
    The ID of the route table associated with this Virtual Hub connection.
    propagated_route_table VirtualHubConnectionRoutingPropagatedRouteTable
    A propagated_route_table block as defined below.
    static_vnet_routes Sequence[VirtualHubConnectionRoutingStaticVnetRoute]
    A static_vnet_route block as defined below.
    associatedRouteTableId String
    The ID of the route table associated with this Virtual Hub connection.
    propagatedRouteTable Property Map
    A propagated_route_table block as defined below.
    staticVnetRoutes List<Property Map>
    A static_vnet_route block as defined below.

    VirtualHubConnectionRoutingPropagatedRouteTable, VirtualHubConnectionRoutingPropagatedRouteTableArgs

    Labels List<string>
    The list of labels to assign to this route table.
    RouteTableIds List<string>
    A list of Route Table ID's to associated with this Virtual Hub Connection.
    Labels []string
    The list of labels to assign to this route table.
    RouteTableIds []string
    A list of Route Table ID's to associated with this Virtual Hub Connection.
    labels List<String>
    The list of labels to assign to this route table.
    routeTableIds List<String>
    A list of Route Table ID's to associated with this Virtual Hub Connection.
    labels string[]
    The list of labels to assign to this route table.
    routeTableIds string[]
    A list of Route Table ID's to associated with this Virtual Hub Connection.
    labels Sequence[str]
    The list of labels to assign to this route table.
    route_table_ids Sequence[str]
    A list of Route Table ID's to associated with this Virtual Hub Connection.
    labels List<String>
    The list of labels to assign to this route table.
    routeTableIds List<String>
    A list of Route Table ID's to associated with this Virtual Hub Connection.

    VirtualHubConnectionRoutingStaticVnetRoute, VirtualHubConnectionRoutingStaticVnetRouteArgs

    AddressPrefixes List<string>
    A list of CIDR Ranges which should be used as Address Prefixes.
    Name string
    The name which should be used for this Static Route.
    NextHopIpAddress string
    The IP Address which should be used for the Next Hop.
    AddressPrefixes []string
    A list of CIDR Ranges which should be used as Address Prefixes.
    Name string
    The name which should be used for this Static Route.
    NextHopIpAddress string
    The IP Address which should be used for the Next Hop.
    addressPrefixes List<String>
    A list of CIDR Ranges which should be used as Address Prefixes.
    name String
    The name which should be used for this Static Route.
    nextHopIpAddress String
    The IP Address which should be used for the Next Hop.
    addressPrefixes string[]
    A list of CIDR Ranges which should be used as Address Prefixes.
    name string
    The name which should be used for this Static Route.
    nextHopIpAddress string
    The IP Address which should be used for the Next Hop.
    address_prefixes Sequence[str]
    A list of CIDR Ranges which should be used as Address Prefixes.
    name str
    The name which should be used for this Static Route.
    next_hop_ip_address str
    The IP Address which should be used for the Next Hop.
    addressPrefixes List<String>
    A list of CIDR Ranges which should be used as Address Prefixes.
    name String
    The name which should be used for this Static Route.
    nextHopIpAddress String
    The IP Address which should be used for the Next Hop.

    Import

    Virtual Hub Connection’s can be imported using the resource id, e.g.

     $ pulumi import azure:network/virtualHubConnection:VirtualHubConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualHubs/hub1/hubVirtualNetworkConnections/connection1
    

    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.