File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,19 +71,3 @@ resource "azurerm_role_assignment" "alz_storage_container_additional" {
7171 role_definition_name = " Storage Blob Data Owner"
7272 principal_id = each. value
7373}
74-
75- # These role assignments are a temporary addition to handle this issue in the Terraform CLI: https://github.com/hashicorp/terraform/issues/36595
76- # They will be removed once the issue has been resolved
77- resource "azurerm_role_assignment" "alz_storage_reader" {
78- for_each = var. create_storage_account ? var. user_assigned_managed_identities : {}
79- scope = azurerm_storage_account. alz [0 ]. id
80- role_definition_name = " Reader"
81- principal_id = azurerm_user_assigned_identity. alz [each . key ]. principal_id
82- }
83-
84- resource "azurerm_role_assignment" "alz_storage_reader_additional" {
85- for_each = var. create_storage_account ? var. additional_role_assignment_principal_ids : {}
86- scope = azurerm_storage_account. alz [0 ]. id
87- role_definition_name = " Reader"
88- principal_id = each. value
89- }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ locals {
1717
1818# Transform the intermediate root management group in the terraform architecture file to ensure it is marked as existing
1919locals {
20- terraform_management_groups_non_root = local. is_terraform_iac_type ? [ for management_group in local . terraform_architecture . management_groups : management_group if management_group . parent_id != null ] : null
20+ terraform_management_groups_non_root = local. is_terraform_iac_type ? [for management_group in local . terraform_architecture . management_groups : management_group if management_group . parent_id != null ] : null
2121 terraform_intermediate_root_management_group_updated = local. is_terraform_iac_type ? merge (
2222 local. terraform_intermediate_root_management_group ,
2323 {
You can’t perform that action at this time.
0 commit comments