# AzureStorageEmulatorResource

- Module: [Aspire.Hosting.Azure.Sql](/reference/api/typescript/aspire.hosting.azure.sql.md)
- Version: `13.2.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureStorageEmulatorResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  withApiVersionCheck(enable?: boolean): AzureStorageEmulatorResource;
  withBlobPort(port: number): AzureStorageEmulatorResource;
  withDataBindMount(
      path?: string,
      isReadOnly?: boolean): AzureStorageEmulatorResource;
  withDataVolume(
      name?: string,
      isReadOnly?: boolean): AzureStorageEmulatorResource;
  withQueuePort(port: number): AzureStorageEmulatorResource;
  withTablePort(port: number): AzureStorageEmulatorResource;
}
```

## Methods

- [withApiVersionCheck](/reference/api/typescript/aspire.hosting.azure.sql/azurestorageemulatorresource/withapiversioncheck.md) -- `method` -- Configures whether the emulator checks API version validity
    ```typescript
  withApiVersionCheck(enable?: boolean): AzureStorageEmulatorResource
  ```
- [withBlobPort](/reference/api/typescript/aspire.hosting.azure.sql/azurestorageemulatorresource/withblobport.md) -- `method` -- Sets the host port for blob requests on the storage emulator
    ```typescript
  withBlobPort(port: number): AzureStorageEmulatorResource
  ```
- [withDataBindMount](/reference/api/typescript/aspire.hosting.azure.sql/azurestorageemulatorresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to an Azure Storage emulator resource
    ```typescript
  withDataBindMount(path?: string, isReadOnly?: boolean): AzureStorageEmulatorResource
  ```
- [withDataVolume](/reference/api/typescript/aspire.hosting.azure.sql/azurestorageemulatorresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to an Azure Storage emulator resource
    ```typescript
  withDataVolume(name?: string, isReadOnly?: boolean): AzureStorageEmulatorResource
  ```
- [withQueuePort](/reference/api/typescript/aspire.hosting.azure.sql/azurestorageemulatorresource/withqueueport.md) -- `method` -- Sets the host port for queue requests on the storage emulator
    ```typescript
  withQueuePort(port: number): AzureStorageEmulatorResource
  ```
- [withTablePort](/reference/api/typescript/aspire.hosting.azure.sql/azurestorageemulatorresource/withtableport.md) -- `method` -- Sets the host port for table requests on the storage emulator
    ```typescript
  withTablePort(port: number): AzureStorageEmulatorResource
  ```
