Azure / terraform-azurerm-caf-enterprise-scale

Azure landing zones Terraform module
https://aka.ms/alz/tf
MIT License
862 stars 570 forks source link

Allow UserAssigned Identities for Policy Assignments #712

Open SeSeicht opened 1 year ago

SeSeicht commented 1 year ago

Community Note

Description

Is your feature request related to a problem?

Currently only SystemAssigned Identies are supported for Policy Assignments

# Dynamic configuration blocks
  # The identity block only supports a single value
  # for type = "SystemAssigned" so the following logic
  # ensures the block is only created when this value
  # is specified in the source template
  dynamic "identity" {
    for_each = {
      for ik, iv in try(each.value.template.identity, local.empty_map) :
      ik => iv
      if lower(iv) == "systemassigned"
    }
    content {
      type = "SystemAssigned"
    }
  }

https://github.com/Azure/terraform-azurerm-caf-enterprise-scale/blob/main/resources.policy_assignments.tf#LL40C23-L40C23

Describe the solution you'd like

Enable to use UserAssigned Identities for Policy Assignement

Additional context

matt-FFFFFF commented 1 year ago

Hi @SeSeicht

We plan to have this capability for the next version

vasniko commented 1 year ago

Hi @SeSeicht

We plan to have this capability for the next version

I have checked and the feature is not yet released. Pls, could you confirm when is it planned for?

LaurentLesle commented 1 year ago

Let me work on it.

jtracey93 commented 1 year ago

AB#30503

LaurentLesle commented 5 months ago

@jtracey93 can you close it now. Reopen if there is still an issue

madhulikasarangam commented 5 months ago

Hi Laurent and Team,

As you said user assigned managed identity support in next version i.e., 5.2.0. Now we are pointing to the 4.2.0, upgrade will take a time mean while is there any workaround to pass the user assigned managed identity in policy assignment using CAF