How to access Cosmos DB documents from Azure Portal?

Aayush Suresh Jain 146 Reputation points
2023-02-24T08:17:57.2933333+00:00

In the Azure Portal, when I try to access the container items in data explorer for the Cosmos DB account,

I am getting the following error :

Local Authorization is disabled. Use an AAD token to authorize all requests.

I gave myself the Cosmos DB Account Reader Role and Contributor Role. But I am still not able to access the data.

We have a policy enforced so I cannot enable Local Authorization. What should I do in order to access the Cosmos DB data?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,903 questions
{count} votes

Accepted answer
  1. RahulRandive 10,486 Reputation points Volunteer Moderator
    2023-02-24T12:18:04.4766667+00:00

    Thanks for your question.

    I have come across a similar error in this thread. Kindly verify if the solution provided in the thread is useful in your scenario.

    https://learn.microsoft.com/en-us/answers/questions/1161211/cosmos-db-enforcing-rbac-as-the-only-authenticatio

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Patchfox 4,176 Reputation points
    2023-02-24T08:36:15.2933333+00:00

    To use the data explorer via the azure portal, the access keys must be activated.

    Therefore, the following permissions must be available:

    Microsoft.DocumentDB/databaseAccounts/listKeys/*


    If the reply was helpful, please don’t forget to upvote or accept it as an answer, thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.