# Aspire.Hosting.Azure.AppService

- Module: `Aspire.Hosting.Azure.AppService`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `10`
- Types: `7`

## Handles

- [AzureApplicationInsightsResource](/reference/api/go/aspire.hosting.azure.appservice/azureapplicationinsightsresource.md) -- `handle` - 0 members
- [AzureAppServiceEnvironmentResource](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md) -- `handle` - 5 members
- [AzureResourceInfrastructure](/reference/api/go/aspire.hosting.azure.appservice/azureresourceinfrastructure.md) -- `handle` - 0 members
- [AzureUserAssignedIdentityResource](/reference/api/go/aspire.hosting.azure.appservice/azureuserassignedidentityresource.md) -- `handle` - 0 members
- [WebSite](/reference/api/go/aspire.hosting.azure.appservice/website.md) -- `handle` - 1 members
- [WebSiteSlot](/reference/api/go/aspire.hosting.azure.appservice/websiteslot.md) -- `handle` - 1 members

## DTOs

- [AzureAppServiceSiteConfig](/reference/api/go/aspire.hosting.azure.appservice/azureappservicesiteconfig.md) -- `struct` - 1 fields -- Polyglot-friendly subset of Azure App Service site configuration.

## Functions

- [WithAcrPullIdentity](/reference/api/go/aspire.hosting.azure.appservice/withacrpullidentity.md) -- `method` - on `AzureAppServiceEnvironmentResource` -- 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.
- [WithAzureApplicationInsights](/reference/api/go/aspire.hosting.azure.appservice/withazureapplicationinsights.md) -- `method` - on `AzureAppServiceEnvironmentResource` -- Enables Azure Application Insights for the Azure App Service environment
- [WithDashboard](/reference/api/go/aspire.hosting.azure.appservice/withdashboard.md) -- `method` - on `AzureAppServiceEnvironmentResource` -- Configures whether the Aspire dashboard should be included in the Azure App Service environment.
- [WithDeploymentSlot](/reference/api/go/aspire.hosting.azure.appservice/withdeploymentslot.md) -- `method` - on `AzureAppServiceEnvironmentResource` -- Configures the deployment slot for all Azure App Services in the environment
- [WithHttpsUpgrade](/reference/api/go/aspire.hosting.azure.appservice/withhttpsupgrade.md) -- `method` - on `AzureAppServiceEnvironmentResource` -- 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.
- [AddAzureAppServiceEnvironment](/reference/api/go/aspire.hosting.azure.appservice/addazureappserviceenvironment.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a azure app service environment resource to the distributed application builder.
- [PublishAsAzureAppServiceWebsite](/reference/api/go/aspire.hosting.azure.appservice/publishasazureappservicewebsite.md) -- `method` - on `IComputeResource` -- Publishes the specified compute resource as an Azure App Service or Azure App Service Slot.
- [SkipEnvironmentVariableNameChecks](/reference/api/go/aspire.hosting.azure.appservice/skipenvironmentvariablenamechecks.md) -- `method` - on `IComputeResource` -- Skips validation for environment variable names that Azure App Service may not support.
- [ConfigureSiteConfig](/reference/api/go/aspire.hosting.azure.appservice/configuresiteconfig.md) -- `method` - on `WebSite` -- Configures supported Azure App Service site settings.
- [ConfigureSlotSiteConfig](/reference/api/go/aspire.hosting.azure.appservice/configureslotsiteconfig.md) -- `method` - on `WebSiteSlot` -- Configures supported Azure App Service deployment slot site settings.
