[CosmosDB] Create command doesn't support the full list of DB kinds
See original GitHub issueDescription
The az cosmosdb create
command doesn’t seem to support the full set of database “kinds” that are available in the Azure portal. Namely, graph/gremlin, and key-value/Azure Tables aren’t available via the --kind
flag.
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: nightly
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here: nightly
OS Version: What OS and version are you using?
Answer here: macOS
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Manage Azure Cosmos DB for NoSQL resources using Azure ...
This command allows you to add and remove regions but does not allow you to modify failover priorities or trigger a manual failover....
Read more >How to specify a 10GB fixed size when creating a new ...
I'm trying to figure out how to specify a 10GB fixed size when creating a new Cosmos DB collection using the Azure CLI....
Read more >Querying in Azure Cosmos DB
Azure Cosmos DB supports strict JSON items only. The type system and expressions are restricted to deal only with JSON types. For more...
Read more >@azure/cosmos - npm
Microsoft Azure Cosmos DB Service Node.js SDK for SQL API. ... If you do not provide an id , the SDK will generate...
Read more >Azure Cosmos DB SQL API client library for Python - PyPI
Azure Cosmos DB is a globally distributed, multi-model database service ... a Cosmos DB SQL API account, you can create one with this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Shouldn’t this be solved by now?
Until there is an officially supported command, an unofficial workaround could be to create the DB with
--kind GlobalDocumentDB
and then useaz resource tag
to create a tag calleddefaultExperience
with valueTable
orGraph
. I guess this may stop working at any time, but based on information described at https://blog.spectologic.com/2017/06/30/digging-into-cosmosdb-storage/ this seems to be the way how the Azure portal does it today.