# HubVirtualNetworkConnectionProxy

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

## Definition

```typescript
interface HubVirtualNetworkConnectionProxy {
  allowHubToRemoteVnetTransit: BicepValueProxy | boolean;
  allowRemoteVnetToUseHubVnetGateways: BicepValueProxy | boolean;
  enableInternetSecurity: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: VirtualHubProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  remoteVirtualNetworkId: BicepValueProxy;
  routingConfiguration: RoutingConfigurationProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAllowHubToRemoteVnetTransit(): void;
  clearAllowRemoteVnetToUseHubVnetGateways(): void;
  clearEnableInternetSecurity(): void;
  clearName(): void;
  clearRemoteVirtualNetworkId(): void;
}
```

## Properties

- `allowHubToRemoteVnetTransit`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowHubToRemoteVnetTransit provisioning property.
- `allowRemoteVnetToUseHubVnetGateways`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowRemoteVnetToUseHubVnetGateways provisioning property.
- `enableInternetSecurity`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableInternetSecurity provisioning property.
- `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`: [VirtualHubProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `remoteVirtualNetworkId`: `BicepValueProxy` `get - set` -- Gets or sets the RemoteVirtualNetworkId provisioning property.
- `routingConfiguration`: [RoutingConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routingconfigurationproxy.md) `get - set` -- Gets or sets the RoutingConfiguration provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/hubvirtualnetworkconnectionproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAllowHubToRemoteVnetTransit](/reference/api/typescript/aspire.hosting.azure.provisioning.network/hubvirtualnetworkconnectionproxy/clearallowhubtoremotevnettransit.md) -- `method` -- Clears the AllowHubToRemoteVnetTransit provisioning property.
    ```typescript
  clearAllowHubToRemoteVnetTransit(): void
  ```
- [clearAllowRemoteVnetToUseHubVnetGateways](/reference/api/typescript/aspire.hosting.azure.provisioning.network/hubvirtualnetworkconnectionproxy/clearallowremotevnettousehubvnetgateways.md) -- `method` -- Clears the AllowRemoteVnetToUseHubVnetGateways provisioning property.
    ```typescript
  clearAllowRemoteVnetToUseHubVnetGateways(): void
  ```
- [clearEnableInternetSecurity](/reference/api/typescript/aspire.hosting.azure.provisioning.network/hubvirtualnetworkconnectionproxy/clearenableinternetsecurity.md) -- `method` -- Clears the EnableInternetSecurity provisioning property.
    ```typescript
  clearEnableInternetSecurity(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/hubvirtualnetworkconnectionproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearRemoteVirtualNetworkId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/hubvirtualnetworkconnectionproxy/clearremotevirtualnetworkid.md) -- `method` -- Clears the RemoteVirtualNetworkId provisioning property.
    ```typescript
  clearRemoteVirtualNetworkId(): void
  ```
