Class VirtualHubConnection
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 test = new Azure.Network.VirtualWan("test", 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 = azurerm_virtual_wan.Example.Id,
AddressPrefix = "10.0.1.0/24",
});
var exampleVirtualHubConnection = new Azure.Network.VirtualHubConnection("exampleVirtualHubConnection", new Azure.Network.VirtualHubConnectionArgs
{
VirtualHubId = exampleVirtualHub.Id,
RemoteVirtualNetworkId = exampleVirtualNetwork.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public class VirtualHubConnection : CustomResource
Constructors
View SourceVirtualHubConnection(String, VirtualHubConnectionArgs, CustomResourceOptions)
Create a VirtualHubConnection resource with the given unique name, arguments, and options.
Declaration
public VirtualHubConnection(string name, VirtualHubConnectionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VirtualHubConnectionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceHubToVitualNetworkTrafficAllowed
Is the Virtual Hub traffic allowed to transit via the Remote Virtual Network? Changing this forces a new resource to be created.
Declaration
public Output<bool?> HubToVitualNetworkTrafficAllowed { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
InternetSecurityEnabled
Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created.
Declaration
public Output<bool?> InternetSecurityEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
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.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RemoteVirtualNetworkId
The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
Declaration
public Output<string> RemoteVirtualNetworkId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VirtualHubId
The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
Declaration
public Output<string> VirtualHubId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VitualNetworkToHubGatewaysTrafficAllowed
Is Remote Virtual Network traffic allowed to transit the Hub's Virtual Network Gateway's? Changing this forces a new resource to be created.
Declaration
public Output<bool?> VitualNetworkToHubGatewaysTrafficAllowed { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, VirtualHubConnectionState, CustomResourceOptions)
Get an existing VirtualHubConnection resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VirtualHubConnection Get(string name, Input<string> id, VirtualHubConnectionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VirtualHubConnectionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VirtualHubConnection |