Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request for Azure CLI: Support for Azure Cosmos DB for MongoDB (vCore) #30957

Open
carobitap opened this issue Mar 5, 2025 · 1 comment
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.

Comments

@carobitap
Copy link

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:

cli.azure.cli.core.azclierror: (ResourceNotFound)

Additional Information

  • I have admin permissions for the resource.
  • The cluster exists and is correctly configured.
  • I am in the correct subscription.

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:

  • Create databases
  • Delete databases
  • List databases
  • Upload documents
  • Other MongoDB-related management tasks

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Mar 5, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 5, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Service Attention This issue is responsible by Azure service team. CosmosDB az cosmosdb labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants