# AzureStorageExplorerResource

- Module: [CommunityToolkit.Aspire.Hosting.Azure.Extensions](/reference/api/typescript/communitytoolkit.aspire.hosting.azure.extensions.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

A resource that represents an Azure Storage Explorer container.

## Definition

```typescript
interface AzureStorageExplorerResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  readonly host: EndpointReferenceExpression;
  readonly port: EndpointReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  withHostPort(port: number): AzureStorageExplorerResource;
}
```

## Properties

- `host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the Azure Storage Explorer instance.

## Methods

- [withHostPort](/reference/api/typescript/communitytoolkit.aspire.hosting.azure.extensions/azurestorageexplorerresource/withhostport.md) -- `method` -- Configures the host port that the Azure Storage Explorer resource is exposed on instead of using randomly assigned port.
    ```typescript
  withHostPort(port: number): AzureStorageExplorerResource
  ```
