Warm tip: This article is reproduced from stackoverflow.com, please click
azure azure-cli azure-cosmosdb azure-sdk

Is it possible to create a new CosmosDB account using @azure/cosmos sdk?

发布于 2020-04-23 15:33:09

Pretty sure this is a trivial question but couldn`t find any clue on the @azure/cosmos package documentation. I'm searching for something like we have in Azure CLI, this is a sample, but in @azure/cosmos package. More help of what I want in az cosmosdb create command documentation.

Questioner
jaloplo
Viewed
29
Matias Quaranta 2020-02-11 07:27

You are pointing to the Cosmos DB JS SQL SDK, which as the rest of the Cosmos DB SDKs (.NET, Java, Python) is used for Data Plane operations.

Creation of accounts is a Management operation.