# AzureStorageResource Constructors

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

Represents an Azure Storage resource.

## AzureStorageResource(string, Action<AzureResourceInfrastructure>)

- Name: `Constructor(string, Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Storage/AzureStorageResource.cs#L18-L38)

Represents an Azure Storage resource.

```csharp
public class AzureStorageResource
{
    public AzureStorageResource(
        string name,
        Action<AzureResourceInfrastructure> configureInfrastructure)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  Callback to configure the Azure resources.
