# AzureAppServiceEnvironmentResource

- Module: [Aspire.Hosting.Azure.AppService](/reference/api/typescript/aspire.hosting.azure.appservice.md)
- Version: `13.3.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureAppServiceEnvironmentResource
  extends IAzureResource,
    IComputeEnvironmentResource,
    IContainerRegistry,
    IResource,
    IResourceWithParameters,
    IAzureComputeEnvironmentResource,
    IAzureContainerRegistry {
  withAzureApplicationInsights(applicationInsights?: AzureApplicationInsightsResource): AzureAppServiceEnvironmentResource;
  withDashboard(enable?: boolean): AzureAppServiceEnvironmentResource;
  withDeploymentSlot(deploymentSlot: ParameterResource): AzureAppServiceEnvironmentResource;
  withHttpsUpgrade(upgrade?: boolean): AzureAppServiceEnvironmentResource;
}
```

## Methods

- [withAzureApplicationInsights](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withazureapplicationinsights.md) -- `method` -- Enables Azure Application Insights for the Azure App Service environment
    ```typescript
  withAzureApplicationInsights(applicationInsights?: AzureApplicationInsightsResource): AzureAppServiceEnvironmentResource
  ```
- [withDashboard](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withdashboard.md) -- `method` -- Configures whether the Aspire dashboard is included in the Azure App Service environment
    ```typescript
  withDashboard(enable?: boolean): AzureAppServiceEnvironmentResource
  ```
- [withDeploymentSlot](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withdeploymentslot.md) -- `method` -- Configures the deployment slot for all Azure App Services in the environment
    ```typescript
  withDeploymentSlot(deploymentSlot: ParameterResource): AzureAppServiceEnvironmentResource
  ```
- [withHttpsUpgrade](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withhttpsupgrade.md) -- `method` -- Configures whether HTTP endpoints are automatically upgraded to HTTPS in Azure App Service
    ```typescript
  withHttpsUpgrade(upgrade?: boolean): AzureAppServiceEnvironmentResource
  ```
