Watch Aspire live streamsDocsTry Aspire

IAzureResource.asExisting

Method
📦 Aspire.Hosting.Azure v13.6.0
interface IAzureResource {
// ... omitted for brevity
asExisting(
name: string | ParameterResource,
resourceGroup?: string | ParameterResource): IAzureResource;
}

Signature

methodasExistingbuilder
Marks the resource as an existing resource in both run and publish modes.
asExisting(
name: string | ParameterResource,
resourceGroup?: string | ParameterResource): IAzureResource
namestring | ParameterResource
resourceGroupstring | ParameterResourceoptional
IAzureResource

Defined on

This method is defined on the following type: