VirtualNetworkPeering Constructors

Definition

Overloads

VirtualNetworkPeering()

Initializes a new instance of the VirtualNetworkPeering class.

VirtualNetworkPeering(String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, SubResource, AddressSpace, AddressSpace, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, String, String, String, Nullable<Boolean>, String, String, String, String)

Initializes a new instance of the VirtualNetworkPeering class.

VirtualNetworkPeering()

Initializes a new instance of the VirtualNetworkPeering class.

public VirtualNetworkPeering ();
Public Sub New ()

Applies to

VirtualNetworkPeering(String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, SubResource, AddressSpace, AddressSpace, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, String, String, String, Nullable<Boolean>, String, String, String, String)

Initializes a new instance of the VirtualNetworkPeering class.

public VirtualNetworkPeering (string id = default, bool? allowVirtualNetworkAccess = default, bool? allowForwardedTraffic = default, bool? allowGatewayTransit = default, bool? useRemoteGateways = default, Microsoft.Azure.Management.Network.Models.SubResource remoteVirtualNetwork = default, Microsoft.Azure.Management.Network.Models.AddressSpace remoteAddressSpace = default, Microsoft.Azure.Management.Network.Models.AddressSpace remoteVirtualNetworkAddressSpace = default, Microsoft.Azure.Management.Network.Models.VirtualNetworkBgpCommunities remoteBgpCommunities = default, Microsoft.Azure.Management.Network.Models.VirtualNetworkEncryption remoteVirtualNetworkEncryption = default, string peeringState = default, string peeringSyncLevel = default, string provisioningState = default, bool? doNotVerifyRemoteGateways = default, string resourceGuid = default, string name = default, string etag = default, string type = default);
new Microsoft.Azure.Management.Network.Models.VirtualNetworkPeering : string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Management.Network.Models.SubResource * Microsoft.Azure.Management.Network.Models.AddressSpace * Microsoft.Azure.Management.Network.Models.AddressSpace * Microsoft.Azure.Management.Network.Models.VirtualNetworkBgpCommunities * Microsoft.Azure.Management.Network.Models.VirtualNetworkEncryption * string * string * string * Nullable<bool> * string * string * string * string -> Microsoft.Azure.Management.Network.Models.VirtualNetworkPeering
Public Sub New (Optional id As String = Nothing, Optional allowVirtualNetworkAccess As Nullable(Of Boolean) = Nothing, Optional allowForwardedTraffic As Nullable(Of Boolean) = Nothing, Optional allowGatewayTransit As Nullable(Of Boolean) = Nothing, Optional useRemoteGateways As Nullable(Of Boolean) = Nothing, Optional remoteVirtualNetwork As SubResource = Nothing, Optional remoteAddressSpace As AddressSpace = Nothing, Optional remoteVirtualNetworkAddressSpace As AddressSpace = Nothing, Optional remoteBgpCommunities As VirtualNetworkBgpCommunities = Nothing, Optional remoteVirtualNetworkEncryption As VirtualNetworkEncryption = Nothing, Optional peeringState As String = Nothing, Optional peeringSyncLevel As String = Nothing, Optional provisioningState As String = Nothing, Optional doNotVerifyRemoteGateways As Nullable(Of Boolean) = Nothing, Optional resourceGuid As String = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing, Optional type As String = Nothing)

Parameters

id
String

Resource ID.

allowVirtualNetworkAccess
Nullable<Boolean>

Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.

allowForwardedTraffic
Nullable<Boolean>

Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.

allowGatewayTransit
Nullable<Boolean>

If gateway links can be used in remote virtual networking to link to this virtual network.

useRemoteGateways
Nullable<Boolean>

If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.

remoteVirtualNetwork
SubResource

The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).

remoteAddressSpace
AddressSpace

The reference to the address space peered with the remote virtual network.

remoteVirtualNetworkAddressSpace
AddressSpace

The reference to the current address space of the remote virtual network.

remoteBgpCommunities
VirtualNetworkBgpCommunities

The reference to the remote virtual network's Bgp Communities.

remoteVirtualNetworkEncryption
VirtualNetworkEncryption

The reference to the remote virtual network's encryption

peeringState
String

The status of the virtual network peering. Possible values include: 'Initiated', 'Connected', 'Disconnected'

peeringSyncLevel
String

The peering sync status of the virtual network peering. Possible values include: 'FullyInSync', 'RemoteNotInSync', 'LocalNotInSync', 'LocalAndRemoteNotInSync'

provisioningState
String

The provisioning state of the virtual network peering resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

doNotVerifyRemoteGateways
Nullable<Boolean>

If we need to verify the provisioning state of the remote gateway.

resourceGuid
String

The resourceGuid property of the Virtual Network peering resource.

name
String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

etag
String

A unique read-only string that changes whenever the resource is updated.

type
String

Resource type.

Applies to