Skip to content

{Cosmos DB} az cosmosdb: Add support for API version 2026-03-15 - #33303

Merged
Qi Pan (Pan-Qi) merged 7 commits into
Azure:devfrom
pjohari-ms:cdb0315stable
Jul 17, 2026
Merged

{Cosmos DB} az cosmosdb: Add support for API version 2026-03-15#33303
Qi Pan (Pan-Qi) merged 7 commits into
Azure:devfrom
pjohari-ms:cdb0315stable

Conversation

@pjohari-ms

@pjohari-ms pjohari-ms commented Apr 30, 2026

Copy link
Copy Markdown
Member

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Apr 30, 2026

Copy link
Copy Markdown
️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.14
️✔️acs
️✔️latest
️✔️3.12
️✔️3.14
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.14
️✔️ams
️✔️latest
️✔️3.12
️✔️3.14
️✔️apim
️✔️latest
️✔️3.12
️✔️3.14
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.14
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️aro
️✔️latest
️✔️3.12
️✔️3.14
️✔️backup
️✔️latest
️✔️3.12
️✔️3.14
️✔️batch
️✔️latest
️✔️3.12
️✔️3.14
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.14
️✔️billing
️✔️latest
️✔️3.12
️✔️3.14
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.14
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.14
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.14
️✔️config
️✔️latest
️✔️3.12
️✔️3.14
️✔️configure
️✔️latest
️✔️3.12
️✔️3.14
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.14
️✔️container
️✔️latest
️✔️3.12
️✔️3.14
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.14
️✔️core
️✔️latest
️✔️3.12
️✔️3.14
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.14
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.14
️✔️dls
️✔️latest
️✔️3.12
️✔️3.14
️✔️dms
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.14
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.14
️✔️find
️✔️latest
️✔️3.12
️✔️3.14
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.14
️✔️identity
️✔️latest
️✔️3.12
️✔️3.14
️✔️iot
️✔️latest
️✔️3.12
️✔️3.14
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.14
️✔️lab
️✔️latest
️✔️3.12
️✔️3.14
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️maps
️✔️latest
️✔️3.12
️✔️3.14
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.14
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.14
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.14
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.14
️✔️network
️✔️latest
️✔️3.12
️✔️3.14
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.14
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.14
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.14
️✔️profile
️✔️latest
️✔️3.12
️✔️3.14
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.14
️✔️redis
️✔️latest
️✔️3.12
️✔️3.14
️✔️relay
️✔️latest
️✔️3.12
️✔️3.14
️✔️resource
️✔️latest
️✔️3.12
️✔️3.14
️✔️role
️✔️latest
️✔️3.12
️✔️3.14
️✔️search
️✔️latest
️✔️3.12
️✔️3.14
️✔️security
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.14
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.14
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.14
️✔️sql
️✔️latest
️✔️3.12
️✔️3.14
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.14
️✔️storage
️✔️latest
️✔️3.12
️✔️3.14
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.14
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.14
️✔️util
️✔️latest
️✔️3.12
️✔️3.14
️✔️vm
️✔️latest
️✔️3.12
️✔️3.14

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Apr 30, 2026

Copy link
Copy Markdown
⚠️AzureCLI-BreakingChangeTest
⚠️cosmosdb
rule cmd_name rule_message suggest_message
⚠️ 1004 - CmdPropRemove cosmosdb fleet create cmd cosmosdb fleet create removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleet delete cmd cosmosdb fleet delete removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleet list cmd cosmosdb fleet list removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleet show cmd cosmosdb fleet show removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace account create cmd cosmosdb fleetspace account create removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace account delete cmd cosmosdb fleetspace account delete removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace account list cmd cosmosdb fleetspace account list removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace account show cmd cosmosdb fleetspace account show removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace create cmd cosmosdb fleetspace create removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace delete cmd cosmosdb fleetspace delete removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace list cmd cosmosdb fleetspace list removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace show cmd cosmosdb fleetspace show removed property is_preview
⚠️ 1004 - CmdPropRemove cosmosdb fleetspace update cmd cosmosdb fleetspace update removed property is_preview
⚠️ 1006 - ParaAdd cosmosdb restore cmd cosmosdb restore added parameter disable_local_auth

