Aspire.Hosting.Azure
Official
📦 Aspire.Hosting.Azurev13.6.028Functions
9Types
9 types and 3 members
Types
handle
AzureBicepResource2 membershandle
AzureEnvironmentResource2 membershandle
AzureProvisioningResource1 membershandle
AzureResourceInfrastructurehandle
AzureUserAssignedIdentityResourcehandle
BicepOutputReference3 membersinterface
IAzureKeyVaultResourceinterface
IAzureKeyVaultSecretReferenceinterface
IAzureResource16 membersFunctions
method
addAzureEnvironmentbuilderAdds an Azure environment resource to the application model.
addAzureEnvironment(): AzureEnvironmentResourcemethod
addAzureInfrastructurebuilderAdds an Azure provisioning resource to the application model.
addAzureInfrastructure(name: string, configureInfrastructure: (obj: AzureResourceInfrastructure) => Promise<void>): AzureProvisioningResourcemethod
addAzureProvisioningAdds support for generating Azure resources dynamically during application startup. The application must configure the appropriate Azure subscription and location before resources can be provisioned.
addAzureProvisioning(): IDistributedApplicationBuildermethod
addAzureUserAssignedIdentitybuilderAdds an Azure user‑assigned identity resource to the application model.
addAzureUserAssignedIdentity(name: string): AzureUserAssignedIdentityResourcemethod
addBicepTemplatebuilderAdds an Azure Bicep resource to the application model.
addBicepTemplate(name: string, bicepFile: string): AzureBicepResourcemethod
addBicepTemplateStringbuilderAdds an Azure Bicep resource to the application model.
addBicepTemplateString(name: string, bicepContent: string): AzureBicepResourcemethod
asExistingbuilderMarks the resource as an existing resource in both run and publish modes.
asExisting(name: string | ParameterResource, resourceGroup?: string | ParameterResource): IAzureResourcemethod
asExistingInResourceGroupbuilderMarks the resource as an existing resource in a specific resource group and subscription in both run and publish modes.
asExistingInResourceGroup(name: string | ParameterResource, resourceGroup: string | ParameterResource, subscription: string | ParameterResource): IAzureResourcemethod
asExistingInSubscriptionbuilderMarks the subscription-scoped resource as an existing resource in both run and publish modes.
asExistingInSubscription(name: string | ParameterResource, subscription: string | ParameterResource): IAzureResourcemethod
asExistingInTenantbuilderMarks the current-tenant-scoped resource as an existing resource in both run and publish modes.
asExistingInTenant(name: string | ParameterResource): IAzureResourcemethod
clearDefaultRoleAssignmentsbuilderClears all default role assignments for the specified Azure resource.
clearDefaultRoleAssignments(): IAzureResourcemethod
configureInfrastructurebuilderConfigures the Azure provisioning infrastructure callback
configureInfrastructure(configure: (obj: AzureResourceInfrastructure) => Promise<void>): AzureProvisioningResourcemethod
getBicepIdentifierGets the Bicep identifier for the Azure resource.
getBicepIdentifier(): stringmethod
getOutputGets a reference to an output from a bicep template.
getOutput(name: string): BicepOutputReferencemethod
isExistingDetermines whether the Azure resource is marked as existing.
isExisting(): booleanmethod
publishAsConnectionStringbuilderChanges the resource to be published as a connection string reference in the manifest.
publishAsConnectionString(): IAzureResourcemethod
publishAsExistingbuilderMarks the resource as an existing resource when the application is deployed.
publishAsExisting(name: string | ParameterResource, resourceGroup?: string | ParameterResource): IAzureResourcemethod
publishAsExistingInResourceGroupbuilderMarks the resource as an existing resource in a specific resource group and subscription when the application is deployed.
publishAsExistingInResourceGroup(name: string | ParameterResource, resourceGroup: string | ParameterResource, subscription: string | ParameterResource): IAzureResourcemethod
publishAsExistingInSubscriptionbuilderMarks the subscription-scoped resource as an existing resource when the application is deployed.
publishAsExistingInSubscription(name: string | ParameterResource, subscription: string | ParameterResource): IAzureResourcemethod
publishAsExistingInTenantbuilderMarks the current-tenant-scoped resource as an existing resource when the application is deployed.
publishAsExistingInTenant(name: string | ParameterResource): IAzureResourcemethod
runAsExistingbuilderMarks the resource as an existing resource when the application is running.
runAsExisting(name: string | ParameterResource, resourceGroup?: string | ParameterResource): IAzureResourcemethod
runAsExistingInResourceGroupbuilderMarks the resource as an existing resource in a specific resource group and subscription when the application is running.
runAsExistingInResourceGroup(name: string | ParameterResource, resourceGroup: string | ParameterResource, subscription: string | ParameterResource): IAzureResourcemethod
runAsExistingInSubscriptionbuilderMarks the subscription-scoped resource as an existing resource when the application is running.
runAsExistingInSubscription(name: string | ParameterResource, subscription: string | ParameterResource): IAzureResourcemethod
runAsExistingInTenantbuilderMarks the current-tenant-scoped resource as an existing resource when the application is running.
runAsExistingInTenant(name: string | ParameterResource): IAzureResourcemethod
withAzureUserAssignedIdentitybuilderAssociates an Azure user-assigned identity with a compute resource
withAzureUserAssignedIdentity(identityResourceBuilder: AzureUserAssignedIdentityResource): IComputeResourcemethod
withLocationbuilderSets the location of the Azure environment resource.
withLocation(location: ParameterResource): AzureEnvironmentResourcemethod
withParameterbuilderAdds a Bicep parameter
withParameter(name: string, value?: string | string[] | ParameterResource | IResourceWithConnectionString | BicepOutputReference | ReferenceExpression | EndpointReference): AzureBicepResourcemethod
withResourceGroupbuilderSets the resource group name of the Azure environment resource.
withResourceGroup(resourceGroup: ParameterResource): AzureEnvironmentResource