Unable to set the `disableLocalAuth` property on CosmosDb accounts during creation/update
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Is your feature request related to a problem? Please describe.**
[This](https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-setup-rbac#using-azure-resource-manager-templates-2) 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](https://docs.microsoft.com/en-us/rest/api/cosmos-db-resource-provider/2021-04-15/database-accounts/get) 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.
Contributor guide
Assessment
This issue has not been assessed yet.