An Azure service that provides an event-driven serverless compute platform.
The readMetadata is not included on those roles. This document actually walks you through creating a custom role for that permission and assigning it to your managed identity.
Create a role definition JSON file to create and the definition and role; then assign this role to your managed identity.
{
"RoleName": "Read Azure Cosmos DB Metadata",
"Type": "CustomRole",
"AssignableScopes": ["/"],
"Permissions": [{
"DataActions": [
"Microsoft.DocumentDB/databaseAccounts/readMetadata"
]
}]
}
az cosmosdb sql role definition create --resource-group $resourceGroupName --account-name $cosmosName --body @definition.json
az cosmosdb sql role assignment create --resource-group $resourceGroupName --account-name $cosmosName --role-definition-name "Read Azure Cosmos DB Metadata" --principal-id $principal --scope $scope