Skip to content

[Az.CosmosDB] Add support for capabilities and disableLocalAuth updates in UpdateAzCosmosDBAccount#29290

Open
tiffanytsang wants to merge 4 commits intoAzure:mainfrom
tiffanytsang:users/tiffanytsang/UpdateAzCosmosDBAccount
Open

[Az.CosmosDB] Add support for capabilities and disableLocalAuth updates in UpdateAzCosmosDBAccount#29290
tiffanytsang wants to merge 4 commits intoAzure:mainfrom
tiffanytsang:users/tiffanytsang/UpdateAzCosmosDBAccount

Conversation

@tiffanytsang
Copy link
Member

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings March 20, 2026 17:41
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@NoriZC
Copy link
Contributor

NoriZC commented Mar 20, 2026

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support in Az.CosmosDB for updating Cosmos DB account Capabilities and the DisableLocalAuth property, and updates scenario tests accordingly.

Changes:

  • Plumbs DisableLocalAuth through create/update cmdlets and result model.
  • Adds -Capabilities to Update-AzCosmosDBAccount and maps string names to SDK Capability objects.
  • Extends scenario tests to validate DisableLocalAuth and Capabilities updates.

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/CosmosDB/CosmosDB/Models/DatabaseAccount/PSDatabaseAccountGetResults.cs Exposes DisableLocalAuth on the PS model and maps it from SDK results.
src/CosmosDB/CosmosDB/Helpers/Constants.cs Adds help messages for DisableLocalAuth and Capabilities.
src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs Adds -Capabilities parameter and maps it into update parameters; applies DisableLocalAuth on update.
src/CosmosDB/CosmosDB/CosmosDBAccount/NewOrUpdateAzCosmosDBAccount.cs Adds shared DisableLocalAuth parameter for create/update cmdlets.
src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs Sends DisableLocalAuth on account creation.
src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.ps1 Updates scenario coverage for DisableLocalAuth and Capabilities.

tiffanytsang and others added 2 commits March 20, 2026 11:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 20, 2026 18:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 11 changed files in this pull request and generated 3 comments.

@NoriZC
Copy link
Contributor

NoriZC commented Mar 20, 2026

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment on lines +53 to +55
[Parameter(Mandatory = false, HelpMessage = Constants.CapabilitiesHelpMessage)]
public string[] Capabilities { get; set; }

Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This PR introduces new user-facing behavior/parameters (-Capabilities updates on Update-AzCosmosDBAccount and -DisableLocalAuth exposure) but src/CosmosDB/CosmosDB/ChangeLog.md still has an empty “## Upcoming Release” section. Please add an entry describing these changes for the next release.

Copilot uses AI. Check for mistakes.
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.

3 participants