Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RunAsExisting

Method
📦 Aspire.Hosting.Azure v17.0.0
func (AzureResource) RunAsExisting(
name any,
options ...*RunAsExistingOptions,
) AzureResource

Signature

methodRunAsExistingbuilder
Marks the resource as an existing resource when the application is running.
RunAsExisting(
name any,
options ...*RunAsExistingOptions,
) AzureResource
nameanyThe name of the existing resource as a string or parameter resource.
options...*RunAsExistingOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*RunAsExistingOptions argument.

ResourceGroupanyThe name of the existing 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: