# ExistingAzureResourceAnnotation

- Kind: `class`
- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/ExistingAzureResourceAnnotation.cs)
- Implements: `IResourceAnnotation`

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

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class ExistingAzureResourceAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [ExistingAzureResourceAnnotation(object, object?)](/reference/api/csharp/aspire.hosting.azure/existingazureresourceannotation/constructors.md#constructor-object-object) -- Represents a resource that is not managed by Aspire's provisioning or container management layer.

## Properties

- [Name](/reference/api/csharp/aspire.hosting.azure/existingazureresourceannotation/properties.md#name) : `object` `get` -- Gets the name of the existing resource.
- [ResourceGroup](/reference/api/csharp/aspire.hosting.azure/existingazureresourceannotation/properties.md#resourcegroup) : `object?` `get` -- Gets the name of the existing resource group. If `null`, use the current resource group.
