# Aspire.Hosting.Azure.AppService

- Module: `Aspire.Hosting.Azure.AppService`
- Version: `13.2.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `48`
- Types: `17`

## Types

- [AzureApplicationInsightsResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureapplicationinsightsresource.md) -- `handle` - 1 members
- [AzureAppServiceEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md) -- `handle` - 7 members
- [AzureBicepResource](/reference/api/typescript/aspire.hosting.azure.appservice/azurebicepresource.md) -- `handle` - 9 members
- [AzureContainerRegistryResource](/reference/api/typescript/aspire.hosting.azure.appservice/azurecontainerregistryresource.md) -- `handle` - 1 members
- [AzureEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureenvironmentresource.md) -- `handle` - 2 members
- [AzureLogAnalyticsWorkspaceResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureloganalyticsworkspaceresource.md) -- `handle` - 0 members
- [AzureProvisioningResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureprovisioningresource.md) -- `handle` - 1 members
- [AzureResourceInfrastructure](/reference/api/typescript/aspire.hosting.azure.appservice/azureresourceinfrastructure.md) -- `handle` - 3 members
- [AzureUserAssignedIdentityResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureuserassignedidentityresource.md) -- `handle` - 0 members
- [BicepOutputReference](/reference/api/typescript/aspire.hosting.azure.appservice/bicepoutputreference.md) -- `handle` - 3 members
- [IAzureKeyVaultResource](/reference/api/typescript/aspire.hosting.azure.appservice/iazurekeyvaultresource.md) -- `interface` - 0 members
- [IAzureKeyVaultSecretReference](/reference/api/typescript/aspire.hosting.azure.appservice/iazurekeyvaultsecretreference.md) -- `interface` - 0 members
- [IAzureResource](/reference/api/typescript/aspire.hosting.azure.appservice/iazureresource.md) -- `interface` - 9 members
- [WebSite](/reference/api/typescript/aspire.hosting.azure.appservice/website.md) -- `handle` - 0 members
- [WebSiteSlot](/reference/api/typescript/aspire.hosting.azure.appservice/websiteslot.md) -- `handle` - 0 members

## Functions

- [addAzureApplicationInsights](/reference/api/typescript/aspire.hosting.azure.appservice/addazureapplicationinsights.md) -- `method` -- Adds an Azure Application Insights resource
- [addAzureAppServiceEnvironment](/reference/api/typescript/aspire.hosting.azure.appservice/addazureappserviceenvironment.md) -- `method` -- Adds an Azure App Service environment resource
- [addAzureContainerRegistry](/reference/api/typescript/aspire.hosting.azure.appservice/addazurecontainerregistry.md) -- `method` -- Adds an Azure Container Registry resource to the distributed application model.
- [addAzureEnvironment](/reference/api/typescript/aspire.hosting.azure.appservice/addazureenvironment.md) -- `method` -- Adds the shared Azure environment resource to the application model
- [addAzureInfrastructure](/reference/api/typescript/aspire.hosting.azure.appservice/addazureinfrastructure.md) -- `method` -- Adds an Azure provisioning resource to the application model
- [addAzureLogAnalyticsWorkspace](/reference/api/typescript/aspire.hosting.azure.appservice/addazureloganalyticsworkspace.md) -- `method` -- Adds an Azure Log Analytics Workspace resource
- [addAzureProvisioning](/reference/api/typescript/aspire.hosting.azure.appservice/addazureprovisioning.md) -- `method` -- Adds Azure provisioning services to the distributed application builder
- [addAzureUserAssignedIdentity](/reference/api/typescript/aspire.hosting.azure.appservice/addazureuserassignedidentity.md) -- `method` -- Adds an Azure user-assigned identity resource
- [addBicepTemplate](/reference/api/typescript/aspire.hosting.azure.appservice/addbiceptemplate.md) -- `method` -- Adds an Azure Bicep template resource from a file
- [addBicepTemplateString](/reference/api/typescript/aspire.hosting.azure.appservice/addbiceptemplatestring.md) -- `method` -- Adds an Azure Bicep template resource from inline Bicep content
- [asExisting](/reference/api/typescript/aspire.hosting.azure.appservice/asexisting.md) -- `method` -- Marks an Azure resource as existing in both run and publish modes by using parameter resources
- [clearDefaultRoleAssignments](/reference/api/typescript/aspire.hosting.azure.appservice/cleardefaultroleassignments.md) -- `method` -- Clears the default Azure role assignments from a resource
- [configureInfrastructure](/reference/api/typescript/aspire.hosting.azure.appservice/configureinfrastructure.md) -- `method` -- Configures the Azure provisioning infrastructure callback
- [getAzureContainerRegistry](/reference/api/typescript/aspire.hosting.azure.appservice/getazurecontainerregistry.md) -- `method` -- Gets the Azure Container Registry associated with a compute environment resource.
- [getBicepIdentifier](/reference/api/typescript/aspire.hosting.azure.appservice/getbicepidentifier.md) -- `method` -- Gets the normalized Bicep identifier for an Azure resource
- [getOutput](/reference/api/typescript/aspire.hosting.azure.appservice/getoutput.md) -- `method` -- Gets an output reference from an Azure Bicep template resource
- [isExisting](/reference/api/typescript/aspire.hosting.azure.appservice/isexisting.md) -- `method` -- Determines whether a resource is marked as existing
- [publishAsAzureAppServiceWebsite](/reference/api/typescript/aspire.hosting.azure.appservice/publishasazureappservicewebsite.md) -- `method` -- Publishes the compute resource as an Azure App Service website or deployment slot
- [publishAsConnectionString](/reference/api/typescript/aspire.hosting.azure.appservice/publishasconnectionstring.md) -- `method` -- Publishes an Azure resource to the manifest as a connection string
- [publishAsExisting](/reference/api/typescript/aspire.hosting.azure.appservice/publishasexisting.md) -- `method` -- Marks an Azure resource as existing in publish mode
- [publishAsExistingFromParameters](/reference/api/typescript/aspire.hosting.azure.appservice/publishasexistingfromparameters.md) -- `method` -- Marks an Azure resource as existing in publish mode by using parameter resources
- [runAsExisting](/reference/api/typescript/aspire.hosting.azure.appservice/runasexisting.md) -- `method` -- Marks an Azure resource as existing in run mode
- [runAsExistingFromParameters](/reference/api/typescript/aspire.hosting.azure.appservice/runasexistingfromparameters.md) -- `method` -- Marks an Azure resource as existing in run mode by using parameter resources
- [skipEnvironmentVariableNameChecks](/reference/api/typescript/aspire.hosting.azure.appservice/skipenvironmentvariablenamechecks.md) -- `method` -- Skips Azure App Service environment variable name validation for the compute resource
- [withAzureApplicationInsights](/reference/api/typescript/aspire.hosting.azure.appservice/withazureapplicationinsights.md) -- `method` -- Enables Azure Application Insights for the Azure App Service environment
- [withAzureApplicationInsightsLocation](/reference/api/typescript/aspire.hosting.azure.appservice/withazureapplicationinsightslocation.md) -- `method` -- Enables Azure Application Insights for the Azure App Service environment with a specific location
- [withAzureApplicationInsightsLocationParameter](/reference/api/typescript/aspire.hosting.azure.appservice/withazureapplicationinsightslocationparameter.md) -- `method` -- Enables Azure Application Insights for the Azure App Service environment using a location parameter
- [withAzureApplicationInsightsResource](/reference/api/typescript/aspire.hosting.azure.appservice/withazureapplicationinsightsresource.md) -- `method` -- Enables Azure Application Insights for the Azure App Service environment using an existing Application Insights resource
- [withAzureContainerRegistry](/reference/api/typescript/aspire.hosting.azure.appservice/withazurecontainerregistry.md) -- `method` -- Configures a compute environment resource to use an Azure Container Registry.
- [withAzureUserAssignedIdentity](/reference/api/typescript/aspire.hosting.azure.appservice/withazureuserassignedidentity.md) -- `method` -- Associates an Azure user-assigned identity with a compute resource
- [withContainerRegistryRoleAssignments](/reference/api/typescript/aspire.hosting.azure.appservice/withcontainerregistryroleassignments.md) -- `method` -- Assigns Azure Container Registry roles to a resource.
- [withDashboard](/reference/api/typescript/aspire.hosting.azure.appservice/withdashboard.md) -- `method` -- Configures whether the Aspire dashboard is included in the Azure App Service environment
- [withDeploymentSlot](/reference/api/typescript/aspire.hosting.azure.appservice/withdeploymentslot.md) -- `method` -- Configures the deployment slot for all Azure App Services in the environment
- [withDeploymentSlotParameter](/reference/api/typescript/aspire.hosting.azure.appservice/withdeploymentslotparameter.md) -- `method` -- Configures the deployment slot for all Azure App Services in the environment using a parameter
- [withEnvironmentFromKeyVaultSecret](/reference/api/typescript/aspire.hosting.azure.appservice/withenvironmentfromkeyvaultsecret.md) -- `method` -- Sets an environment variable from an Azure Key Vault secret reference
- [withEnvironmentFromOutput](/reference/api/typescript/aspire.hosting.azure.appservice/withenvironmentfromoutput.md) -- `method` -- Sets an environment variable from a Bicep output reference
- [withLocation](/reference/api/typescript/aspire.hosting.azure.appservice/withlocation.md) -- `method` -- Sets the Azure location for the shared Azure environment resource
- [withLogAnalyticsWorkspace](/reference/api/typescript/aspire.hosting.azure.appservice/withloganalyticsworkspace.md) -- `method` -- Configures the Application Insights resource to use a Log Analytics Workspace
- [withParameter](/reference/api/typescript/aspire.hosting.azure.appservice/withparameter.md) -- `method` -- Adds a Bicep parameter without a value
- [withParameterFromConnectionString](/reference/api/typescript/aspire.hosting.azure.appservice/withparameterfromconnectionstring.md) -- `method` -- Adds a Bicep parameter from a connection string resource builder
- [withParameterFromEndpoint](/reference/api/typescript/aspire.hosting.azure.appservice/withparameterfromendpoint.md) -- `method` -- Adds a Bicep parameter from an endpoint reference
- [withParameterFromOutput](/reference/api/typescript/aspire.hosting.azure.appservice/withparameterfromoutput.md) -- `method` -- Adds a Bicep parameter from another Bicep output reference
- [withParameterFromParameter](/reference/api/typescript/aspire.hosting.azure.appservice/withparameterfromparameter.md) -- `method` -- Adds a Bicep parameter from a parameter resource builder
- [withParameterFromReferenceExpression](/reference/api/typescript/aspire.hosting.azure.appservice/withparameterfromreferenceexpression.md) -- `method` -- Adds a Bicep parameter from a reference expression
- [withParameterStringValue](/reference/api/typescript/aspire.hosting.azure.appservice/withparameterstringvalue.md) -- `method` -- Adds a Bicep parameter with a string value
- [withParameterStringValues](/reference/api/typescript/aspire.hosting.azure.appservice/withparameterstringvalues.md) -- `method` -- Adds a Bicep parameter with a string list value
- [withPurgeTask](/reference/api/typescript/aspire.hosting.azure.appservice/withpurgetask.md) -- `method` -- Configures a purge task for the Azure Container Registry resource.
- [withResourceGroup](/reference/api/typescript/aspire.hosting.azure.appservice/withresourcegroup.md) -- `method` -- Sets the Azure resource group for the shared Azure environment resource

## Enums

- [AzureContainerRegistryRole](/reference/api/typescript/aspire.hosting.azure.appservice/azurecontainerregistryrole.md) -- `enum` - 6 values
- [DeploymentScope](/reference/api/typescript/aspire.hosting.azure.appservice/deploymentscope.md) -- `enum` - 4 values
