Skip to content

Unable to set the disableLocalAuth property on CosmosDb accounts during creation/update #19750

@ksstott

Description

@ksstott

Is your feature request related to a problem? Please describe.
This documentation describes how to enforce RBAC authentication on a cosmos account. However while the cli will allow you to view the value of this property via az cosmosdb show and az cosmosdb list there is no way to set or update this value via the cli during account creation or update

Describe the solution you'd like
Add command switches to allow this property to be set during update and creation.
az cosmosdb create ... --disable-local-auth true
az cosmosdb update ... --disable-local-auth true

Describe alternatives you've considered

Additional context
This property is also not exposed via the REST API however playing around with the REST api it appears that it is returned by the GET endpoint and can be updated (at least via the PATCH endpoint when I tried it)

I assume that this is also a bug/feature request with the REST API but I do not know how to raise an issue on that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions