# NetworkInterfaceProxy

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

## Definition

```typescript
interface NetworkInterfaceProxy {
  auxiliaryMode: BicepValueProxy | NetworkInterfaceAuxiliaryMode;
  auxiliarySku: BicepValueProxy | NetworkInterfaceAuxiliarySku;
  readonly defaultOutboundConnectivityEnabled: BicepValueProxy | boolean;
  disableTcpStateTracking: BicepValueProxy | boolean;
  dnsSettings: NetworkInterfaceDnsSettingsProxy;
  readonly dscpConfigurationId: BicepValueProxy;
  enableAcceleratedNetworking: BicepValueProxy | boolean;
  enableIPForwarding: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  extendedLocation: NetworkExtendedAzureLocationProxy;
  readonly hostedWorkloads: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  id: BicepValueProxy;
  iPConfigurations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfNetworkInterfaceIPConfigurationProxy;
  location: BicepValueProxy;
  readonly macAddress: BicepValueProxy | string;
  migrationPhase: BicepValueProxy | NetworkInterfaceMigrationPhase;
  name: BicepValueProxy | string;
  networkSecurityGroup: NetworkSecurityGroupProxy;
  nicType: BicepValueProxy | NetworkInterfaceNicType;
  readonly primary: BicepValueProxy | boolean;
  readonly privateEndpoint: PrivateEndpointProxy;
  privateLinkService: PrivateLinkServiceProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  readonly resourceGuid: BicepValueProxy | guid;
  tags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  readonly tapConfigurations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfNetworkInterfaceTapConfigurationProxy;
  readonly virtualMachineId: BicepValueProxy;
  readonly vnetEncryptionSupported: BicepValueProxy | boolean;
  workloadType: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAuxiliaryMode(): void;
  clearAuxiliarySku(): void;
  clearDisableTcpStateTracking(): void;
  clearEnableAcceleratedNetworking(): void;
  clearEnableIPForwarding(): void;
  clearId(): void;
  clearLocation(): void;
  clearMigrationPhase(): void;
  clearName(): void;
  clearNicType(): void;
  clearWorkloadType(): void;
}
```

## Properties

- `auxiliaryMode`: `BicepValueProxy | NetworkInterfaceAuxiliaryMode` `get - set` -- Gets or sets the AuxiliaryMode provisioning property.
- `auxiliarySku`: `BicepValueProxy | NetworkInterfaceAuxiliarySku` `get - set` -- Gets or sets the AuxiliarySku provisioning property.
- `defaultOutboundConnectivityEnabled`: `BicepValueProxy | boolean` `get` -- Gets the DefaultOutboundConnectivityEnabled provisioning property.
- `disableTcpStateTracking`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the DisableTcpStateTracking provisioning property.
- `dnsSettings`: [NetworkInterfaceDnsSettingsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfacednssettingsproxy.md) `get - set` -- Gets or sets the DnsSettings provisioning property.
- `dscpConfigurationId`: `BicepValueProxy` `get` -- Gets the DscpConfigurationId provisioning property.
- `enableAcceleratedNetworking`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableAcceleratedNetworking provisioning property.
- `enableIPForwarding`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableIPForwarding 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.
- `hostedWorkloads`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofstringproxy.md) `get` -- Gets the HostedWorkloads provisioning property.
- `id`: `BicepValueProxy` `get - set` -- Gets or sets the Id provisioning property.
- `iPConfigurations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfNetworkInterfaceIPConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofnetworkinterfaceipconfigurationproxy.md) `get - set` -- Gets or sets the IPConfigurations provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `macAddress`: `BicepValueProxy | string` `get` -- Gets the MacAddress provisioning property.
- `migrationPhase`: `BicepValueProxy | NetworkInterfaceMigrationPhase` `get - set` -- Gets or sets the MigrationPhase provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `networkSecurityGroup`: [NetworkSecurityGroupProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networksecuritygroupproxy.md) `get - set` -- Gets or sets the NetworkSecurityGroup provisioning property.
- `nicType`: `BicepValueProxy | NetworkInterfaceNicType` `get - set` -- Gets or sets the NicType provisioning property.
- `primary`: `BicepValueProxy | boolean` `get` -- Gets the Primary provisioning property.
- `privateEndpoint`: [PrivateEndpointProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/privateendpointproxy.md) `get` -- Gets the PrivateEndpoint provisioning property.
- `privateLinkService`: [PrivateLinkServiceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/privatelinkserviceproxy.md) `get - set` -- Gets or sets the PrivateLinkService provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `resourceGuid`: `BicepValueProxy | guid` `get` -- Gets the ResourceGuid 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.
- `tapConfigurations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfNetworkInterfaceTapConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofnetworkinterfacetapconfigurationproxy.md) `get` -- Gets the TapConfigurations provisioning property.
- `virtualMachineId`: `BicepValueProxy` `get` -- Gets the VirtualMachineId provisioning property.
- `vnetEncryptionSupported`: `BicepValueProxy | boolean` `get` -- Gets the VnetEncryptionSupported provisioning property.
- `workloadType`: `BicepValueProxy | string` `get - set` -- Gets or sets the WorkloadType provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAuxiliaryMode](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearauxiliarymode.md) -- `method` -- Clears the AuxiliaryMode provisioning property.
    ```typescript
  clearAuxiliaryMode(): void
  ```
- [clearAuxiliarySku](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearauxiliarysku.md) -- `method` -- Clears the AuxiliarySku provisioning property.
    ```typescript
  clearAuxiliarySku(): void
  ```
- [clearDisableTcpStateTracking](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/cleardisabletcpstatetracking.md) -- `method` -- Clears the DisableTcpStateTracking provisioning property.
    ```typescript
  clearDisableTcpStateTracking(): void
  ```
- [clearEnableAcceleratedNetworking](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearenableacceleratednetworking.md) -- `method` -- Clears the EnableAcceleratedNetworking provisioning property.
    ```typescript
  clearEnableAcceleratedNetworking(): void
  ```
- [clearEnableIPForwarding](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearenableipforwarding.md) -- `method` -- Clears the EnableIPForwarding provisioning property.
    ```typescript
  clearEnableIPForwarding(): void
  ```
- [clearId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearid.md) -- `method` -- Clears the Id provisioning property.
    ```typescript
  clearId(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearMigrationPhase](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearmigrationphase.md) -- `method` -- Clears the MigrationPhase provisioning property.
    ```typescript
  clearMigrationPhase(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearNicType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearnictype.md) -- `method` -- Clears the NicType provisioning property.
    ```typescript
  clearNicType(): void
  ```
- [clearWorkloadType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceproxy/clearworkloadtype.md) -- `method` -- Clears the WorkloadType provisioning property.
    ```typescript
  clearWorkloadType(): void
  ```
