# AppServiceEnvironmentProxy

- Module: [Aspire.Hosting.Azure.Provisioning.AppService](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the AppServiceEnvironment Azure Provisioning model.

## Definition

```typescript
interface AppServiceEnvironmentProxy {
  clusterSettings: Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfAppServiceNameValuePairProxy;
  customDnsSuffixConfig: CustomDnsSuffixConfigurationProxy;
  customDnsSuffixConfiguration: CustomDnsSuffixConfigurationDataProxy;
  dedicatedHostCount: BicepValueProxy | number;
  dnsSuffix: BicepValueProxy | string;
  frontEndScaleFactor: BicepValueProxy | number;
  readonly hasLinuxWorkers: BicepValueProxy | boolean;
  readonly id: BicepValueProxy;
  internalLoadBalancingMode: BicepValueProxy | LoadBalancingMode;
  iPSslAddressCount: BicepValueProxy | number;
  readonly isSuspended: BicepValueProxy | boolean;
  isZoneRedundant: BicepValueProxy | boolean;
  kind: BicepValueProxy | string;
  location: BicepValueProxy;
  readonly maximumNumberOfMachines: BicepValueProxy | number;
  readonly multiRoleCount: BicepValueProxy | number;
  multiSize: BicepValueProxy | string;
  name: BicepValueProxy | string;
  networkingConfig: AseV3NetworkingConfigurationProxy;
  networkingConfiguration: AseV3NetworkingConfigurationDataProxy;
  readonly provisioningState: BicepValueProxy | ProvisioningState;
  readonly status: BicepValueProxy | HostingEnvironmentStatus;
  readonly systemData: AppServiceSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_AppService_Generated_DictionaryOfStringProxy;
  readonly upgradeAvailability: BicepValueProxy | AppServiceEnvironmentUpgradeAvailability;
  upgradePreference: BicepValueProxy | AppServiceEnvironmentUpgradePreference;
  userWhitelistedIPRanges: Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy;
  virtualNetwork: AppServiceVirtualNetworkProfileProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDedicatedHostCount(): void;
  clearDnsSuffix(): void;
  clearFrontEndScaleFactor(): void;
  clearInternalLoadBalancingMode(): void;
  clearIPSslAddressCount(): void;
  clearIsZoneRedundant(): void;
  clearKind(): void;
  clearLocation(): void;
  clearMultiSize(): void;
  clearName(): void;
  clearUpgradePreference(): void;
}
```

## Properties

- `clusterSettings`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfAppServiceNameValuePairProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-listofappservicenamevaluepairproxy.md) `get - set` -- Gets or sets the ClusterSettings provisioning property.
- `customDnsSuffixConfig`: [CustomDnsSuffixConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/customdnssuffixconfigurationproxy.md) `get - set` -- Gets or sets the CustomDnsSuffixConfig provisioning property.
- `customDnsSuffixConfiguration`: [CustomDnsSuffixConfigurationDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/customdnssuffixconfigurationdataproxy.md) `get - set` -- Gets or sets the CustomDnsSuffixConfiguration provisioning property.
- `dedicatedHostCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the DedicatedHostCount provisioning property.
- `dnsSuffix`: `BicepValueProxy | string` `get - set` -- Gets or sets the DnsSuffix provisioning property.
- `frontEndScaleFactor`: `BicepValueProxy | number` `get - set` -- Gets or sets the FrontEndScaleFactor provisioning property.
- `hasLinuxWorkers`: `BicepValueProxy | boolean` `get` -- Gets the HasLinuxWorkers provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `internalLoadBalancingMode`: `BicepValueProxy | LoadBalancingMode` `get - set` -- Gets or sets the InternalLoadBalancingMode provisioning property.
- `iPSslAddressCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the IPSslAddressCount provisioning property.
- `isSuspended`: `BicepValueProxy | boolean` `get` -- Gets the IsSuspended provisioning property.
- `isZoneRedundant`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsZoneRedundant provisioning property.
- `kind`: `BicepValueProxy | string` `get - set` -- Gets or sets the Kind provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `maximumNumberOfMachines`: `BicepValueProxy | number` `get` -- Gets the MaximumNumberOfMachines provisioning property.
- `multiRoleCount`: `BicepValueProxy | number` `get` -- Gets the MultiRoleCount provisioning property.
- `multiSize`: `BicepValueProxy | string` `get - set` -- Gets or sets the MultiSize provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `networkingConfig`: [AseV3NetworkingConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/asev3networkingconfigurationproxy.md) `get - set` -- Gets or sets the NetworkingConfig provisioning property.
- `networkingConfiguration`: [AseV3NetworkingConfigurationDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/asev3networkingconfigurationdataproxy.md) `get - set` -- Gets or sets the NetworkingConfiguration provisioning property.
- `provisioningState`: `BicepValueProxy | ProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `status`: `BicepValueProxy | HostingEnvironmentStatus` `get` -- Gets the Status provisioning property.
- `systemData`: [AppServiceSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicesystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `upgradeAvailability`: `BicepValueProxy | AppServiceEnvironmentUpgradeAvailability` `get` -- Gets the UpgradeAvailability provisioning property.
- `upgradePreference`: `BicepValueProxy | AppServiceEnvironmentUpgradePreference` `get - set` -- Gets or sets the UpgradePreference provisioning property.
- `userWhitelistedIPRanges`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-listofstringproxy.md) `get - set` -- Gets or sets the UserWhitelistedIPRanges provisioning property.
- `virtualNetwork`: [AppServiceVirtualNetworkProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicevirtualnetworkprofileproxy.md) `get - set` -- Gets or sets the VirtualNetwork provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDedicatedHostCount](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/cleardedicatedhostcount.md) -- `method` -- Clears the DedicatedHostCount provisioning property.
    ```typescript
  clearDedicatedHostCount(): void
  ```
- [clearDnsSuffix](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/cleardnssuffix.md) -- `method` -- Clears the DnsSuffix provisioning property.
    ```typescript
  clearDnsSuffix(): void
  ```
- [clearFrontEndScaleFactor](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearfrontendscalefactor.md) -- `method` -- Clears the FrontEndScaleFactor provisioning property.
    ```typescript
  clearFrontEndScaleFactor(): void
  ```
- [clearInternalLoadBalancingMode](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearinternalloadbalancingmode.md) -- `method` -- Clears the InternalLoadBalancingMode provisioning property.
    ```typescript
  clearInternalLoadBalancingMode(): void
  ```
- [clearIPSslAddressCount](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearipssladdresscount.md) -- `method` -- Clears the IPSslAddressCount provisioning property.
    ```typescript
  clearIPSslAddressCount(): void
  ```
- [clearIsZoneRedundant](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/cleariszoneredundant.md) -- `method` -- Clears the IsZoneRedundant provisioning property.
    ```typescript
  clearIsZoneRedundant(): void
  ```
- [clearKind](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearkind.md) -- `method` -- Clears the Kind provisioning property.
    ```typescript
  clearKind(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearMultiSize](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearmultisize.md) -- `method` -- Clears the MultiSize provisioning property.
    ```typescript
  clearMultiSize(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearUpgradePreference](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy/clearupgradepreference.md) -- `method` -- Clears the UpgradePreference provisioning property.
    ```typescript
  clearUpgradePreference(): void
  ```
