[AVM Module Issue]: The database-account module does not allow selecting which SQL role to associate the principal IDs with. #4381
Labels
Class: Resource Module 📦
This is a resource module
Needs: Triage 🔍
Maintainers need to triage still
Type: AVM 🅰️ ✌️ Ⓜ️
This is an AVM related issue
Type: Bug 🐛
Something isn't working
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/document-db/database-account
(Optional) Module Version
No response
Description
This module contains two parameters: sqlRoleDefinitions, which is used to deploy SQL role definitions, and sqlRoleAssignmentsPrincipalIds, which holds the principalIds for role assignments. Currently, all principalIds will be assigned the roles defined in the other parameter. My recommendation is to move sqlRoleAssignmentsPrincipalIds inside the sqlRoleDefinitions type so that it is possible to select which user to assign roles to.
My recommendation is to do something like this:
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: