fix(cosmosdb) Grant the Cosmos DB Built-in Data Contributor role to the database #299
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📥 Pull Request
❓ What are you trying to address
After deployment of the standard setup, AI Foundry shows error that it doesn't have sufficient permissions to Cosmos DB.
✨ Description of new changes
Grant the
Cosmos DB Built-in Data Contributorrole to the full enterprise_memory database, not the specific containers.This approach is recommended by the documentation: https://learn.microsoft.com/en-us/azure/ai-foundry/agents/concepts/standard-agent-setup?view=foundry-classic#manual
And this approach is implemented in the official foundry-samples repository:
https://github.com/azure-ai-foundry/foundry-samples/blob/2cb2e07560d1c17d66c321510fbbefbcf8675d0e/samples/microsoft/infrastructure-setup/15-private-network-standard-agent-setup/modules-network-secured/cosmos-container-role-assignments.bicep#L35
☑️ Checklist