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.
Asked
Active
Viewed 123 times
1

jaloplo
- 941
- 2
- 12
- 32
1 Answers
3
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.
- You can use ARM templates
- You can use the Azure CLI, which you already know
- You can use Powershell
- There are Azure Management Libraries for JS but they don't seem to include Cosmos DB yet. There are .NET versions though.

Matias Quaranta
- 13,907
- 1
- 22
- 47