# VirtualRouterPeeringProxy

- 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 VirtualRouterPeering Azure Provisioning model.

## Definition

```typescript
interface VirtualRouterPeeringProxy {
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: VirtualRouterProxy;
  peerAsn: BicepValueProxy | number;
  peerIP: BicepValueProxy | string;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearName(): void;
  clearPeerAsn(): void;
  clearPeerIP(): void;
}
```

## Properties

- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [VirtualRouterProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualrouterproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `peerAsn`: `BicepValueProxy | number` `get - set` -- Gets or sets the PeerAsn provisioning property.
- `peerIP`: `BicepValueProxy | string` `get - set` -- Gets or sets the PeerIP provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualrouterpeeringproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualrouterpeeringproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPeerAsn](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualrouterpeeringproxy/clearpeerasn.md) -- `method` -- Clears the PeerAsn provisioning property.
    ```typescript
  clearPeerAsn(): void
  ```
- [clearPeerIP](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualrouterpeeringproxy/clearpeerip.md) -- `method` -- Clears the PeerIP provisioning property.
    ```typescript
  clearPeerIP(): void
  ```
