# FlociAzureContainerResource.WithStorage

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/go/communitytoolkit.aspire.hosting.floci.md)
- Defined on: [FlociAzureContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md)
- Version: `13.6.1`
- Kind: `method`

Adds a Storage child resource to the Floci Azure emulator

## Remarks

Reference the returned resource with Aspire's standard `WithReference` API to inject its
storage connection string (e.g. for `AddAzureBlobServiceClient`). The resource has no
health check of its own; it reports the parent emulator's health, so dependents can
`WaitFor` it directly.

## Definition

```go
type FlociAzureContainerResource interface {
    // ... omitted for brevity
    WithStorage(options ...*WithStorageOptions) FlociAzureStorageResource
}
```

## Signature

```go
WithStorage(options ...*WithStorageOptions) FlociAzureStorageResource
```

## Parameters

- `options` (`...*WithStorageOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithStorageOptions` argument.

- `Name` (`*string`) -- The name of the Storage resource (default: `storage`).

## Returns

[`FlociAzureStorageResource`](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociazurestorageresource.md) -- A reference to the `IResourceBuilder` for further configuration.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [FlociAzureContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md) -- `handle`
