# AzureStorageResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Storage](/reference/api/csharp/aspire.hosting.azure.storage.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.Storage/AzureStorageResource.cs)
- Inherits: `AzureProvisioningResource`
- Implements: `IResource`, `IResourceWithEndpoints`, `IAzureNspAssociationTarget`, `IResourceWithAzureFunctionsConfig`

Represents an Azure Storage resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureStorageResource
    : Aspire.Hosting.Azure.AzureProvisioningResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.Azure.IAzureNspAssociationTarget,
      Aspire.Hosting.Azure.IResourceWithAzureFunctionsConfig
{
    // ...
}
```

## Constructors

- [AzureStorageResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Represents an Azure Storage resource.

## Properties

- [BlobEndpoint](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#blobendpoint) : `BicepOutputReference` `get` -- Gets the "blobEndpoint" output reference from the bicep template for the Azure Storage resource.
- [BlobUriExpression](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#bloburiexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the blob storage service.
- [DataLakeEndpoint](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#datalakeendpoint) : `BicepOutputReference` `get` -- Gets the "dataLakeEndpoint" output reference from the bicep template for the Azure Storage resource.
- [DataLakeUriExpression](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#datalakeuriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the data lake storage service.
- [Id](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#id) : `BicepOutputReference` `get` -- Gets the "id" output reference for the resource.
- [IsEmulator](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#isemulator) : `bool` `get` -- Gets a value indicating whether the Azure Storage resource is running in the local emulator.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the "name" output reference for the resource.
- [QueueEndpoint](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#queueendpoint) : `BicepOutputReference` `get` -- Gets the "queueEndpoint" output reference from the bicep template for the Azure Storage resource.
- [QueueUriExpression](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#queueuriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the queue storage service.
- [TableEndpoint](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#tableendpoint) : `BicepOutputReference` `get` -- Gets the "tableEndpoint" output reference from the bicep template for the Azure Storage resource.
- [TableUriExpression](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/properties.md#tableuriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the table storage service.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.storage/azurestorageresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource`
