Skip to content
DocsTry Aspire
DocsTry

AzureCosmosDBEmulatorResource

Handle
📦 Aspire.Hosting.Azure.CosmosDB v13.4.0
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

methodwithDataExplorerbuilder
Configures the Azure Cosmos DB preview emulator to expose the Data Explorer endpoint.
withDataExplorer(port?: number): AzureCosmosDBEmulatorResource
portnumberoptional
AzureCosmosDBEmulatorResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to an Azure Cosmos DB emulator resource.
withDataVolume(name?: string): AzureCosmosDBEmulatorResource
namestringoptional
AzureCosmosDBEmulatorResource
methodwithGatewayPortbuilder
Configures the gateway port for the Azure Cosmos DB emulator.
withGatewayPort(port: number): AzureCosmosDBEmulatorResource
portnumber
AzureCosmosDBEmulatorResource
methodwithPartitionCountbuilder
Configures the partition count for the Azure Cosmos DB emulator.
withPartitionCount(count: number): AzureCosmosDBEmulatorResource
countnumber
AzureCosmosDBEmulatorResource