# ExistingAzureResourceAnnotation Constructors

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [ExistingAzureResourceAnnotation](/reference/api/csharp/aspire.hosting.azure/existingazureresourceannotation.md)
- Kind: `Constructors`
- Members: `1`

Represents a resource that is not managed by Aspire's provisioning or container management layer.

## ExistingAzureResourceAnnotation(object, object?)

- Name: `Constructor(object, object?)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/ExistingAzureResourceAnnotation.cs#L12-L28)

Represents a resource that is not managed by Aspire's provisioning or container management layer.

```csharp
public sealed class ExistingAzureResourceAnnotation
{
    public ExistingAzureResourceAnnotation(
        object name,
        object? resourceGroup = null)
    {
        // ...
    }
}
```

## Parameters

- `name` (`object`)
- `resourceGroup` (`object?`) `optional`
