Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
VirtualHubConnection
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public class VirtualHubConnection : CustomResource

Constructors

View Source

VirtualHubConnection(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 Source

HubToVitualNetworkTrafficAllowed

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>>
View Source

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>>
View Source

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>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.