ArmNetworkModelFactory.VirtualNetworkPeeringData Method

Definition

Initializes a new instance of VirtualNetworkPeeringData.

public static Azure.ResourceManager.Network.VirtualNetworkPeeringData VirtualNetworkPeeringData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, bool? allowVirtualNetworkAccess = default, bool? allowForwardedTraffic = default, bool? allowGatewayTransit = default, bool? useRemoteGateways = default, Azure.Core.ResourceIdentifier remoteVirtualNetworkId = default, System.Collections.Generic.IEnumerable<string> localAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> localVirtualNetworkAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> remoteAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> remoteVirtualNetworkAddressPrefixes = default, Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities remoteBgpCommunities = default, Azure.ResourceManager.Network.Models.VirtualNetworkEncryption remoteVirtualNetworkEncryption = default, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringState? peeringState = default, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringLevel? peeringSyncLevel = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, bool? doNotVerifyRemoteGateways = default, Guid? resourceGuid = default, bool? areCompleteVnetsPeered = default, bool? enableOnlyIPv6Peering = default, System.Collections.Generic.IEnumerable<string> localSubnetNames = default, System.Collections.Generic.IEnumerable<string> remoteSubnetNames = default);
static member VirtualNetworkPeeringData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.Core.ResourceIdentifier * seq<string> * seq<string> * seq<string> * seq<string> * Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities * Azure.ResourceManager.Network.Models.VirtualNetworkEncryption * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPeeringState> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPeeringLevel> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<bool> * Nullable<Guid> * Nullable<bool> * Nullable<bool> * seq<string> * seq<string> -> Azure.ResourceManager.Network.VirtualNetworkPeeringData
Public Shared Function VirtualNetworkPeeringData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = 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 remoteVirtualNetworkId As ResourceIdentifier = Nothing, Optional localAddressPrefixes As IEnumerable(Of String) = Nothing, Optional localVirtualNetworkAddressPrefixes As IEnumerable(Of String) = Nothing, Optional remoteAddressPrefixes As IEnumerable(Of String) = Nothing, Optional remoteVirtualNetworkAddressPrefixes As IEnumerable(Of String) = Nothing, Optional remoteBgpCommunities As VirtualNetworkBgpCommunities = Nothing, Optional remoteVirtualNetworkEncryption As VirtualNetworkEncryption = Nothing, Optional peeringState As Nullable(Of VirtualNetworkPeeringState) = Nothing, Optional peeringSyncLevel As Nullable(Of VirtualNetworkPeeringLevel) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional doNotVerifyRemoteGateways As Nullable(Of Boolean) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional areCompleteVnetsPeered As Nullable(Of Boolean) = Nothing, Optional enableOnlyIPv6Peering As Nullable(Of Boolean) = Nothing, Optional localSubnetNames As IEnumerable(Of String) = Nothing, Optional remoteSubnetNames As IEnumerable(Of String) = Nothing) As VirtualNetworkPeeringData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

etag
Nullable<ETag>

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

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.

remoteVirtualNetworkId
ResourceIdentifier

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).

localAddressPrefixes
IEnumerable<String>

The local address space of the local virtual network that is peered.

localVirtualNetworkAddressPrefixes
IEnumerable<String>

The current local address space of the local virtual network that is peered.

remoteAddressPrefixes
IEnumerable<String>

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

remoteVirtualNetworkAddressPrefixes
IEnumerable<String>

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
Nullable<VirtualNetworkPeeringState>

The status of the virtual network peering.

peeringSyncLevel
Nullable<VirtualNetworkPeeringLevel>

The peering sync status of the virtual network peering.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the virtual network peering resource.

doNotVerifyRemoteGateways
Nullable<Boolean>

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

resourceGuid
Nullable<Guid>

The resourceGuid property of the Virtual Network peering resource.

areCompleteVnetsPeered
Nullable<Boolean>

Whether complete virtual network address space is peered.

enableOnlyIPv6Peering
Nullable<Boolean>

Whether only Ipv6 address space is peered for subnet peering.

localSubnetNames
IEnumerable<String>

List of local subnet names that are subnet peered with remote virtual network.

remoteSubnetNames
IEnumerable<String>

List of remote subnet names from remote virtual network that are subnet peered.

Returns

A new VirtualNetworkPeeringData instance for mocking.

Applies to