MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.22k stars 21.37k forks source link

Please provide a sample to query cosmosdb using managed identity #121683

Closed miqm closed 4 months ago

miqm commented 5 months ago

The samples on the page use account key to connect to the cosmosdb. Please provide a sample how to use managed identity, as this is the go-to technology.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PesalaPavan commented 5 months ago

@miqm Thanks for your feedback! We will investigate and update as appropriate.

jovanpop-msft commented 5 months ago

You cannot use managed identity to access cosmos db container from serverless sql pool side.

miqm commented 5 months ago

Oh, that's a pity. Could you place some note about it? Also, is there some eta when it will be possible?

AjayBathini-MSFT commented 5 months ago

@miqm Thanks for bringing this to our attention. I'm going to assign this to the document author so they can take a look at it accordingly.

bandersmsft commented 4 months ago

Followed up with author.

bandersmsft commented 4 months ago

@miqm We updated the article to add the note you suggested.

https://github.com/MicrosoftDocs/azure-docs-pr/pull/276317

please-close

bandersmsft commented 4 months ago

@miqm By the way, the engineering team is working on enabling access to Cosmos DB using Entra identity, however I can't say when that might get completed. If/when that work is done, we'll update the article.