-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
Language: Bicep 💪This is related to the Bicep IaC languageThis is related to the Bicep IaC languageNeeds: Module Owner 📣This module needs an owner to develop or maintain itThis module needs an owner to develop or maintain itNeeds: Triage 🔍Maintainers need to triage stillMaintainers need to triage stillType: New Module Proposal 💡A new module for AVM is being proposedA new module for AVM is being proposed
Description
Check for previous/existing GitHub issues/module proposals
- I have checked for previous/existing GitHub issues/module proposals.
Check this module doesn't already exist in the module indexes
- I have checked for that this module doesn't already exist in the module indexes.
Bicep or Terraform?
Bicep
Module Classification?
Resource Module
Module Name
avm/res/authorization/role-assignments/rg-scope
Module Details
I find myself doing this in a few places:
import { roleAssignmentType } from 'br/public:avm/utl/types/avm-common-types:0.7.0'
param resourceGroupRoleAssignments roleAssignmentType[]?
module resourceGroupRoleAssignment 'br/public:avm/res/authorization/role-assignment/rg-scope:0.1.1' = [
for (roleAssignment, index) in resourceGroupRoleAssignments ?? []: {
name: 'resourceGroupRoleAssignment-${index}'
params: {
roleDefinitionIdOrName: roleAssignment.roleDefinitionIdOrName
principalId: roleAssignment.principalId
description: roleAssignment.?description
principalType: roleAssignment.?principalType
condition: roleAssignment.?condition
conditionVersion: roleAssignment.?conditionVersion
delegatedManagedIdentityResourceId: roleAssignment.?delegatedManagedIdentityResourceId
}
}
]It would be nice if there was a version that takes a roleAssignmentType[] directly.:
import { roleAssignmentType } from 'br/public:avm/utl/types/avm-common-types:0.7.0'
param resourceGroupRoleAssignments roleAssignmentType[]?
module resourceGroupRoleAssignment 'br/public:avm/res/authorization/role-assignments/rg-scope:x.y.z' = {
params: {
roleAssignmentType: resourceGroupRoleAssignments
}
}Do you want to be the owner of this module?
No
Module Owner's GitHub Username (handle)
No response
(Optional) Secondary Module Owner's GitHub Username (handle)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Language: Bicep 💪This is related to the Bicep IaC languageThis is related to the Bicep IaC languageNeeds: Module Owner 📣This module needs an owner to develop or maintain itThis module needs an owner to develop or maintain itNeeds: Triage 🔍Maintainers need to triage stillMaintainers need to triage stillType: New Module Proposal 💡A new module for AVM is being proposedA new module for AVM is being proposed
Type
Projects
Status
Proposed