@@ -52,25 +52,7 @@ resource "azurerm_role_assignment" "script_search_service_contributor" {
5252resource "azurerm_role_assignment" "script_main_storage_blob_owner" {
5353 principal_id = azurerm_user_assigned_identity. script_identity . principal_id
5454 scope = module. storage_account_and_container . resource_id
55- role_definition_name = " Storage Blob Data Owner"
56- }
57-
58- resource "azurerm_role_assignment" "script_main_storage_file_contributor" {
59- principal_id = azurerm_user_assigned_identity. script_identity . principal_id
60- scope = module. storage_account_and_container . resource_id
61- role_definition_name = " Storage File Data Privileged Contributor"
62- }
63-
64- resource "azurerm_role_assignment" "script_main_storage_reader" {
65- principal_id = azurerm_user_assigned_identity. script_identity . principal_id
66- scope = module. storage_account_and_container . resource_id
67- role_definition_name = " Reader"
68- }
69-
70- resource "azurerm_role_assignment" "script_main_storage_account_contributor" {
71- principal_id = azurerm_user_assigned_identity. script_identity . principal_id
72- scope = module. storage_account_and_container . resource_id
73- role_definition_name = " Storage Account Contributor"
55+ role_definition_name = " Storage Blob Data Contributor"
7456}
7557
7658# --- Deployment Container Storage Account ---
@@ -86,13 +68,6 @@ resource "azurerm_role_assignment" "script_deployment_container_file_owner" {
8668 role_definition_name = " Storage File Data Privileged Contributor"
8769}
8870
89- # --- Other Permissions ---
90- resource "azurerm_role_assignment" "script_container_apps_contributor" {
91- principal_id = azurerm_user_assigned_identity. script_identity . principal_id
92- scope = azurerm_resource_group. this . id
93- role_definition_name = " Container Apps Contributor"
94- }
95-
9671# ============================================================================
9772# TERRAFORM PRINCIPAL PERMISSIONS (for deployment-time operations)
9873# ============================================================================
0 commit comments