AzureResource.PublishAsExistingInSubscription

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

Signature

methodPublishAsExistingInSubscriptionbuilder
Marks the subscription-scoped resource as an existing resource when the application is deployed.
PublishAsExistingInSubscription(
name any,
subscription any,
) AzureResource
nameanyThe name of the existing resource as a string or parameter resource.
subscriptionanyThe subscription identifier containing the resource as a string or parameter resource.
AzureResource

The resource builder with the existing resource annotation added.

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

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: