# Aspire.Hosting.Azure

- Module: `Aspire.Hosting.Azure`
- Version: `13.6.0`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)
- Functions: `28`
- Types: `9`

## Types

- [AzureBicepResource](/reference/api/typescript/aspire.hosting.azure/azurebicepresource.md) -- `handle` - 2 members
- [AzureEnvironmentResource](/reference/api/typescript/aspire.hosting.azure/azureenvironmentresource.md) -- `handle` - 2 members
- [AzureProvisioningResource](/reference/api/typescript/aspire.hosting.azure/azureprovisioningresource.md) -- `handle` - 1 members
- [AzureResourceInfrastructure](/reference/api/typescript/aspire.hosting.azure/azureresourceinfrastructure.md) -- `handle` - 0 members -- An Azure Provisioning {@ats-ref type:Infrastructure} which represents the root Bicep module that is generated for an Azure resource.
- [AzureUserAssignedIdentityResource](/reference/api/typescript/aspire.hosting.azure/azureuserassignedidentityresource.md) -- `handle` - 0 members
- [BicepOutputReference](/reference/api/typescript/aspire.hosting.azure/bicepoutputreference.md) -- `handle` - 3 members -- A reference to an output from a bicep template.
- [IAzureKeyVaultResource](/reference/api/typescript/aspire.hosting.azure/iazurekeyvaultresource.md) -- `interface` - 0 members -- Represents a resource that represents an Azure Key Vault.
- [IAzureKeyVaultSecretReference](/reference/api/typescript/aspire.hosting.azure/iazurekeyvaultsecretreference.md) -- `interface` - 0 members -- Represents a reference to a secret in an Azure Key Vault resource.
- [IAzureResource](/reference/api/typescript/aspire.hosting.azure/iazureresource.md) -- `interface` - 16 members -- Represents an Azure resource, as a marker interface for {@ats-ref type:IResource}'s that can be deployed to an Azure resource group.

## Functions

- [addAzureEnvironment](/reference/api/typescript/aspire.hosting.azure/addazureenvironment.md) -- `method` -- Adds an Azure environment resource to the application model.
- [addAzureInfrastructure](/reference/api/typescript/aspire.hosting.azure/addazureinfrastructure.md) -- `method` -- Adds an Azure provisioning resource to the application model.
- [addAzureProvisioning](/reference/api/typescript/aspire.hosting.azure/addazureprovisioning.md) -- `method` -- Adds support for generating Azure resources dynamically during application startup. The application must configure the appropriate Azure subscription and location before resources can be provisioned.
- [addAzureUserAssignedIdentity](/reference/api/typescript/aspire.hosting.azure/addazureuserassignedidentity.md) -- `method` -- Adds an Azure user‑assigned identity resource to the application model.
- [addBicepTemplate](/reference/api/typescript/aspire.hosting.azure/addbiceptemplate.md) -- `method` -- Adds an Azure Bicep resource to the application model.
- [addBicepTemplateString](/reference/api/typescript/aspire.hosting.azure/addbiceptemplatestring.md) -- `method` -- Adds an Azure Bicep resource to the application model.
- [asExisting](/reference/api/typescript/aspire.hosting.azure/asexisting.md) -- `method` -- Marks the resource as an existing resource in both run and publish modes.
- [asExistingInResourceGroup](/reference/api/typescript/aspire.hosting.azure/asexistinginresourcegroup.md) -- `method` -- Marks the resource as an existing resource in a specific resource group and subscription in both run and publish modes.
- [asExistingInSubscription](/reference/api/typescript/aspire.hosting.azure/asexistinginsubscription.md) -- `method` -- Marks the subscription-scoped resource as an existing resource in both run and publish modes.
- [asExistingInTenant](/reference/api/typescript/aspire.hosting.azure/asexistingintenant.md) -- `method` -- Marks the current-tenant-scoped resource as an existing resource in both run and publish modes.
- [clearDefaultRoleAssignments](/reference/api/typescript/aspire.hosting.azure/cleardefaultroleassignments.md) -- `method` -- Clears all default role assignments for the specified Azure resource.
- [configureInfrastructure](/reference/api/typescript/aspire.hosting.azure/configureinfrastructure.md) -- `method` -- Configures the Azure provisioning infrastructure callback
- [getBicepIdentifier](/reference/api/typescript/aspire.hosting.azure/getbicepidentifier.md) -- `method` -- Gets the Bicep identifier for the Azure resource.
- [getOutput](/reference/api/typescript/aspire.hosting.azure/getoutput.md) -- `method` -- Gets a reference to an output from a bicep template.
- [isExisting](/reference/api/typescript/aspire.hosting.azure/isexisting.md) -- `method` -- Determines whether the Azure resource is marked as existing.
- [publishAsConnectionString](/reference/api/typescript/aspire.hosting.azure/publishasconnectionstring.md) -- `method` -- Changes the resource to be published as a connection string reference in the manifest.
- [publishAsExisting](/reference/api/typescript/aspire.hosting.azure/publishasexisting.md) -- `method` -- Marks the resource as an existing resource when the application is deployed.
- [publishAsExistingInResourceGroup](/reference/api/typescript/aspire.hosting.azure/publishasexistinginresourcegroup.md) -- `method` -- Marks the resource as an existing resource in a specific resource group and subscription when the application is deployed.
- [publishAsExistingInSubscription](/reference/api/typescript/aspire.hosting.azure/publishasexistinginsubscription.md) -- `method` -- Marks the subscription-scoped resource as an existing resource when the application is deployed.
- [publishAsExistingInTenant](/reference/api/typescript/aspire.hosting.azure/publishasexistingintenant.md) -- `method` -- Marks the current-tenant-scoped resource as an existing resource when the application is deployed.
- [runAsExisting](/reference/api/typescript/aspire.hosting.azure/runasexisting.md) -- `method` -- Marks the resource as an existing resource when the application is running.
- [runAsExistingInResourceGroup](/reference/api/typescript/aspire.hosting.azure/runasexistinginresourcegroup.md) -- `method` -- Marks the resource as an existing resource in a specific resource group and subscription when the application is running.
- [runAsExistingInSubscription](/reference/api/typescript/aspire.hosting.azure/runasexistinginsubscription.md) -- `method` -- Marks the subscription-scoped resource as an existing resource when the application is running.
- [runAsExistingInTenant](/reference/api/typescript/aspire.hosting.azure/runasexistingintenant.md) -- `method` -- Marks the current-tenant-scoped resource as an existing resource when the application is running.
- [withAzureUserAssignedIdentity](/reference/api/typescript/aspire.hosting.azure/withazureuserassignedidentity.md) -- `method` -- Associates an Azure user-assigned identity with a compute resource
- [withLocation](/reference/api/typescript/aspire.hosting.azure/withlocation.md) -- `method` -- Sets the location of the Azure environment resource.
- [withParameter](/reference/api/typescript/aspire.hosting.azure/withparameter.md) -- `method` -- Adds a Bicep parameter
- [withResourceGroup](/reference/api/typescript/aspire.hosting.azure/withresourcegroup.md) -- `method` -- Sets the resource group name of the Azure environment resource.
