# RunAsEmulator

- Module: [Aspire.Hosting.Azure.CosmosDB](/reference/api/go/aspire.hosting.azure.cosmosdb.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`AzureCosmosDBResource`](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Configures the Azure Cosmos DB resource to run using the local Linux-based (vNext) emulator

## Remarks

This version of the package defaults to the tag of the / container image.

## Definition

```go
func (AzureCosmosDBResource) RunAsEmulator(options ...*RunAsEmulatorOptions) AzureCosmosDBResource
```

## Parameters

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

## Options

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

- `ConfigureContainer` (`func(obj AzureCosmosDBEmulatorResource)`) `callback` -- Callback that exposes underlying container used for emulation to allow for customization.

## Returns

[`AzureCosmosDBResource`](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbresource.md) -- The resource builder.

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

## Applies to

- [`AzureCosmosDBResource`](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbresource.md)
