# VirtualNetworkPeeringProxy

- Module: [Aspire.Hosting.Azure.Provisioning.Network](/reference/api/typescript/aspire.hosting.azure.provisioning.network.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the VirtualNetworkPeering Azure Provisioning model.

## Definition

```typescript
interface VirtualNetworkPeeringProxy {
  allowForwardedTraffic: BicepValueProxy | boolean;
  allowGatewayTransit: BicepValueProxy | boolean;
  allowVirtualNetworkAccess: BicepValueProxy | boolean;
  areCompleteVnetsPeered: BicepValueProxy | boolean;
  doNotVerifyRemoteGateways: BicepValueProxy | boolean;
  enableOnlyIPv6Peering: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  id: BicepValueProxy;
  localAddressSpace: VirtualNetworkAddressSpaceProxy;
  localSubnetNames: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  localVirtualNetworkAddressSpace: VirtualNetworkAddressSpaceProxy;
  name: BicepValueProxy | string;
  parent: VirtualNetworkProxy;
  peeringState: BicepValueProxy | VirtualNetworkPeeringState;
  peeringSyncLevel: BicepValueProxy | VirtualNetworkPeeringLevel;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  remoteAddressSpace: VirtualNetworkAddressSpaceProxy;
  remoteBgpCommunities: VirtualNetworkBgpCommunitiesProxy;
  remoteSubnetNames: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  remoteVirtualNetworkAddressSpace: VirtualNetworkAddressSpaceProxy;
  readonly remoteVirtualNetworkEncryption: VirtualNetworkEncryptionProxy;
  remoteVirtualNetworkId: BicepValueProxy;
  readonly resourceGuid: BicepValueProxy | guid;
  useRemoteGateways: BicepValueProxy | boolean;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAllowForwardedTraffic(): void;
  clearAllowGatewayTransit(): void;
  clearAllowVirtualNetworkAccess(): void;
  clearAreCompleteVnetsPeered(): void;
  clearDoNotVerifyRemoteGateways(): void;
  clearEnableOnlyIPv6Peering(): void;
  clearId(): void;
  clearName(): void;
  clearPeeringState(): void;
  clearPeeringSyncLevel(): void;
  clearRemoteVirtualNetworkId(): void;
  clearUseRemoteGateways(): void;
}
```

## Properties

- `allowForwardedTraffic`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowForwardedTraffic provisioning property.
- `allowGatewayTransit`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowGatewayTransit provisioning property.
- `allowVirtualNetworkAccess`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowVirtualNetworkAccess provisioning property.
- `areCompleteVnetsPeered`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AreCompleteVnetsPeered provisioning property.
- `doNotVerifyRemoteGateways`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the DoNotVerifyRemoteGateways provisioning property.
- `enableOnlyIPv6Peering`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableOnlyIPv6Peering provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `id`: `BicepValueProxy` `get - set` -- Gets or sets the Id provisioning property.
- `localAddressSpace`: [VirtualNetworkAddressSpaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkaddressspaceproxy.md) `get - set` -- Gets or sets the LocalAddressSpace provisioning property.
- `localSubnetNames`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofstringproxy.md) `get - set` -- Gets or sets the LocalSubnetNames provisioning property.
- `localVirtualNetworkAddressSpace`: [VirtualNetworkAddressSpaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkaddressspaceproxy.md) `get - set` -- Gets or sets the LocalVirtualNetworkAddressSpace provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [VirtualNetworkProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `peeringState`: `BicepValueProxy | VirtualNetworkPeeringState` `get - set` -- Gets or sets the PeeringState provisioning property.
- `peeringSyncLevel`: `BicepValueProxy | VirtualNetworkPeeringLevel` `get - set` -- Gets or sets the PeeringSyncLevel provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `remoteAddressSpace`: [VirtualNetworkAddressSpaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkaddressspaceproxy.md) `get - set` -- Gets or sets the RemoteAddressSpace provisioning property.
- `remoteBgpCommunities`: [VirtualNetworkBgpCommunitiesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkbgpcommunitiesproxy.md) `get - set` -- Gets or sets the RemoteBgpCommunities provisioning property.
- `remoteSubnetNames`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofstringproxy.md) `get - set` -- Gets or sets the RemoteSubnetNames provisioning property.
- `remoteVirtualNetworkAddressSpace`: [VirtualNetworkAddressSpaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkaddressspaceproxy.md) `get - set` -- Gets or sets the RemoteVirtualNetworkAddressSpace provisioning property.
- `remoteVirtualNetworkEncryption`: [VirtualNetworkEncryptionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkencryptionproxy.md) `get` -- Gets the RemoteVirtualNetworkEncryption provisioning property.
- `remoteVirtualNetworkId`: `BicepValueProxy` `get - set` -- Gets or sets the RemoteVirtualNetworkId provisioning property.
- `resourceGuid`: `BicepValueProxy | guid` `get` -- Gets the ResourceGuid provisioning property.
- `useRemoteGateways`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the UseRemoteGateways provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAllowForwardedTraffic](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearallowforwardedtraffic.md) -- `method` -- Clears the AllowForwardedTraffic provisioning property.
    ```typescript
  clearAllowForwardedTraffic(): void
  ```
- [clearAllowGatewayTransit](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearallowgatewaytransit.md) -- `method` -- Clears the AllowGatewayTransit provisioning property.
    ```typescript
  clearAllowGatewayTransit(): void
  ```
- [clearAllowVirtualNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearallowvirtualnetworkaccess.md) -- `method` -- Clears the AllowVirtualNetworkAccess provisioning property.
    ```typescript
  clearAllowVirtualNetworkAccess(): void
  ```
- [clearAreCompleteVnetsPeered](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/cleararecompletevnetspeered.md) -- `method` -- Clears the AreCompleteVnetsPeered provisioning property.
    ```typescript
  clearAreCompleteVnetsPeered(): void
  ```
- [clearDoNotVerifyRemoteGateways](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/cleardonotverifyremotegateways.md) -- `method` -- Clears the DoNotVerifyRemoteGateways provisioning property.
    ```typescript
  clearDoNotVerifyRemoteGateways(): void
  ```
- [clearEnableOnlyIPv6Peering](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearenableonlyipv6peering.md) -- `method` -- Clears the EnableOnlyIPv6Peering provisioning property.
    ```typescript
  clearEnableOnlyIPv6Peering(): void
  ```
- [clearId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearid.md) -- `method` -- Clears the Id provisioning property.
    ```typescript
  clearId(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPeeringState](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearpeeringstate.md) -- `method` -- Clears the PeeringState provisioning property.
    ```typescript
  clearPeeringState(): void
  ```
- [clearPeeringSyncLevel](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearpeeringsynclevel.md) -- `method` -- Clears the PeeringSyncLevel provisioning property.
    ```typescript
  clearPeeringSyncLevel(): void
  ```
- [clearRemoteVirtualNetworkId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearremotevirtualnetworkid.md) -- `method` -- Clears the RemoteVirtualNetworkId provisioning property.
    ```typescript
  clearRemoteVirtualNetworkId(): void
  ```
- [clearUseRemoteGateways](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkpeeringproxy/clearuseremotegateways.md) -- `method` -- Clears the UseRemoteGateways provisioning property.
    ```typescript
  clearUseRemoteGateways(): void
  ```
