# AzureAppServiceEnvironmentResource

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

## Definition

```go
type AzureAppServiceEnvironmentResource interface {
    ComputeEnvironmentResource
    Resource
}
```

## Embeds

- `ComputeEnvironmentResource`
- `Resource`

## Methods

- [WithAcrPullIdentity](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withacrpullidentity.md) -- `method` -- Configures the Azure App Service environment to use the supplied `AzureUserAssignedIdentityResource` as the managed identity that App Service apps use to pull images from the configured container registry (the `AcrPull` identity), instead of having Aspire create a new identity and a new `AcrPull` role assignment.
  ```go
  WithAcrPullIdentity(identityBuilder AzureUserAssignedIdentityResource) AzureAppServiceEnvironmentResource
  ```
- [WithAzureApplicationInsights](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withazureapplicationinsights.md) -- `method` -- Enables Azure Application Insights for the Azure App Service environment
  ```go
  WithAzureApplicationInsights(options ...*WithAzureApplicationInsightsOptions) AzureAppServiceEnvironmentResource
  ```
- [WithDashboard](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withdashboard.md) -- `method` -- Configures whether the Aspire dashboard should be included in the Azure App Service environment.
  ```go
  WithDashboard(options ...*WithDashboardOptions) AzureAppServiceEnvironmentResource
  ```
- [WithDeploymentSlot](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withdeploymentslot.md) -- `method` -- Configures the deployment slot for all Azure App Services in the environment
  ```go
  WithDeploymentSlot(deploymentSlot any) AzureAppServiceEnvironmentResource
  ```
- [WithHttpsUpgrade](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/withhttpsupgrade.md) -- `method` -- Configures whether HTTP endpoints should be automatically upgraded to HTTPS for the Azure App Service environment. By default, HTTP endpoints are upgraded to HTTPS for security and WebSocket compatibility.
  ```go
  WithHttpsUpgrade(options ...*WithHttpsUpgradeOptions) AzureAppServiceEnvironmentResource
  ```
