Watch Aspire live streamsDocsTry Aspire

asExisting

Method
📦 Aspire.Hosting.Azure v13.6.0
interface AzureBicepResource {
// ... 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

Applies to

This method applies to the following types: