We recommend using Azure Native.
azure.network.VirtualHubConnection
Explore with Pulumi AI
Manages a Connection for a Virtual Hub.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
name: "example-network",
addressSpaces: ["172.16.0.0/12"],
location: example.location,
resourceGroupName: example.name,
});
const exampleVirtualWan = new azure.network.VirtualWan("example", {
name: "example-vwan",
resourceGroupName: example.name,
location: example.location,
});
const exampleVirtualHub = new azure.network.VirtualHub("example", {
name: "example-hub",
resourceGroupName: example.name,
location: example.location,
virtualWanId: exampleVirtualWan.id,
addressPrefix: "10.0.1.0/24",
});
const exampleVirtualHubConnection = new azure.network.VirtualHubConnection("example", {
name: "example-vhub",
virtualHubId: exampleVirtualHub.id,
remoteVirtualNetworkId: exampleVirtualNetwork.id,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("example",
name="example-network",
address_spaces=["172.16.0.0/12"],
location=example.location,
resource_group_name=example.name)
example_virtual_wan = azure.network.VirtualWan("example",
name="example-vwan",
resource_group_name=example.name,
location=example.location)
example_virtual_hub = azure.network.VirtualHub("example",
name="example-hub",
resource_group_name=example.name,
location=example.location,
virtual_wan_id=example_virtual_wan.id,
address_prefix="10.0.1.0/24")
example_virtual_hub_connection = azure.network.VirtualHubConnection("example",
name="example-vhub",
virtual_hub_id=example_virtual_hub.id,
remote_virtual_network_id=example_virtual_network.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
Name: pulumi.String("example-network"),
AddressSpaces: pulumi.StringArray{
pulumi.String("172.16.0.0/12"),
},
Location: example.Location,
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
exampleVirtualWan, err := network.NewVirtualWan(ctx, "example", &network.VirtualWanArgs{
Name: pulumi.String("example-vwan"),
ResourceGroupName: example.Name,
Location: example.Location,
})
if err != nil {
return err
}
exampleVirtualHub, err := network.NewVirtualHub(ctx, "example", &network.VirtualHubArgs{
Name: pulumi.String("example-hub"),
ResourceGroupName: example.Name,
Location: example.Location,
VirtualWanId: exampleVirtualWan.ID(),
AddressPrefix: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
_, err = network.NewVirtualHubConnection(ctx, "example", &network.VirtualHubConnectionArgs{
Name: pulumi.String("example-vhub"),
VirtualHubId: exampleVirtualHub.ID(),
RemoteVirtualNetworkId: exampleVirtualNetwork.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
{
Name = "example-network",
AddressSpaces = new[]
{
"172.16.0.0/12",
},
Location = example.Location,
ResourceGroupName = example.Name,
});
var exampleVirtualWan = new Azure.Network.VirtualWan("example", new()
{
Name = "example-vwan",
ResourceGroupName = example.Name,
Location = example.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("example", new()
{
Name = "example-hub",
ResourceGroupName = example.Name,
Location = example.Location,
VirtualWanId = exampleVirtualWan.Id,
AddressPrefix = "10.0.1.0/24",
});
var exampleVirtualHubConnection = new Azure.Network.VirtualHubConnection("example", new()
{
Name = "example-vhub",
VirtualHubId = exampleVirtualHub.Id,
RemoteVirtualNetworkId = exampleVirtualNetwork.Id,
});
});
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.VirtualWan;
import com.pulumi.azure.network.VirtualWanArgs;
import com.pulumi.azure.network.VirtualHub;
import com.pulumi.azure.network.VirtualHubArgs;
import com.pulumi.azure.network.VirtualHubConnection;
import com.pulumi.azure.network.VirtualHubConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("example-network")
.addressSpaces("172.16.0.0/12")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()
.name("example-vwan")
.resourceGroupName(example.name())
.location(example.location())
.build());
var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
.name("example-hub")
.resourceGroupName(example.name())
.location(example.location())
.virtualWanId(exampleVirtualWan.id())
.addressPrefix("10.0.1.0/24")
.build());
var exampleVirtualHubConnection = new VirtualHubConnection("exampleVirtualHubConnection", VirtualHubConnectionArgs.builder()
.name("example-vhub")
.virtualHubId(exampleVirtualHub.id())
.remoteVirtualNetworkId(exampleVirtualNetwork.id())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-network
addressSpaces:
- 172.16.0.0/12
location: ${example.location}
resourceGroupName: ${example.name}
exampleVirtualWan:
type: azure:network:VirtualWan
name: example
properties:
name: example-vwan
resourceGroupName: ${example.name}
location: ${example.location}
exampleVirtualHub:
type: azure:network:VirtualHub
name: example
properties:
name: example-hub
resourceGroupName: ${example.name}
location: ${example.location}
virtualWanId: ${exampleVirtualWan.id}
addressPrefix: 10.0.1.0/24
exampleVirtualHubConnection:
type: azure:network:VirtualHubConnection
name: example
properties:
name: example-vhub
virtualHubId: ${exampleVirtualHub.id}
remoteVirtualNetworkId: ${exampleVirtualNetwork.id}
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,
internet_security_enabled: Optional[bool] = None,
name: Optional[str] = None,
routing: Optional[VirtualHubConnectionRoutingArgs] = 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",
InboundRouteMapId = "string",
OutboundRouteMapId = "string",
PropagatedRouteTable = new Azure.Network.Inputs.VirtualHubConnectionRoutingPropagatedRouteTableArgs
{
Labels = new[]
{
"string",
},
RouteTableIds = new[]
{
"string",
},
},
StaticVnetLocalRouteOverrideCriteria = "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"),
InboundRouteMapId: pulumi.String("string"),
OutboundRouteMapId: pulumi.String("string"),
PropagatedRouteTable: &network.VirtualHubConnectionRoutingPropagatedRouteTableArgs{
Labels: pulumi.StringArray{
pulumi.String("string"),
},
RouteTableIds: pulumi.StringArray{
pulumi.String("string"),
},
},
StaticVnetLocalRouteOverrideCriteria: 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")
.inboundRouteMapId("string")
.outboundRouteMapId("string")
.propagatedRouteTable(VirtualHubConnectionRoutingPropagatedRouteTableArgs.builder()
.labels("string")
.routeTableIds("string")
.build())
.staticVnetLocalRouteOverrideCriteria("string")
.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={
"associatedRouteTableId": "string",
"inboundRouteMapId": "string",
"outboundRouteMapId": "string",
"propagatedRouteTable": {
"labels": ["string"],
"routeTableIds": ["string"],
},
"staticVnetLocalRouteOverrideCriteria": "string",
"staticVnetRoutes": [{
"addressPrefixes": ["string"],
"name": "string",
"nextHopIpAddress": "string",
}],
})
const virtualHubConnectionResource = new azure.network.VirtualHubConnection("virtualHubConnectionResource", {
remoteVirtualNetworkId: "string",
virtualHubId: "string",
internetSecurityEnabled: false,
name: "string",
routing: {
associatedRouteTableId: "string",
inboundRouteMapId: "string",
outboundRouteMapId: "string",
propagatedRouteTable: {
labels: ["string"],
routeTableIds: ["string"],
},
staticVnetLocalRouteOverrideCriteria: "string",
staticVnetRoutes: [{
addressPrefixes: ["string"],
name: "string",
nextHopIpAddress: "string",
}],
},
});
type: azure:network:VirtualHubConnection
properties:
internetSecurityEnabled: false
name: string
remoteVirtualNetworkId: string
routing:
associatedRouteTableId: string
inboundRouteMapId: string
outboundRouteMapId: string
propagatedRouteTable:
labels:
- string
routeTableIds:
- string
staticVnetLocalRouteOverrideCriteria: 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
The VirtualHubConnection resource accepts the following input properties:
- Remote
Virtual stringNetwork Id - 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 stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? 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
Virtual
Hub Connection Routing - A
routing
block as defined below.
- Remote
Virtual stringNetwork Id - 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 stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? 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
Virtual
Hub Connection Routing Args - A
routing
block as defined below.
- remote
Virtual StringNetwork Id - 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 StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? 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
Virtual
Hub Connection Routing - A
routing
block as defined below.
- remote
Virtual stringNetwork Id - 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 stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet
Security booleanEnabled - Should Internet Security be enabled to secure internet traffic? 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
Virtual
Hub Connection Routing - A
routing
block as defined below.
- remote_
virtual_ strnetwork_ id - 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_ strid - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet_
security_ boolenabled - Should Internet Security be enabled to secure internet traffic? 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
Virtual
Hub Connection Routing Args - A
routing
block as defined below.
- remote
Virtual StringNetwork Id - 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 StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? 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.
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,
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) -> 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)
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.
- Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? 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.
- Remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- Routing
Virtual
Hub Connection Routing - A
routing
block as defined below. - Virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? 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.
- Remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- Routing
Virtual
Hub Connection Routing Args - A
routing
block as defined below. - Virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? 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.
- remote
Virtual StringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing - A
routing
block as defined below. - virtual
Hub StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet
Security booleanEnabled - Should Internet Security be enabled to secure internet traffic? 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.
- remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing - A
routing
block as defined below. - virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet_
security_ boolenabled - Should Internet Security be enabled to secure internet traffic? 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_ strnetwork_ id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing Args - A
routing
block as defined below. - virtual_
hub_ strid - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? 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.
- remote
Virtual StringNetwork Id - 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. - virtual
Hub StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
Supporting Types
VirtualHubConnectionRouting, VirtualHubConnectionRoutingArgs
- Associated
Route stringTable Id - The ID of the route table associated with this Virtual Hub connection.
- Inbound
Route stringMap Id - The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- Outbound
Route stringMap Id - The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- Propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_table
block as defined below. - Static
Vnet stringLocal Route Override Criteria - The static VNet local route override criteria that is used to determine whether NVA in spoke VNet is bypassed for traffic with destination in spoke VNet. Possible values are
Contains
andEqual
. Defaults toContains
. Changing this forces a new resource to be created. - Static
Vnet List<VirtualRoutes Hub Connection Routing Static Vnet Route> - A
static_vnet_route
block as defined below.
- Associated
Route stringTable Id - The ID of the route table associated with this Virtual Hub connection.
- Inbound
Route stringMap Id - The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- Outbound
Route stringMap Id - The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- Propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_table
block as defined below. - Static
Vnet stringLocal Route Override Criteria - The static VNet local route override criteria that is used to determine whether NVA in spoke VNet is bypassed for traffic with destination in spoke VNet. Possible values are
Contains
andEqual
. Defaults toContains
. Changing this forces a new resource to be created. - Static
Vnet []VirtualRoutes Hub Connection Routing Static Vnet Route - A
static_vnet_route
block as defined below.
- associated
Route StringTable Id - The ID of the route table associated with this Virtual Hub connection.
- inbound
Route StringMap Id - The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outbound
Route StringMap Id - The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_table
block as defined below. - static
Vnet StringLocal Route Override Criteria - The static VNet local route override criteria that is used to determine whether NVA in spoke VNet is bypassed for traffic with destination in spoke VNet. Possible values are
Contains
andEqual
. Defaults toContains
. Changing this forces a new resource to be created. - static
Vnet List<VirtualRoutes Hub Connection Routing Static Vnet Route> - A
static_vnet_route
block as defined below.
- associated
Route stringTable Id - The ID of the route table associated with this Virtual Hub connection.
- inbound
Route stringMap Id - The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outbound
Route stringMap Id - The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_table
block as defined below. - static
Vnet stringLocal Route Override Criteria - The static VNet local route override criteria that is used to determine whether NVA in spoke VNet is bypassed for traffic with destination in spoke VNet. Possible values are
Contains
andEqual
. Defaults toContains
. Changing this forces a new resource to be created. - static
Vnet VirtualRoutes Hub Connection Routing Static Vnet Route[] - A
static_vnet_route
block as defined below.
- associated_
route_ strtable_ id - The ID of the route table associated with this Virtual Hub connection.
- inbound_
route_ strmap_ id - The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outbound_
route_ strmap_ id - The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagated_
route_ Virtualtable Hub Connection Routing Propagated Route Table - A
propagated_route_table
block as defined below. - static_
vnet_ strlocal_ route_ override_ criteria - The static VNet local route override criteria that is used to determine whether NVA in spoke VNet is bypassed for traffic with destination in spoke VNet. Possible values are
Contains
andEqual
. Defaults toContains
. Changing this forces a new resource to be created. - static_
vnet_ Sequence[Virtualroutes Hub Connection Routing Static Vnet Route] - A
static_vnet_route
block as defined below.
- associated
Route StringTable Id - The ID of the route table associated with this Virtual Hub connection.
- inbound
Route StringMap Id - The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outbound
Route StringMap Id - The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagated
Route Property MapTable - A
propagated_route_table
block as defined below. - static
Vnet StringLocal Route Override Criteria - The static VNet local route override criteria that is used to determine whether NVA in spoke VNet is bypassed for traffic with destination in spoke VNet. Possible values are
Contains
andEqual
. Defaults toContains
. Changing this forces a new resource to be created. - static
Vnet List<Property Map>Routes - A
static_vnet_route
block as defined below.
VirtualHubConnectionRoutingPropagatedRouteTable, VirtualHubConnectionRoutingPropagatedRouteTableArgs
- Labels List<string>
- The list of labels to assign to this route table.
- Route
Table List<string>Ids - A list of Route Table IDs to associated with this Virtual Hub Connection.
- Labels []string
- The list of labels to assign to this route table.
- Route
Table []stringIds - A list of Route Table IDs to associated with this Virtual Hub Connection.
- labels List<String>
- The list of labels to assign to this route table.
- route
Table List<String>Ids - A list of Route Table IDs to associated with this Virtual Hub Connection.
- labels string[]
- The list of labels to assign to this route table.
- route
Table string[]Ids - A list of Route Table IDs to associated with this Virtual Hub Connection.
- labels Sequence[str]
- The list of labels to assign to this route table.
- route_
table_ Sequence[str]ids - A list of Route Table IDs to associated with this Virtual Hub Connection.
- labels List<String>
- The list of labels to assign to this route table.
- route
Table List<String>Ids - A list of Route Table IDs to associated with this Virtual Hub Connection.
VirtualHubConnectionRoutingStaticVnetRoute, VirtualHubConnectionRoutingStaticVnetRouteArgs
- Address
Prefixes 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.
- Next
Hop stringIp Address - The IP Address which should be used for the Next Hop.
- Address
Prefixes []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.
- Next
Hop stringIp Address - The IP Address which should be used for the Next Hop.
- address
Prefixes 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.
- next
Hop StringIp Address - The IP Address which should be used for the Next Hop.
- address
Prefixes 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.
- next
Hop stringIp Address - 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_ strip_ address - The IP Address which should be used for the Next Hop.
- address
Prefixes 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.
- next
Hop StringIp Address - 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.