@@ -235,22 +235,16 @@ resource "time_sleep" "wait_for_rbac" {
235235 azurerm_role_assignment . terraform_deployment_container_storage_access ,
236236 azurerm_role_assignment . terraform_deployment_container_file_access ,
237237 # Script identity storage permissions
238- # azurerm_role_assignment.script_deployment_container_storage_contributor,
239238 azurerm_role_assignment . script_deployment_container_blob_contributor ,
240- azurerm_role_assignment . script_deployment_container_file_owner ,
239+ azurerm_role_assignment . script_deployment_container_file_contributo ,
241240 # Main storage permissions (write access needed for upload_data.py to upload data files)
242- # azurerm_role_assignment.script_main_storage_queue_contributor,
243- azurerm_role_assignment . script_main_storage_blob_owner ,
244- # azurerm_role_assignment.script_main_storage_file_contributor,
241+ azurerm_role_assignment . script_main_storage_blob_contributor ,
245242 # AI Search permissions
246243 azurerm_role_assignment . script_search_service_contributor ,
247- # azurerm_role_assignment.script_search_index_data_contributor,
248244 # Azure OpenAI permissions
249245 azurerm_role_assignment . script_cognitive_services_openai_user ,
250- # Other permissions
251- # azurerm_role_assignment.script_container_apps_contributor
252246 ]
253- create_duration = " 30s "
247+ create_duration = " 60s "
254248}
255249
256250# Additional time sleep for storage account to be fully ready for network access
@@ -455,15 +449,12 @@ resource "null_resource" "verify_rbac_propagation" {
455449 depends_on = [
456450 time_sleep . wait_for_rbac ,
457451 # Storage permissions
458- # azurerm_role_assignment.script_main_storage_queue_contributor,
459- azurerm_role_assignment . script_main_storage_blob_owner ,
460- # azurerm_role_assignment.script_main_storage_file_contributor,
461- # azurerm_role_assignment.script_deployment_container_storage_contributor,
452+ azurerm_role_assignment . script_main_storage_reader ,
453+ azurerm_role_assignment . script_main_storage_blob_contributor ,
462454 azurerm_role_assignment . script_deployment_container_blob_contributor ,
463- azurerm_role_assignment . script_deployment_container_file_owner ,
455+ azurerm_role_assignment . script_deployment_container_file_contributor ,
464456 # AI Search permissions
465457 azurerm_role_assignment . script_search_service_contributor ,
466- # azurerm_role_assignment.script_search_index_data_contributor,
467458 # Azure OpenAI permissions
468459 azurerm_role_assignment . script_cognitive_services_openai_user
469460 ]
0 commit comments