Skip to content
DocsTry Aspire
DocsTry

ExistingAzureResourceAnnotation Constructors

ClassConstructors2 members
Represents a resource that is not managed by Aspire's provisioning or container management layer.
Initializes a new instance of the ExistingAzureResourceAnnotation class.
public sealed class ExistingAzureResourceAnnotation
{
public ExistingAzureResourceAnnotation(
object name,
object? resourceGroup = null)
{
// ...
}
}
nameobjectThe name of the existing resource.
resourceGroupobject?optionalThe name of the existing resource group, or null to use the current resource group.
Constructor(object, object?, object)Section titled Constructor(object, object?, object)
Initializes a new instance of the ExistingAzureResourceAnnotation class.
public sealed class ExistingAzureResourceAnnotation
{
public ExistingAzureResourceAnnotation(
object name,
object? resourceGroup,
object subscription)
{
// ...
}
}
nameobjectThe name of the existing resource.
resourceGroupobject?The name of the existing resource group, or null to use the current resource group.
subscriptionobjectThe subscription identifier associated with the resource group.