<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/which-azure-cosmos-db-role-does-my-app-need--z290oyqwf" -->

---
title: Which Azure Cosmos DB Role Does My App Need? | daily.dev
description: A practical guide to setting up keyless access to Azure Cosmos DB using managed identities and data plane RBAC. Covers the three key questions for access...
canonical: https://daily.dev/posts/which-azure-cosmos-db-role-does-my-app-need--z290oyqwf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Which Azure Cosmos DB Role Does My App Need? | daily.dev
og:description: A practical guide to setting up keyless access to Azure Cosmos DB using managed identities and data plane RBAC. Covers the three key questions for access...
og:url: https://daily.dev/posts/which-azure-cosmos-db-role-does-my-app-need--z290oyqwf
og:image: https://api.daily.dev/og/posts/z290OYqWf.png
og:image:alt: Which Azure Cosmos DB Role Does My App Need?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Which Azure Cosmos DB Role Does My App Need?

**[DevBlogs](https://daily.dev/sources/devblogs)** · 6 min read · 0 upvotes · 0 comments

## Summary

A practical guide to setting up keyless access to Azure Cosmos DB using managed identities and data plane RBAC. Covers the three key questions for access control: who (managed identity), what (built-in data roles), and where (scope). Explains the critical distinction between control plane and data plane RBAC, walks through assigning the built-in Data Contributor role via Azure CLI, and shows how to use DefaultAzureCredential in the .NET SDK to authenticate without connection strings or secrets.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/cosmosdb/which-azure-cosmos-db-role-does-my-app-need>

## Similar posts on daily.dev

- [I’m Starting a New Cosmos DB App. What Security Do I Actually Need?](https://daily.dev/posts/i-m-starting-a-new-cosmos-db-app-what-security-do-i-actually-need--mqq0ugnuh) · DevBlogs · 0 upvotes · 0 comments
- [Announcing the Private Preview of Cosmos DB Azure RBAC Integration](https://daily.dev/posts/announcing-the-private-preview-of-cosmos-db-azure-rbac-integration-l6k2jme1h) · DevBlogs · 0 upvotes · 0 comments
- [Azure RBAC Explained: Roles, Scope, and Why Least Privilege Breaks Down](https://daily.dev/posts/azure-rbac-explained-roles-scope-and-why-least-privilege-breaks-down-9tszskjro) · Security Boulevard · 0 upvotes · 0 comments

---

Tags: [#azure](https://daily.dev/tags/azure), [#authentication](https://daily.dev/tags/authentication), [#azure-cosmos-db](https://daily.dev/tags/azure-cosmos-db)

[View this post on daily.dev](https://daily.dev/posts/which-azure-cosmos-db-role-does-my-app-need--z290oyqwf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Which Azure Cosmos DB Role Does My App Need?","url":"https://daily.dev/posts/which-azure-cosmos-db-role-does-my-app-need--z290oyqwf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/which-azure-cosmos-db-role-does-my-app-need--z290oyqwf"},"datePublished":"2026-06-26T16:56:03.623Z","dateModified":"2026-06-26T16:56:24.225Z","description":"A practical guide to setting up keyless access to Azure Cosmos DB using managed identities and data plane RBAC. Covers the three key questions for access...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/10d99234b489a111a7c9b248209c7a9c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/10d99234b489a111a7c9b248209c7a9c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DevBlogs","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DevBlogs","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8f68b453325f482ebeb73fb780092713","url":"https://daily.dev/sources/devblogs"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/which-azure-cosmos-db-role-does-my-app-need--z290oyqwf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"azure,authentication,azure-cosmos-db","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevBlogs","item":"https://daily.dev/sources/devblogs"},{"@type":"ListItem","position":3,"name":"Which Azure Cosmos DB Role Does My App Need?"}]}
```

