# AzureRedisResource Constructors

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

Represents an Azure Redis resource.

## AzureRedisResource(RedisResource, Action<AzureResourceInfrastructure>)

- Name: `Constructor(RedisResource, Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Redis/AzureRedisResource.cs#L15-L17)

Represents an Azure Redis resource.

```csharp
public class AzureRedisResource
{
    public AzureRedisResource(
        RedisResource innerResource,
        Action<AzureResourceInfrastructure> configureInfrastructure)
    {
        // ...
    }
}
```

## Parameters

- `innerResource` (`RedisResource`)
  The inner resource.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  Callback to configure the Azure resources.
