# VirtualHubProxy

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

## Definition

```typescript
interface VirtualHubProxy {
  addressPrefix: BicepValueProxy | string;
  allowBranchToBranchTraffic: BicepValueProxy | boolean;
  azureFirewallId: BicepValueProxy;
  readonly bgpConnections: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy;
  readonly eTag: BicepValueProxy;
  expressRouteGatewayId: BicepValueProxy;
  hubRoutingPreference: BicepValueProxy | HubRoutingPreference;
  readonly id: BicepValueProxy;
  readonly iPConfigurations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy;
  readonly kind: BicepValueProxy | string;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  p2SVpnGatewayId: BicepValueProxy;
  preferredRoutingGateway: BicepValueProxy | PreferredRoutingGateway;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  readonly routeMaps: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy;
  routes: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualHubRouteProxy;
  readonly routingState: BicepValueProxy | RoutingState;
  securityPartnerProviderId: BicepValueProxy;
  securityProviderName: BicepValueProxy | string;
  sku: BicepValueProxy | string;
  tags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  virtualHubRouteTableV2S: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualHubRouteTableV2Proxy;
  virtualRouterAsn: BicepValueProxy | number;
  virtualRouterAutoScaleMinCapacity: BicepValueProxy | number;
  virtualRouterIPs: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  virtualWanId: BicepValueProxy;
  vpnGatewayId: BicepValueProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAddressPrefix(): void;
  clearAllowBranchToBranchTraffic(): void;
  clearAzureFirewallId(): void;
  clearExpressRouteGatewayId(): void;
  clearHubRoutingPreference(): void;
  clearLocation(): void;
  clearName(): void;
  clearP2SVpnGatewayId(): void;
  clearPreferredRoutingGateway(): void;
  clearSecurityPartnerProviderId(): void;
  clearSecurityProviderName(): void;
  clearSku(): void;
  clearVirtualRouterAsn(): void;
  clearVirtualRouterAutoScaleMinCapacity(): void;
  clearVirtualWanId(): void;
  clearVpnGatewayId(): void;
}
```

## Properties

- `addressPrefix`: `BicepValueProxy | string` `get - set` -- Gets or sets the AddressPrefix provisioning property.
- `allowBranchToBranchTraffic`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowBranchToBranchTraffic provisioning property.
- `azureFirewallId`: `BicepValueProxy` `get - set` -- Gets or sets the AzureFirewallId provisioning property.
- `bgpConnections`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofwritablesubresourceproxy.md) `get` -- Gets the BgpConnections provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `expressRouteGatewayId`: `BicepValueProxy` `get - set` -- Gets or sets the ExpressRouteGatewayId provisioning property.
- `hubRoutingPreference`: `BicepValueProxy | HubRoutingPreference` `get - set` -- Gets or sets the HubRoutingPreference provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `iPConfigurations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofwritablesubresourceproxy.md) `get` -- Gets the IPConfigurations provisioning property.
- `kind`: `BicepValueProxy | string` `get` -- Gets the Kind 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.
- `p2SVpnGatewayId`: `BicepValueProxy` `get - set` -- Gets or sets the P2SVpnGatewayId provisioning property.
- `preferredRoutingGateway`: `BicepValueProxy | PreferredRoutingGateway` `get - set` -- Gets or sets the PreferredRoutingGateway provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `routeMaps`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofwritablesubresourceproxy.md) `get` -- Gets the RouteMaps provisioning property.
- `routes`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualHubRouteProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvirtualhubrouteproxy.md) `get - set` -- Gets or sets the Routes provisioning property.
- `routingState`: `BicepValueProxy | RoutingState` `get` -- Gets the RoutingState provisioning property.
- `securityPartnerProviderId`: `BicepValueProxy` `get - set` -- Gets or sets the SecurityPartnerProviderId provisioning property.
- `securityProviderName`: `BicepValueProxy | string` `get - set` -- Gets or sets the SecurityProviderName provisioning property.
- `sku`: `BicepValueProxy | string` `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.
- `virtualHubRouteTableV2S`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVirtualHubRouteTableV2Proxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvirtualhubroutetablev2proxy.md) `get - set` -- Gets or sets the VirtualHubRouteTableV2S provisioning property.
- `virtualRouterAsn`: `BicepValueProxy | number` `get - set` -- Gets or sets the VirtualRouterAsn provisioning property.
- `virtualRouterAutoScaleMinCapacity`: `BicepValueProxy | number` `get - set` -- Gets or sets the VirtualRouterAutoScaleMinCapacity provisioning property.
- `virtualRouterIPs`: [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 VirtualRouterIPs provisioning property.
- `virtualWanId`: `BicepValueProxy` `get - set` -- Gets or sets the VirtualWanId provisioning property.
- `vpnGatewayId`: `BicepValueProxy` `get - set` -- Gets or sets the VpnGatewayId provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAddressPrefix](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearaddressprefix.md) -- `method` -- Clears the AddressPrefix provisioning property.
    ```typescript
  clearAddressPrefix(): void
  ```
- [clearAllowBranchToBranchTraffic](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearallowbranchtobranchtraffic.md) -- `method` -- Clears the AllowBranchToBranchTraffic provisioning property.
    ```typescript
  clearAllowBranchToBranchTraffic(): void
  ```
- [clearAzureFirewallId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearazurefirewallid.md) -- `method` -- Clears the AzureFirewallId provisioning property.
    ```typescript
  clearAzureFirewallId(): void
  ```
- [clearExpressRouteGatewayId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearexpressroutegatewayid.md) -- `method` -- Clears the ExpressRouteGatewayId provisioning property.
    ```typescript
  clearExpressRouteGatewayId(): void
  ```
- [clearHubRoutingPreference](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearhubroutingpreference.md) -- `method` -- Clears the HubRoutingPreference provisioning property.
    ```typescript
  clearHubRoutingPreference(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearP2SVpnGatewayId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearp2svpngatewayid.md) -- `method` -- Clears the P2SVpnGatewayId provisioning property.
    ```typescript
  clearP2SVpnGatewayId(): void
  ```
- [clearPreferredRoutingGateway](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearpreferredroutinggateway.md) -- `method` -- Clears the PreferredRoutingGateway provisioning property.
    ```typescript
  clearPreferredRoutingGateway(): void
  ```
- [clearSecurityPartnerProviderId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearsecuritypartnerproviderid.md) -- `method` -- Clears the SecurityPartnerProviderId provisioning property.
    ```typescript
  clearSecurityPartnerProviderId(): void
  ```
- [clearSecurityProviderName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearsecurityprovidername.md) -- `method` -- Clears the SecurityProviderName provisioning property.
    ```typescript
  clearSecurityProviderName(): void
  ```
- [clearSku](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearsku.md) -- `method` -- Clears the Sku provisioning property.
    ```typescript
  clearSku(): void
  ```
- [clearVirtualRouterAsn](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearvirtualrouterasn.md) -- `method` -- Clears the VirtualRouterAsn provisioning property.
    ```typescript
  clearVirtualRouterAsn(): void
  ```
- [clearVirtualRouterAutoScaleMinCapacity](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearvirtualrouterautoscalemincapacity.md) -- `method` -- Clears the VirtualRouterAutoScaleMinCapacity provisioning property.
    ```typescript
  clearVirtualRouterAutoScaleMinCapacity(): void
  ```
- [clearVirtualWanId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearvirtualwanid.md) -- `method` -- Clears the VirtualWanId provisioning property.
    ```typescript
  clearVirtualWanId(): void
  ```
- [clearVpnGatewayId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy/clearvpngatewayid.md) -- `method` -- Clears the VpnGatewayId provisioning property.
    ```typescript
  clearVpnGatewayId(): void
  ```
