# HostingEnvironmentWorkerPoolProxy

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

## Definition

```typescript
interface HostingEnvironmentWorkerPoolProxy {
  computeMode: BicepValueProxy | ComputeModeOption;
  readonly id: BicepValueProxy;
  readonly instanceNames: Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy;
  kind: BicepValueProxy | string;
  name: BicepValueProxy | string;
  parent: AppServiceEnvironmentProxy;
  sku: AppServiceSkuDescriptionProxy;
  readonly systemData: AppServiceSystemDataProxy;
  workerCount: BicepValueProxy | number;
  workerSize: BicepValueProxy | string;
  workerSizeId: BicepValueProxy | number;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearComputeMode(): void;
  clearKind(): void;
  clearName(): void;
  clearWorkerCount(): void;
  clearWorkerSize(): void;
  clearWorkerSizeId(): void;
}
```

## Properties

- `computeMode`: `BicepValueProxy | ComputeModeOption` `get - set` -- Gets or sets the ComputeMode provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `instanceNames`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-listofstringproxy.md) `get` -- Gets the InstanceNames provisioning property.
- `kind`: `BicepValueProxy | string` `get - set` -- Gets or sets the Kind provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [AppServiceEnvironmentProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceenvironmentproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `sku`: [AppServiceSkuDescriptionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appserviceskudescriptionproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `systemData`: [AppServiceSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicesystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `workerCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the WorkerCount provisioning property.
- `workerSize`: `BicepValueProxy | string` `get - set` -- Gets or sets the WorkerSize provisioning property.
- `workerSizeId`: `BicepValueProxy | number` `get - set` -- Gets or sets the WorkerSizeId provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentworkerpoolproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearComputeMode](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentworkerpoolproxy/clearcomputemode.md) -- `method` -- Clears the ComputeMode provisioning property.
    ```typescript
  clearComputeMode(): void
  ```
- [clearKind](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentworkerpoolproxy/clearkind.md) -- `method` -- Clears the Kind provisioning property.
    ```typescript
  clearKind(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentworkerpoolproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearWorkerCount](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentworkerpoolproxy/clearworkercount.md) -- `method` -- Clears the WorkerCount provisioning property.
    ```typescript
  clearWorkerCount(): void
  ```
- [clearWorkerSize](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentworkerpoolproxy/clearworkersize.md) -- `method` -- Clears the WorkerSize provisioning property.
    ```typescript
  clearWorkerSize(): void
  ```
- [clearWorkerSizeId](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/hostingenvironmentworkerpoolproxy/clearworkersizeid.md) -- `method` -- Clears the WorkerSizeId provisioning property.
    ```typescript
  clearWorkerSizeId(): void
  ```