@yonzhan

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions

Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

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.

Pull request overview

Updates Azure CLI’s CosmosDB management SDK dependency to a newer version, presumably to pick up support for a newer CosmosDB ARM API version.

Changes:

  • Bump azure-mgmt-cosmosdb from 9.9.0 to 9.10.0 in setup.py.
  • Bump azure-mgmt-cosmosdb from 9.9.0 to 9.10.0 in OS-specific pinned requirements (Windows/Linux/macOS).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/azure-cli/setup.py Updates the CosmosDB management SDK dependency version used by the CLI package.
src/azure-cli/requirements.py3.windows.txt Updates the pinned CosmosDB management SDK version for Windows builds.
src/azure-cli/requirements.py3.Linux.txt Updates the pinned CosmosDB management SDK version for Linux builds.
src/azure-cli/requirements.py3.Darwin.txt Updates the pinned CosmosDB management SDK version for macOS builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/azure-cli/setup.py Outdated
Comment on lines 82 to 84
'azure-mgmt-containerservice~=41.1.0',
'azure-mgmt-cosmosdb==9.9.0',
'azure-mgmt-cosmosdb==9.10.0',
'azure-mgmt-datalake-store~=1.1.0b1',

Copilot AI Apr 30, 2026

Copy link

Choose a reason for hiding this comment

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

The PR title indicates CosmosDB API version "2026-03-15" updates, but this diff only bumps the azure-mgmt-cosmosdb dependency. Please either (a) update the PR title/description to reflect that this is a dependency bump, or (b) include the actual code changes that adopt the new API version (and note where it is used/tested).

Copilot uses AI. Check for mistakes.
@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

- Fix Restorable*Operations.list() keyword-only rid args in custom.py

- Fix Mongo role/user PascalCase body serialization via _convert_mongo_{privileges,roles}

- Fix _transformers network-rule output for typespec models (core todict)

- Add --disable-local-auth to 'cosmosdb restore'; re-record latest test cassettes

- Co-locate private_endpoint account with PE region (eastus2) to fix restore/PE 404

- Skip service-deprecated analytical-storage-on-create tests and RP-blocked XRR/gremlin-db-restore scenarios
@pjohari-ms
pjohari-ms requested review from a team as code owners July 14, 2026 00:44
# Conflicts:
#	src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_fleet_fleetspace_fleetspaceAccount.yaml
#	src/azure-cli/setup.py
@yonzhan

Copy link
Copy Markdown
Collaborator

CosmosDB

@Pan-Qi

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

@Pan-Qi

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

@pjohari-ms pjohari-ms changed the title [CosmosDB][DoNotMerge] API Version 2026-03-15 updates [CosmosDB] API Version 2026-03-15 updates Jul 15, 2026
@pjohari-ms pjohari-ms changed the title [CosmosDB] API Version 2026-03-15 updates [Cosmos DB] Migrate to API version 2026-03-15 Jul 15, 2026
@pjohari-ms pjohari-ms changed the title [Cosmos DB] Migrate to API version 2026-03-15 [Cosmos DB] az cosmosdb: Add support for API version 2026-03-15. Jul 15, 2026
@Pan-Qi

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

@pjohari-ms pjohari-ms changed the title [Cosmos DB] az cosmosdb: Add support for API version 2026-03-15. [Cosmos DB] az cosmosdb: Add support for API version 2026-03-15 Jul 17, 2026
@Pan-Qi

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

@Pan-Qi
Qi Pan (Pan-Qi) merged commit 51bcb92 into Azure:dev Jul 17, 2026
50 checks passed
pjohari-ms added a commit to pjohari-ms/azure-cli that referenced this pull request Jul 28, 2026
@necusjz Ethan Yang (necusjz) changed the title [Cosmos DB] az cosmosdb: Add support for API version 2026-03-15 {Cosmos DB} az cosmosdb: Add support for API version 2026-03-15 Jul 28, 2026
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.

6 participants