# AppServicePlanProxy

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

## Definition

```typescript
interface AppServicePlanProxy {
  extendedLocation: AppServiceExtendedAzureLocationProxy;
  freeOfferExpireOn: BicepValueProxy | datetimeoffset;
  readonly geoRegion: BicepValueProxy | string;
  hostingEnvironmentProfile: HostingEnvironmentProfileProxy;
  readonly id: BicepValueProxy;
  isAsyncScalingEnabled: BicepValueProxy | boolean;
  isElasticScaleEnabled: BicepValueProxy | boolean;
  isHyperV: BicepValueProxy | boolean;
  isPerSiteScaling: BicepValueProxy | boolean;
  isReserved: BicepValueProxy | boolean;
  isSpot: BicepValueProxy | boolean;
  isXenon: BicepValueProxy | boolean;
  isZoneRedundant: BicepValueProxy | boolean;
  kind: BicepValueProxy | string;
  kubeEnvironmentProfile: KubeEnvironmentProfileProxy;
  location: BicepValueProxy;
  maximumElasticWorkerCount: BicepValueProxy | number;
  readonly maximumNumberOfWorkers: BicepValueProxy | number;
  name: BicepValueProxy | string;
  readonly numberOfSites: BicepValueProxy | number;
  readonly numberOfWorkers: BicepValueProxy | number;
  readonly provisioningState: BicepValueProxy | ProvisioningState;
  readonly resourceGroup: BicepValueProxy | string;
  sku: AppServiceSkuDescriptionProxy;
  spotExpireOn: BicepValueProxy | datetimeoffset;
  readonly status: BicepValueProxy | AppServicePlanStatus;
  readonly subscription: BicepValueProxy | string;
  readonly systemData: AppServiceSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_AppService_Generated_DictionaryOfStringProxy;
  targetWorkerCount: BicepValueProxy | number;
  targetWorkerSizeId: BicepValueProxy | number;
  workerTierName: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearFreeOfferExpireOn(): void;
  clearIsAsyncScalingEnabled(): void;
  clearIsElasticScaleEnabled(): void;
  clearIsHyperV(): void;
  clearIsPerSiteScaling(): void;
  clearIsReserved(): void;
  clearIsSpot(): void;
  clearIsXenon(): void;
  clearIsZoneRedundant(): void;
  clearKind(): void;
  clearLocation(): void;
  clearMaximumElasticWorkerCount(): void;
  clearName(): void;
  clearSpotExpireOn(): void;
  clearTargetWorkerCount(): void;
  clearTargetWorkerSizeId(): void;
  clearWorkerTierName(): void;
}
```

## Properties

- `extendedLocation`: [AppServiceExtendedAzureLocationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceextendedazurelocationproxy.md) `get - set` -- Gets or sets the ExtendedLocation provisioning property.
- `freeOfferExpireOn`: `BicepValueProxy | datetimeoffset` `get - set` -- Gets or sets the FreeOfferExpireOn provisioning property.
- `geoRegion`: `BicepValueProxy | string` `get` -- Gets the GeoRegion provisioning property.
- `hostingEnvironmentProfile`: [HostingEnvironmentProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentprofileproxy.md) `get - set` -- Gets or sets the HostingEnvironmentProfile provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isAsyncScalingEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAsyncScalingEnabled provisioning property.
- `isElasticScaleEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsElasticScaleEnabled provisioning property.
- `isHyperV`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsHyperV provisioning property.
- `isPerSiteScaling`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsPerSiteScaling provisioning property.
- `isReserved`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsReserved provisioning property.
- `isSpot`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsSpot provisioning property.
- `isXenon`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsXenon 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.
- `kubeEnvironmentProfile`: [KubeEnvironmentProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/kubeenvironmentprofileproxy.md) `get - set` -- Gets or sets the KubeEnvironmentProfile provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `maximumElasticWorkerCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the MaximumElasticWorkerCount provisioning property.
- `maximumNumberOfWorkers`: `BicepValueProxy | number` `get` -- Gets the MaximumNumberOfWorkers provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `numberOfSites`: `BicepValueProxy | number` `get` -- Gets the NumberOfSites provisioning property.
- `numberOfWorkers`: `BicepValueProxy | number` `get` -- Gets the NumberOfWorkers provisioning property.
- `provisioningState`: `BicepValueProxy | ProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `resourceGroup`: `BicepValueProxy | string` `get` -- Gets the ResourceGroup provisioning property.
- `sku`: [AppServiceSkuDescriptionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceskudescriptionproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `spotExpireOn`: `BicepValueProxy | datetimeoffset` `get - set` -- Gets or sets the SpotExpireOn provisioning property.
- `status`: `BicepValueProxy | AppServicePlanStatus` `get` -- Gets the Status provisioning property.
- `subscription`: `BicepValueProxy | string` `get` -- Gets the Subscription 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.
- `targetWorkerCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the TargetWorkerCount provisioning property.
- `targetWorkerSizeId`: `BicepValueProxy | number` `get - set` -- Gets or sets the TargetWorkerSizeId provisioning property.
- `workerTierName`: `BicepValueProxy | string` `get - set` -- Gets or sets the WorkerTierName provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearFreeOfferExpireOn](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearfreeofferexpireon.md) -- `method` -- Clears the FreeOfferExpireOn provisioning property.
    ```typescript
  clearFreeOfferExpireOn(): void
  ```
