question

Tushar-4842 avatar image
0 Votes"
Tushar-4842 asked MarileeTurscak-MSFT answered

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

i want to regenerate cosmos key using post request .like this{ https://docs.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-dbazure-rbac
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It looks like it needs account admin access but I've reached out to the PG to check about the role since it's not documented on the regeneratekey page.


0 Votes 0 ·

when can i expect update from the pg team?

0 Votes 0 ·

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

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



image.png (66.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.