# SessionPoolProxy

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

Represents the SessionPool Azure Provisioning model.

## Definition

```typescript
interface SessionPoolProxy {
  containerType: BicepValueProxy | ContainerType;
  customContainerTemplate: CustomContainerTemplateProxy;
  dynamicPoolLifecycleConfiguration: SessionPoolLifecycleConfigurationProxy;
  environmentId: BicepValueProxy;
  readonly id: BicepValueProxy;
  identity: AppContainersManagedServiceIdentityProxy;
  location: BicepValueProxy;
  managedIdentitySettings: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfSessionPoolManagedIdentitySettingProxy;
  name: BicepValueProxy | string;
  readonly nodeCount: BicepValueProxy | number;
  readonly poolManagementEndpoint: BicepValueProxy | uri;
  poolManagementType: BicepValueProxy | PoolManagementType;
  readonly provisioningState: BicepValueProxy | SessionPoolProvisioningState;
  scaleConfiguration: SessionPoolScaleConfigurationProxy;
  secrets: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfSessionPoolSecretProxy;
  sessionNetworkStatus: BicepValueProxy | SessionNetworkStatus;
  readonly systemData: AppContainersSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_DictionaryOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearContainerType(): void;
  clearEnvironmentId(): void;
  clearLocation(): void;
  clearName(): void;
  clearPoolManagementType(): void;
  clearSessionNetworkStatus(): void;
}
```

## Properties

- `containerType`: `BicepValueProxy | ContainerType` `get - set` -- Gets or sets the ContainerType provisioning property.
- `customContainerTemplate`: [CustomContainerTemplateProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/customcontainertemplateproxy.md) `get - set` -- Gets or sets the CustomContainerTemplate provisioning property.
- `dynamicPoolLifecycleConfiguration`: [SessionPoolLifecycleConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoollifecycleconfigurationproxy.md) `get - set` -- Gets or sets the DynamicPoolLifecycleConfiguration provisioning property.
- `environmentId`: `BicepValueProxy` `get - set` -- Gets or sets the EnvironmentId provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [AppContainersManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/appcontainersmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `managedIdentitySettings`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfSessionPoolManagedIdentitySettingProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofsessionpoolmanagedidentitysettingproxy.md) `get - set` -- Gets or sets the ManagedIdentitySettings provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `nodeCount`: `BicepValueProxy | number` `get` -- Gets the NodeCount provisioning property.
- `poolManagementEndpoint`: `BicepValueProxy | uri` `get` -- Gets the PoolManagementEndpoint provisioning property.
- `poolManagementType`: `BicepValueProxy | PoolManagementType` `get - set` -- Gets or sets the PoolManagementType provisioning property.
- `provisioningState`: `BicepValueProxy | SessionPoolProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `scaleConfiguration`: [SessionPoolScaleConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolscaleconfigurationproxy.md) `get - set` -- Gets or sets the ScaleConfiguration provisioning property.
- `secrets`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfSessionPoolSecretProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofsessionpoolsecretproxy.md) `get - set` -- Gets or sets the Secrets provisioning property.
- `sessionNetworkStatus`: `BicepValueProxy | SessionNetworkStatus` `get - set` -- Gets or sets the SessionNetworkStatus provisioning property.
- `systemData`: [AppContainersSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/appcontainerssystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearContainerType](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolproxy/clearcontainertype.md) -- `method` -- Clears the ContainerType provisioning property.
    ```typescript
  clearContainerType(): void
  ```
- [clearEnvironmentId](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolproxy/clearenvironmentid.md) -- `method` -- Clears the EnvironmentId provisioning property.
    ```typescript
  clearEnvironmentId(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPoolManagementType](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolproxy/clearpoolmanagementtype.md) -- `method` -- Clears the PoolManagementType provisioning property.
    ```typescript
  clearPoolManagementType(): void
  ```
- [clearSessionNetworkStatus](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/sessionpoolproxy/clearsessionnetworkstatus.md) -- `method` -- Clears the SessionNetworkStatus provisioning property.
    ```typescript
  clearSessionNetworkStatus(): void
  ```
