Skip to content

Regenerate DocumentDB extension for 2026-06-15-preview - #10353

Open
amatarritamicrosoft wants to merge 3 commits into
Azure:mainfrom
amatarritamicrosoft:users/amatarrita/docdb-0615
Open

amatarritamicrosoft wants to merge 3 commits into
Azure:mainfrom
amatarritamicrosoft:users/amatarrita/docdb-0615

Conversation

@amatarritamicrosoft

@amatarritamicrosoft amatarritamicrosoft commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes
⚠️ None
⚠️Azure CLI Extensions Breaking Change Test
⚠️documentdb
rule cmd_name rule_message suggest_message
⚠️ 1010 - ParaPropUpdate documentdb mongocluster replica promote cmd documentdb mongocluster replica promote update parameter promote_option: updated property choices from ['Forced'] to ['Forced', 'Planned']

Summary

  • regenerate the complete Azure DocumentDB command surface with 2026-06-15-preview
  • publish the extension as Beta 1.1.0b1 and mark all generated and custom commands as Preview
  • add planned replica promotion while preserving PATCH update behavior, identity list, confirmations, Microsoft Entra naming, source-cluster validation, payload shaping, and empty-response LRO handling
  • update playback recordings for the Preview API and current Key Vault management API

AAZ dependency

Validation

  • AAZ command-model verification passed
  • Pylint and Flake8 passed
  • Azure CLI extension linter passed
  • extension index tests: 7 passed, 2 skipped
  • DocumentDB playback suite: 11 passed, including CMK, Forced promotion, and Planned promotion
  • wheel metadata verified as 1.1.0b1, Beta, and Preview
  • three independent reviews found no blocking issues

Use the 2026-06-15-preview API for replica promotion and cover Planned and Forced options independently.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 46bb57cf-0490-4f99-a750-27ca921e5d89
Move the complete command surface to 2026-06-15-preview, release 1.1.0b1 as Beta, and preserve the existing custom command behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 46bb57cf-0490-4f99-a750-27ca921e5d89
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi amatarritamicrosoft,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified, and validation coverage is complete.

Pull request overview

Regenerates the DocumentDB extension for the 2026-06-15-preview API, publishes Beta 1.1.0b1, and adds planned replica promotion support.

Changes:

  • Updates generated commands, custom logic, metadata, and recordings.
  • Adds planned promotion tests and documentation.
  • Marks the extension and command surface as Preview.
File summaries
File Summary
src/documentdb/setup.py Updates version and release classification.
src/documentdb/README.md Documents Preview API and promotion modes.
src/documentdb/HISTORY.rst Adds release notes.
src/documentdb/azext_documentdb/tests/latest/test_documentdb.py Adds planned promotion coverage.
src/documentdb/azext_documentdb/tests/latest/recordings/test_documentdb_mongocluster_negative.yaml Updates Preview API recordings.
src/documentdb/azext_documentdb/custom.py Updates custom API usage and promotion handling.
src/documentdb/azext_documentdb/azext_metadata.json Marks the extension as Preview.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/replica/_promote.py Adds replica promotion command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/replica/_list.py Regenerates replica listing command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/replica/__cmd_group.py Regenerates replica command group.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/identity/_wait.py Regenerates identity wait command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/identity/_show.py Regenerates identity show command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/identity/_remove.py Regenerates identity removal command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/identity/_list.py Regenerates identity listing command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/identity/_assign.py Regenerates identity assignment command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/identity/__cmd_group.py Regenerates identity command group.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/firewall_rule/_wait.py Regenerates firewall rule wait command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/firewall_rule/_update.py Regenerates firewall rule update command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/firewall_rule/_show.py Regenerates firewall rule show command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/firewall_rule/_list.py Regenerates firewall rule listing command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/firewall_rule/_delete.py Regenerates firewall rule deletion command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/firewall_rule/_create.py Regenerates firewall rule creation command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/firewall_rule/__cmd_group.py Regenerates firewall rule command group.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/entra_user/_wait.py Regenerates Entra user wait command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/entra_user/_show.py Regenerates Entra user show command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/entra_user/_remove.py Regenerates Entra user removal command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/entra_user/_list.py Regenerates Entra user listing command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/entra_user/_assign.py Regenerates Entra user assignment command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/entra_user/__cmd_group.py Regenerates Entra user command group.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_wait.py Regenerates cluster wait command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_update.py Regenerates cluster update command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_show.py Regenerates cluster show command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_list.py Regenerates cluster listing command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_list_connection_strings.py Regenerates connection string listing command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_delete.py Regenerates cluster deletion command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_create.py Regenerates cluster creation command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/_check_name_availability.py Regenerates name availability command.
src/documentdb/azext_documentdb/aaz/latest/documentdb/mongocluster/__cmd_group.py Regenerates cluster command group.
src/documentdb/azext_documentdb/aaz/latest/documentdb/__cmd_group.py Regenerates the DocumentDB command group.
Review details
  • Files reviewed: 39/49 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@yonzhan

Copy link
Copy Markdown
Collaborator

DocumentDB

Restore the Key Vault management API version expected by the Azure CLI version used in PR integration jobs across supported Python versions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 46bb57cf-0490-4f99-a750-27ca921e5d89

@sachim sachim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants