# VirtualNetworkGatewayProxy

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

## Definition

```typescript
interface VirtualNetworkGatewayProxy {
  active: BicepValueProxy | boolean;
  adminState: BicepValueProxy | ExpressRouteGatewayAdminState;
  allowRemoteVnetTraffic: BicepValueProxy | boolean;
  allowVirtualWanTraffic: BicepValueProxy | boolean;
  autoScaleBounds: VirtualNetworkGatewayAutoScaleBoundsProxy;
  bgpSettings: BgpSettingsProxy;
  customRoutes: VirtualNetworkAddressSpaceProxy;
  disableIPSecReplayProtection: BicepValueProxy | boolean;
  enableBgp: BicepValueProxy | boolean;
  enableBgpRouteTranslationForNat: BicepValueProxy | boolean;
  enableDnsForwarding: BicepValueProxy | boolean;
  enableHighBandwidthVpnGateway: BicepValueProxy | boolean;
  enablePrivateIPAddress: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  extendedLocation: NetworkExtendedAzureLocationProxy;
  gatewayDefaultSiteId: BicepValueProxy;
  gatewayType: BicepValueProxy | VirtualNetworkGatewayType;
  readonly id: BicepValueProxy;
  identity: NetworkManagedServiceIdentityProxy;
  readonly inboundDnsForwardingEndpoint: BicepValueProxy | string;
  iPConfigurations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualNetworkGatewayIPConfigurationProxy;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  natRules: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualNetworkGatewayNatRuleProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  resiliencyModel: BicepValueProxy | ExpressRouteGatewayResiliencyModel;
  readonly resourceGuid: BicepValueProxy | guid;
  sku: VirtualNetworkGatewaySkuProxy;
  tags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  virtualNetworkGatewayMigrationStatus: VirtualNetworkGatewayMigrationStatusProxy;
  virtualNetworkGatewayPolicyGroups: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualNetworkGatewayPolicyGroupProxy;
  vNetExtendedLocationResourceId: BicepValueProxy;
  vpnClientConfiguration: VpnClientConfigurationProxy;
  vpnGatewayGeneration: BicepValueProxy | VpnGatewayGeneration;
  vpnType: BicepValueProxy | VpnType;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearActive(): void;
  clearAdminState(): void;
  clearAllowRemoteVnetTraffic(): void;
  clearAllowVirtualWanTraffic(): void;
  clearDisableIPSecReplayProtection(): void;
  clearEnableBgp(): void;
  clearEnableBgpRouteTranslationForNat(): void;
  clearEnableDnsForwarding(): void;
  clearEnableHighBandwidthVpnGateway(): void;
  clearEnablePrivateIPAddress(): void;
  clearGatewayDefaultSiteId(): void;
  clearGatewayType(): void;
  clearLocation(): void;
  clearName(): void;
  clearResiliencyModel(): void;
  clearVNetExtendedLocationResourceId(): void;
  clearVpnGatewayGeneration(): void;
  clearVpnType(): void;
}
```

## Properties

- `active`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the Active provisioning property.
- `adminState`: `BicepValueProxy | ExpressRouteGatewayAdminState` `get - set` -- Gets or sets the AdminState provisioning property.
- `allowRemoteVnetTraffic`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowRemoteVnetTraffic provisioning property.
- `allowVirtualWanTraffic`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowVirtualWanTraffic provisioning property.
- `autoScaleBounds`: [VirtualNetworkGatewayAutoScaleBoundsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayautoscaleboundsproxy.md) `get - set` -- Gets or sets the AutoScaleBounds provisioning property.
- `bgpSettings`: [BgpSettingsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bgpsettingsproxy.md) `get - set` -- Gets or sets the BgpSettings provisioning property.
- `customRoutes`: [VirtualNetworkAddressSpaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkaddressspaceproxy.md) `get - set` -- Gets or sets the CustomRoutes provisioning property.
- `disableIPSecReplayProtection`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the DisableIPSecReplayProtection provisioning property.
- `enableBgp`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableBgp provisioning property.
- `enableBgpRouteTranslationForNat`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableBgpRouteTranslationForNat provisioning property.
- `enableDnsForwarding`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableDnsForwarding provisioning property.
- `enableHighBandwidthVpnGateway`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableHighBandwidthVpnGateway provisioning property.
- `enablePrivateIPAddress`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnablePrivateIPAddress provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `extendedLocation`: [NetworkExtendedAzureLocationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkextendedazurelocationproxy.md) `get - set` -- Gets or sets the ExtendedLocation provisioning property.
- `gatewayDefaultSiteId`: `BicepValueProxy` `get - set` -- Gets or sets the GatewayDefaultSiteId provisioning property.
- `gatewayType`: `BicepValueProxy | VirtualNetworkGatewayType` `get - set` -- Gets or sets the GatewayType provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [NetworkManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `inboundDnsForwardingEndpoint`: `BicepValueProxy | string` `get` -- Gets the InboundDnsForwardingEndpoint provisioning property.
- `iPConfigurations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualNetworkGatewayIPConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvirtualnetworkgatewayipconfigurationproxy.md) `get - set` -- Gets or sets the IPConfigurations provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `natRules`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualNetworkGatewayNatRuleProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvirtualnetworkgatewaynatruleproxy.md) `get - set` -- Gets or sets the NatRules provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `resiliencyModel`: `BicepValueProxy | ExpressRouteGatewayResiliencyModel` `get - set` -- Gets or sets the ResiliencyModel provisioning property.
- `resourceGuid`: `BicepValueProxy | guid` `get` -- Gets the ResourceGuid provisioning property.
- `sku`: [VirtualNetworkGatewaySkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `virtualNetworkGatewayMigrationStatus`: [VirtualNetworkGatewayMigrationStatusProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewaymigrationstatusproxy.md) `get - set` -- Gets or sets the VirtualNetworkGatewayMigrationStatus provisioning property.
- `virtualNetworkGatewayPolicyGroups`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualNetworkGatewayPolicyGroupProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvirtualnetworkgatewaypolicygroupproxy.md) `get - set` -- Gets or sets the VirtualNetworkGatewayPolicyGroups provisioning property.
- `vNetExtendedLocationResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the VNetExtendedLocationResourceId provisioning property.
- `vpnClientConfiguration`: [VpnClientConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpnclientconfigurationproxy.md) `get - set` -- Gets or sets the VpnClientConfiguration provisioning property.
- `vpnGatewayGeneration`: `BicepValueProxy | VpnGatewayGeneration` `get - set` -- Gets or sets the VpnGatewayGeneration provisioning property.
- `vpnType`: `BicepValueProxy | VpnType` `get - set` -- Gets or sets the VpnType provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearActive](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearactive.md) -- `method` -- Clears the Active provisioning property.
    ```typescript
  clearActive(): void
  ```
- [clearAdminState](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearadminstate.md) -- `method` -- Clears the AdminState provisioning property.
    ```typescript
  clearAdminState(): void
  ```
- [clearAllowRemoteVnetTraffic](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearallowremotevnettraffic.md) -- `method` -- Clears the AllowRemoteVnetTraffic provisioning property.
    ```typescript
  clearAllowRemoteVnetTraffic(): void
  ```
- [clearAllowVirtualWanTraffic](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearallowvirtualwantraffic.md) -- `method` -- Clears the AllowVirtualWanTraffic provisioning property.
    ```typescript
  clearAllowVirtualWanTraffic(): void
  ```
- [clearDisableIPSecReplayProtection](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/cleardisableipsecreplayprotection.md) -- `method` -- Clears the DisableIPSecReplayProtection provisioning property.
    ```typescript
  clearDisableIPSecReplayProtection(): void
  ```
- [clearEnableBgp](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearenablebgp.md) -- `method` -- Clears the EnableBgp provisioning property.
    ```typescript
  clearEnableBgp(): void
  ```
- [clearEnableBgpRouteTranslationForNat](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearenablebgproutetranslationfornat.md) -- `method` -- Clears the EnableBgpRouteTranslationForNat provisioning property.
    ```typescript
  clearEnableBgpRouteTranslationForNat(): void
  ```
- [clearEnableDnsForwarding](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearenablednsforwarding.md) -- `method` -- Clears the EnableDnsForwarding provisioning property.
    ```typescript
  clearEnableDnsForwarding(): void
  ```
- [clearEnableHighBandwidthVpnGateway](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearenablehighbandwidthvpngateway.md) -- `method` -- Clears the EnableHighBandwidthVpnGateway provisioning property.
    ```typescript
  clearEnableHighBandwidthVpnGateway(): void
  ```
- [clearEnablePrivateIPAddress](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearenableprivateipaddress.md) -- `method` -- Clears the EnablePrivateIPAddress provisioning property.
    ```typescript
  clearEnablePrivateIPAddress(): void
  ```
- [clearGatewayDefaultSiteId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/cleargatewaydefaultsiteid.md) -- `method` -- Clears the GatewayDefaultSiteId provisioning property.
    ```typescript
  clearGatewayDefaultSiteId(): void
  ```
- [clearGatewayType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/cleargatewaytype.md) -- `method` -- Clears the GatewayType provisioning property.
    ```typescript
  clearGatewayType(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearResiliencyModel](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearresiliencymodel.md) -- `method` -- Clears the ResiliencyModel provisioning property.
    ```typescript
  clearResiliencyModel(): void
  ```
- [clearVNetExtendedLocationResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearvnetextendedlocationresourceid.md) -- `method` -- Clears the VNetExtendedLocationResourceId provisioning property.
    ```typescript
  clearVNetExtendedLocationResourceId(): void
  ```
- [clearVpnGatewayGeneration](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearvpngatewaygeneration.md) -- `method` -- Clears the VpnGatewayGeneration provisioning property.
    ```typescript
  clearVpnGatewayGeneration(): void
  ```
- [clearVpnType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualnetworkgatewayproxy/clearvpntype.md) -- `method` -- Clears the VpnType provisioning property.
    ```typescript
  clearVpnType(): void
  ```
