Skip to content
Docs Try Aspire

AzureCosmosDBEmulatorResource

Handle TypeScript
📦 Aspire.Hosting.Azure.CosmosDB v13.2.0-preview.1.26159.1
interface AzureCosmosDBEmulatorResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
withDataExplorer(port?: number): AzureCosmosDBEmulatorResource;
withDataVolume(name?: string): AzureCosmosDBEmulatorResource;
withGatewayPort(port: number): AzureCosmosDBEmulatorResource;
withPartitionCount(count: number): AzureCosmosDBEmulatorResource;
}

Methods

method withDataExplorer builder
Exposes the Data Explorer endpoint for the preview emulator
withDataExplorer(port?: number): AzureCosmosDBEmulatorResource
port number optional
AzureCosmosDBEmulatorResource
method withDataVolume builder
Adds a named volume for the data folder to an Azure Cosmos DB emulator resource
withDataVolume(name?: string): AzureCosmosDBEmulatorResource
name string optional
AzureCosmosDBEmulatorResource
method withGatewayPort builder
Sets the host port for the Cosmos DB emulator gateway endpoint
withGatewayPort(port: number): AzureCosmosDBEmulatorResource
port number
AzureCosmosDBEmulatorResource
method withPartitionCount builder
Sets the partition count for the Azure Cosmos DB emulator
withPartitionCount(count: number): AzureCosmosDBEmulatorResource
count number
AzureCosmosDBEmulatorResource