# BastionHostProxy

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

Represents the BastionHost Azure Provisioning model.

## Definition

```typescript
interface BastionHostProxy {
  disableCopyPaste: BicepValueProxy | boolean;
  dnsName: BicepValueProxy | string;
  enableFileCopy: BicepValueProxy | boolean;
  enableIPConnect: BicepValueProxy | boolean;
  enableKerberos: BicepValueProxy | boolean;
  enablePrivateOnlyBastion: BicepValueProxy | boolean;
  enableSessionRecording: BicepValueProxy | boolean;
  enableShareableLink: BicepValueProxy | boolean;
  enableTunneling: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  iPConfigurations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfBastionHostIPConfigurationProxy;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  networkAclsIPRules: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfBastionHostIPRuleProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  scaleUnits: BicepValueProxy | number;
  skuName: BicepValueProxy | BastionHostSkuName;
  tags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  virtualNetworkId: BicepValueProxy;
  zones: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDisableCopyPaste(): void;
  clearDnsName(): void;
  clearEnableFileCopy(): void;
  clearEnableIPConnect(): void;
  clearEnableKerberos(): void;
  clearEnablePrivateOnlyBastion(): void;
  clearEnableSessionRecording(): void;
  clearEnableShareableLink(): void;
  clearEnableTunneling(): void;
  clearLocation(): void;
  clearName(): void;
  clearScaleUnits(): void;
  clearSkuName(): void;
  clearVirtualNetworkId(): void;
}
```

## Properties

- `disableCopyPaste`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the DisableCopyPaste provisioning property.
- `dnsName`: `BicepValueProxy | string` `get - set` -- Gets or sets the DnsName provisioning property.
- `enableFileCopy`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableFileCopy provisioning property.
- `enableIPConnect`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableIPConnect provisioning property.
- `enableKerberos`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableKerberos provisioning property.
- `enablePrivateOnlyBastion`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnablePrivateOnlyBastion provisioning property.
- `enableSessionRecording`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableSessionRecording provisioning property.
- `enableShareableLink`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableShareableLink provisioning property.
- `enableTunneling`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableTunneling provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `iPConfigurations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfBastionHostIPConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofbastionhostipconfigurationproxy.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.
- `networkAclsIPRules`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfBastionHostIPRuleProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofbastionhostipruleproxy.md) `get - set` -- Gets or sets the NetworkAclsIPRules provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `scaleUnits`: `BicepValueProxy | number` `get - set` -- Gets or sets the ScaleUnits provisioning property.
- `skuName`: `BicepValueProxy | BastionHostSkuName` `get - set` -- Gets or sets the SkuName 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.
- `virtualNetworkId`: `BicepValueProxy` `get - set` -- Gets or sets the VirtualNetworkId provisioning property.
- `zones`: [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 Zones provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDisableCopyPaste](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/cleardisablecopypaste.md) -- `method` -- Clears the DisableCopyPaste provisioning property.
    ```typescript
  clearDisableCopyPaste(): void
  ```
- [clearDnsName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/cleardnsname.md) -- `method` -- Clears the DnsName provisioning property.
    ```typescript
  clearDnsName(): void
  ```
- [clearEnableFileCopy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearenablefilecopy.md) -- `method` -- Clears the EnableFileCopy provisioning property.
    ```typescript
  clearEnableFileCopy(): void
  ```
- [clearEnableIPConnect](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearenableipconnect.md) -- `method` -- Clears the EnableIPConnect provisioning property.
    ```typescript
  clearEnableIPConnect(): void
  ```
- [clearEnableKerberos](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearenablekerberos.md) -- `method` -- Clears the EnableKerberos provisioning property.
    ```typescript
  clearEnableKerberos(): void
  ```
- [clearEnablePrivateOnlyBastion](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearenableprivateonlybastion.md) -- `method` -- Clears the EnablePrivateOnlyBastion provisioning property.
    ```typescript
  clearEnablePrivateOnlyBastion(): void
  ```
- [clearEnableSessionRecording](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearenablesessionrecording.md) -- `method` -- Clears the EnableSessionRecording provisioning property.
    ```typescript
  clearEnableSessionRecording(): void
  ```
- [clearEnableShareableLink](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearenableshareablelink.md) -- `method` -- Clears the EnableShareableLink provisioning property.
    ```typescript
  clearEnableShareableLink(): void
  ```
- [clearEnableTunneling](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearenabletunneling.md) -- `method` -- Clears the EnableTunneling provisioning property.
    ```typescript
  clearEnableTunneling(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearScaleUnits](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearscaleunits.md) -- `method` -- Clears the ScaleUnits provisioning property.
    ```typescript
  clearScaleUnits(): void
  ```
- [clearSkuName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearskuname.md) -- `method` -- Clears the SkuName provisioning property.
    ```typescript
  clearSkuName(): void
  ```
- [clearVirtualNetworkId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bastionhostproxy/clearvirtualnetworkid.md) -- `method` -- Clears the VirtualNetworkId provisioning property.
    ```typescript
  clearVirtualNetworkId(): void
  ```
