What role can be assigned to my app to regenerate cosmos db keys.?

Tushar 1 Reputation point
2021-03-08T16:33:28.657+00:00

i want to regenerate cosmos key using post request .like this{ https://learn.microsoft.com/en-us/rest/api/cosmos-db-resource-provider/2020-06-01-preview/databaseaccounts/regeneratekey} but i cant find a proper role to assign to my app so it can get access to regenerate the keys.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,456 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
677 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 34,316 Reputation points Microsoft Employee
    2021-03-24T19:58:46.83+00:00

    The documentation mentions the user_impersonation scope. Please try adding that scope to the app if you have not done so already.

    81286-image.png

    0 comments No comments