- [clearIsAsyncScalingEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearisasyncscalingenabled.md) -- `method` -- Clears the IsAsyncScalingEnabled provisioning property.
    ```typescript
  clearIsAsyncScalingEnabled(): void
  ```
- [clearIsElasticScaleEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/cleariselasticscaleenabled.md) -- `method` -- Clears the IsElasticScaleEnabled provisioning property.
    ```typescript
  clearIsElasticScaleEnabled(): void
  ```
- [clearIsHyperV](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearishyperv.md) -- `method` -- Clears the IsHyperV provisioning property.
    ```typescript
  clearIsHyperV(): void
  ```
- [clearIsPerSiteScaling](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearispersitescaling.md) -- `method` -- Clears the IsPerSiteScaling provisioning property.
    ```typescript
  clearIsPerSiteScaling(): void
  ```
- [clearIsReserved](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearisreserved.md) -- `method` -- Clears the IsReserved provisioning property.
    ```typescript
  clearIsReserved(): void
  ```
- [clearIsSpot](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearisspot.md) -- `method` -- Clears the IsSpot provisioning property.
    ```typescript
  clearIsSpot(): void
  ```
- [clearIsXenon](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearisxenon.md) -- `method` -- Clears the IsXenon provisioning property.
    ```typescript
  clearIsXenon(): void
  ```
- [clearIsZoneRedundant](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/cleariszoneredundant.md) -- `method` -- Clears the IsZoneRedundant provisioning property.
    ```typescript
  clearIsZoneRedundant(): void
  ```
- [clearKind](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearkind.md) -- `method` -- Clears the Kind provisioning property.
    ```typescript
  clearKind(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearMaximumElasticWorkerCount](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearmaximumelasticworkercount.md) -- `method` -- Clears the MaximumElasticWorkerCount provisioning property.
    ```typescript
  clearMaximumElasticWorkerCount(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearSpotExpireOn](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearspotexpireon.md) -- `method` -- Clears the SpotExpireOn provisioning property.
    ```typescript
  clearSpotExpireOn(): void
  ```
- [clearTargetWorkerCount](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/cleartargetworkercount.md) -- `method` -- Clears the TargetWorkerCount provisioning property.
    ```typescript
  clearTargetWorkerCount(): void
  ```
- [clearTargetWorkerSizeId](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/cleartargetworkersizeid.md) -- `method` -- Clears the TargetWorkerSizeId provisioning property.
    ```typescript
  clearTargetWorkerSizeId(): void
  ```
- [clearWorkerTierName](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceplanproxy/clearworkertiername.md) -- `method` -- Clears the WorkerTierName provisioning property.
    ```typescript
  clearWorkerTierName(): void
  ```
