# AzureCosmosDBResource.RunAsClassicEmulator

- Module: [Aspire.Hosting.Azure.CosmosDB](/reference/api/go/aspire.hosting.azure.cosmosdb.md)
- Defined on: [AzureCosmosDBResource](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbresource.md)
- Version: `17.0.0`
- Kind: `method`

Configures the Azure Cosmos DB resource to run using the classic emulator

## Remarks

When using the classic Azure Cosmos DB emulator, the container requires a TLS/SSL certificate.
For more information, see .
This version of the package defaults to the tag of the / container image.

## Definition

```go
type AzureCosmosDBResource interface {
    // ... omitted for brevity
    RunAsClassicEmulator(options ...*RunAsClassicEmulatorOptions) AzureCosmosDBResource
}
```

## Signature

```go
RunAsClassicEmulator(options ...*RunAsClassicEmulatorOptions) AzureCosmosDBResource
```

## Parameters

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

## Options

Optional parameters are passed in a trailing `options ...*RunAsClassicEmulatorOptions` 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()`.

## Defined on

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