Skip to content

Add DocumentDB (mongoCluster) command models#1040

Merged
necusjz merged 1 commit into
Azure:mainfrom
amatarritamicrosoft:feature-documentDB
Jul 7, 2026
Merged

Add DocumentDB (mongoCluster) command models#1040
necusjz merged 1 commit into
Azure:mainfrom
amatarritamicrosoft:feature-documentDB

Conversation

@amatarritamicrosoft

Copy link
Copy Markdown
Member

Summary

Adds AAZ command models for az documentdb mongocluster (Microsoft.DocumentDB/mongoClusters, api-version 2026-06-01), the management-plane commands for Azure Cosmos DB for MongoDB (vCore).

These models back the corresponding azure-cli-extensions extension (documentdb).

Command tree

  • documentdb mongocluster create / update / show / delete / list / list-connection-strings / check-name-availability
  • documentdb mongocluster firewall-rule create / update / show / delete / list
  • documentdb mongocluster identity assign / remove / show (UserAssigned only)
  • documentdb mongocluster replica list / promote
  • documentdb mongocluster user create / update / show / delete / list

Design notes

  • Flattened arguments on create/update instead of JSON blobs: --admin-user/-u, --admin-password/-p, --tier, --storage-size, --storage-type, --shard-count, --high-availability, --data-api-mode, --auth-allowed-modes.
  • Core provisioning args are required on create, optional on update.
  • user create/update accept repeatable --role (singular option).
  • Private-endpoint / private-link commands intentionally omitted (covered by az network per current guidance).

Testing

Command models pass aaz-dev command-model verify. The generated extension has been live-tested end-to-end against Azure.

Generated AAZ command models for `az documentdb mongocluster`
(Microsoft.DocumentDB/mongoClusters, api-version 2026-06-01).

- create/update with flattened scalar arguments (admin-user/-password,
  tier, storage-size/-type, shard-count, high-availability, data-api-mode,
  auth-allowed-modes); core provisioning args required on create.
- Subcommands: firewall-rule, identity (UserAssigned), replica, user.
- user create/update use repeatable --role (singular option).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@necusjz necusjz marked this pull request as ready for review July 7, 2026 06:39
@necusjz necusjz merged commit 20912e4 into Azure:main Jul 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants