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

Tushar 1 Reputation point

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,050 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.
450 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 24,056 Reputation points Microsoft Employee

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


    0 comments No comments