Fix database and container creation on serverless accounts - #222
Mike Krüger (mkrueger) wants to merge 7 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Code Coverage OverviewLanguages: C# C# / code-coverage/dotnetThe overall line coverage in commit 0311a6b in the Show a line coverage summary of the most impacted files.
Updated |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
One or more issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Fixes serverless database/container creation by omitting throughput when unspecified and rejecting explicit throughput settings, while preserving provisioned-account defaults.
Changes:
- Added serverless detection and ARM payload handling.
- Added data-plane retry logic and actionable errors.
- Updated tests, documentation, localization, and smoke-test guidance.
| File | Description |
|---|---|
| README.md | Updated as part of this pull request. |
| l10n/CosmosDBShell.json | Updated as part of this pull request. |
| docs/mcp.md | Updated as part of this pull request. |
| docs/commands.md | Updated as part of this pull request. |
| CosmosDBShell/lang/en.ftl | Updated as part of this pull request. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/ServerlessThroughputNotSupportedException.cs | Updated as part of this pull request. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/DataPlaneCosmosResourceOperations.cs | Updated as part of this pull request. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/CreationThroughput.cs | Updated as part of this pull request. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/CosmosArmResourceProvider.cs | Updated as part of this pull request. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/MakeDbCommand.cs | Updated as part of this pull request. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/MakeContainerCommand.cs | Updated as part of this pull request. |
| CosmosDBShell.Tests/Integration/ServerlessCreationSmokeTests.cs | Updated as part of this pull request. |
| CosmosDBShell.Tests/CommandTests/ServerlessCreationThroughputTests.cs | Updated as part of this pull request. |
| CONTRIBUTING.md | Updated as part of this pull request. |
| CHANGELOG.md | Updated as part of this pull request. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…ss-create-throughput
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
An unresolved issue allows whitespace-only --scale input to bypass explicit-option rejection; the smoke-test assertion is also overly broad.
Review effort: Lite
Findings: None
Resolved since last review (2)
…tion Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Copilot resolve the merge conflicts in this pull request |
…ss-create-throughput Co-authored-by: mkrueger <341098+mkrueger@users.noreply.github.com>
Merged the latest Verified after the merge:
|
| --ru Max RU/s (default: 1000) | ||
| ``` | ||
|
|
||
| On provisioned accounts, omitting both options creates shared autoscale throughput with a maximum of 1000 RU/s. On serverless accounts, omit both options: the database is created without throughput settings, and supplying `--scale` or `--ru` fails with an explanation instead of sending a request the service rejects. |


Summary
Fixes #218