Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Aspire.Hosting.Azure

Official
📦 Aspire.Hosting.Azurev17.0.0
Import pathapphost/modules/aspire
28Functions
9Types

Handles

Functions

AzureResource

methodAsExistingbuilder
Marks the resource as an existing resource in both run and publish modes.
AsExisting(name any, options ...*AsExistingOptions) AzureResource
methodAsExistingInResourceGroupbuilder
Marks the resource as an existing resource in a specific resource group and subscription in both run and publish modes.
AsExistingInResourceGroup(name any, resourceGroup any, subscription any) AzureResource
methodAsExistingInSubscriptionbuilder
Marks the subscription-scoped resource as an existing resource in both run and publish modes.
AsExistingInSubscription(name any, subscription any) AzureResource
methodAsExistingInTenantbuilder
Marks the current-tenant-scoped resource as an existing resource in both run and publish modes.
AsExistingInTenant(name any) AzureResource
methodClearDefaultRoleAssignmentsbuilder
Clears all default role assignments for the specified Azure resource.
ClearDefaultRoleAssignments() AzureResource
methodGetBicepIdentifier
Gets the Bicep identifier for the Azure resource.
GetBicepIdentifier() (string, error)
methodIsExisting
Determines whether the Azure resource is marked as existing.
IsExisting() (bool, error)
methodPublishAsConnectionStringbuilder
Changes the resource to be published as a connection string reference in the manifest.
PublishAsConnectionString() AzureResource
methodPublishAsExistingbuilder
Marks the resource as an existing resource when the application is deployed.
PublishAsExisting(name any, options ...*PublishAsExistingOptions) AzureResource
methodPublishAsExistingInResourceGroupbuilder
Marks the resource as an existing resource in a specific resource group and subscription when the application is deployed.
PublishAsExistingInResourceGroup(name any, resourceGroup any, subscription any) AzureResource
methodPublishAsExistingInSubscriptionbuilder
Marks the subscription-scoped resource as an existing resource when the application is deployed.
PublishAsExistingInSubscription(name any, subscription any) AzureResource
methodPublishAsExistingInTenantbuilder
Marks the current-tenant-scoped resource as an existing resource when the application is deployed.
PublishAsExistingInTenant(name any) AzureResource
methodRunAsExistingbuilder
Marks the resource as an existing resource when the application is running.
RunAsExisting(name any, options ...*RunAsExistingOptions) AzureResource
methodRunAsExistingInResourceGroupbuilder
Marks the resource as an existing resource in a specific resource group and subscription when the application is running.
RunAsExistingInResourceGroup(name any, resourceGroup any, subscription any) AzureResource
methodRunAsExistingInSubscriptionbuilder
Marks the subscription-scoped resource as an existing resource when the application is running.
RunAsExistingInSubscription(name any, subscription any) AzureResource
methodRunAsExistingInTenantbuilder
Marks the current-tenant-scoped resource as an existing resource when the application is running.
RunAsExistingInTenant(name any) AzureResource

Exported values

AzureSubnetServiceDelegations.AppServiceEnvironmentsstring
= "Microsoft.Web/serverFarms"
Delegation for Azure App Service environments.
AzureSubnetServiceDelegations.ApplicationGatewayForContainersstring
= "Microsoft.ServiceNetworking/trafficControllers"
Delegation for Azure Application Gateway for Containers.
AzureSubnetServiceDelegations.ContainerAppEnvironmentsstring
= "Microsoft.App/environments"
Delegation for Azure Container Apps environments.
AzureSubnetServiceDelegations.ContainerInstancesstring
= "Microsoft.ContainerInstance/containerGroups"
Delegation for Azure Container Instances (ACI), which allows container groups to be deployed into the subnet.