Hub Virtual Network Connection Args
data class HubVirtualNetworkConnectionArgs(val allowHubToRemoteVnetTransit: Output<Boolean>? = null, val allowRemoteVnetToUseHubVnetGateways: Output<Boolean>? = null, val connectionName: Output<String>? = null, val enableInternetSecurity: Output<Boolean>? = null, val id: Output<String>? = null, val name: Output<String>? = null, val remoteVirtualNetwork: Output<SubResourceArgs>? = null, val resourceGroupName: Output<String>? = null, val routingConfiguration: Output<RoutingConfigurationArgs>? = null, val virtualHubName: Output<String>? = null) : ConvertibleToJava<HubVirtualNetworkConnectionArgs>
HubVirtualNetworkConnection Resource. API Version: 2020-11-01.
Example Usage
HubVirtualNetworkConnectionPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hubVirtualNetworkConnection = new AzureNative.Network.HubVirtualNetworkConnection("hubVirtualNetworkConnection", new()
{
ConnectionName = "connection1",
EnableInternetSecurity = false,
RemoteVirtualNetwork = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1",
},
ResourceGroupName = "rg1",
RoutingConfiguration = new AzureNative.Network.Inputs.RoutingConfigurationArgs
{
AssociatedRouteTable = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1",
},
PropagatedRouteTables = new AzureNative.Network.Inputs.PropagatedRouteTableArgs
{
Ids = new[]
{
new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1",
},
},
Labels = new[]
{
"label1",
"label2",
},
},
VnetRoutes = new AzureNative.Network.Inputs.VnetRouteArgs
{
StaticRoutes = new[]
{
new AzureNative.Network.Inputs.StaticRouteArgs
{
AddressPrefixes = new[]
{
"10.1.0.0/16",
"10.2.0.0/16",
},
Name = "route1",
NextHopIpAddress = "10.0.0.68",
},
new AzureNative.Network.Inputs.StaticRouteArgs
{
AddressPrefixes = new[]
{
"10.3.0.0/16",
"10.4.0.0/16",
},
Name = "route2",
NextHopIpAddress = "10.0.0.65",
},
},
},
},
VirtualHubName = "virtualHub1",
});
});
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.HubVirtualNetworkConnection;
import com.pulumi.azurenative.network.HubVirtualNetworkConnectionArgs;
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 hubVirtualNetworkConnection = new HubVirtualNetworkConnection("hubVirtualNetworkConnection", HubVirtualNetworkConnectionArgs.builder()
.connectionName("connection1")
.enableInternetSecurity(false)
.remoteVirtualNetwork(Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1"))
.resourceGroupName("rg1")
.routingConfiguration(Map.ofEntries(
Map.entry("associatedRouteTable", Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")),
Map.entry("propagatedRouteTables", Map.ofEntries(
Map.entry("ids", Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")),
Map.entry("labels",
"label1",
"label2")
)),
Map.entry("vnetRoutes", Map.of("staticRoutes",
Map.ofEntries(
Map.entry("addressPrefixes",
"10.1.0.0/16",
"10.2.0.0/16"),
Map.entry("name", "route1"),
Map.entry("nextHopIpAddress", "10.0.0.68")
),
Map.ofEntries(
Map.entry("addressPrefixes",
"10.3.0.0/16",
"10.4.0.0/16"),
Map.entry("name", "route2"),
Map.entry("nextHopIpAddress", "10.0.0.65")
)))
))
.virtualHubName("virtualHub1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:HubVirtualNetworkConnection connection1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(allowHubToRemoteVnetTransit: Output<Boolean>? = null, allowRemoteVnetToUseHubVnetGateways: Output<Boolean>? = null, connectionName: Output<String>? = null, enableInternetSecurity: Output<Boolean>? = null, id: Output<String>? = null, name: Output<String>? = null, remoteVirtualNetwork: Output<SubResourceArgs>? = null, resourceGroupName: Output<String>? = null, routingConfiguration: Output<RoutingConfigurationArgs>? = null, virtualHubName: Output<String>? = null)
Properties
Link copied to clipboard
Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
Link copied to clipboard
Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
Link copied to clipboard
The name of the HubVirtualNetworkConnection.
Link copied to clipboard
Enable internet security.
Link copied to clipboard
Reference to the remote virtual network.
Link copied to clipboard
The resource group name of the HubVirtualNetworkConnection.
Link copied to clipboard
The Routing Configuration indicating the associated and propagated route tables on this connection.
Link copied to clipboard
The name of the VirtualHub.