Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add RBAC note for management operations #1503

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs-ref-services/latest/cosmos-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ The following sections provide several code snippets covering some of the most c
- [Read an item](#read-an-item)
- [Delete an item](#delete-an-data)

> [!IMPORTANT]
> Management operations like creating a database or a container will not be available if role-based access control (RBAC) is used to authenticate instead of using a key as described above. For more details on using RBAC, see [Permissions model](https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-setup-rbac#permission-model).

### Create a database

After authenticating your [CosmosClient](/javascript/api/@azure/cosmos/cosmosclient?view=azure-node-latest), you can work with any resource in the account. The code snippet below creates a SQL API database.
Expand Down