Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RunAsExistingInResourceGroup

Method
📦 Aspire.Hosting.Azure v17.0.0
func (AzureResource) RunAsExistingInResourceGroup(
name any,
resourceGroup any,
subscription any,
) AzureResource

Signature

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
nameanyThe name of the existing resource as a string or parameter resource.
resourceGroupanyThe resource group containing the existing resource as a string or parameter resource.
subscriptionanyThe subscription identifier containing the resource group as a string or parameter resource.
AzureResource

The resource builder with the existing resource annotation added.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: