Feature Request for Azure CLI: Support for Azure Cosmos DB for MongoDB (vCore) #30957
Labels
Auto-Assign
Auto assign by bot
CosmosDB
az cosmosdb
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Problem Statement
Currently, the Azure CLI only supports commands for "Azure Cosmos DB accounts" (such as
az cosmosdb mongodb database create -a my-account -g my-rg -n some-db-name
). However, when attempting to use the same commands for Azure Cosmos DB for MongoDB (vCore) clusters, I receive the following error:Additional Information
Despite these factors, the CLI commands do not work for a MongoDB vCore cluster, which limits my ability to automate tasks like database creation and document uploads in a CI/CD pipeline.
Requested Solution
It would be incredibly useful to extend the CLI to support the following actions for Azure Cosmos DB for MongoDB (vCore) clusters:
By adding support for these commands, it would enable seamless integration with Azure DevOps or other automation pipelines that require database management functionality.
Considered Alternatives
While it is possible to use
mongosh
to manually create databases and documents, this is not practical for a CI/CD pipeline, especially one where the pipeline itself does not have direct access to the database, but only to the resource in the Azure portal.Context for the Request
I’m currently working on a pipeline that interacts with the resource in the portal, but the lack of CLI support for MongoDB (vCore) is a roadblock. Without the ability to automate tasks such as database creation, it becomes much harder to integrate MongoDB operations within our existing infrastructure.
The text was updated successfully, but these errors were encountered: