Open mattdot opened 2 months ago
Resource : Log retention, Implement "retain_these_logs_for" on the provider instead of Data_record
For log Audit settings we need to implement the "retain this logs for" on the provider "environment_settings".
resource: power-platform_environment_settings | Resources | microsoft/power-platform | Terraform | Terraform Registry
retain_these_logs_for = 30 # number of days
Sample Terraform Implementarion:
`resource "powerplatform_environment_settings" "settings" { environment_id = powerplatform_environment.example_environment_settings.id
audit_and_logs = { plugin_trace_log_setting = "Exception" audit_settings = { is_audit_enabled = true is_user_access_audit_enabled = true is_read_audit_enabled = true retain_these_logs_for = 30 } } email = { email_settings = { max_upload_file_size_in_bytes = 123456 } } product = { behavior_settings = { show_dashboard_cards_in_expanded_state = true } features = { power_apps_component_framework_for_canvas_apps = false } } }`
Retain these logs for window:
Resource : Log retention, Implement "retain_these_logs_for" on the provider instead of Data_record
For log Audit settings we need to implement the "retain this logs for" on the provider "environment_settings".
resource: power-platform_environment_settings | Resources | microsoft/power-platform | Terraform | Terraform Registry
retain_these_logs_for = 30 # number of days
Sample Terraform Implementarion:
`resource "powerplatform_environment_settings" "settings" { environment_id = powerplatform_environment.example_environment_settings.id
audit_and_logs = { plugin_trace_log_setting = "Exception" audit_settings = { is_audit_enabled = true is_user_access_audit_enabled = true is_read_audit_enabled = true retain_these_logs_for = 30 } } email = { email_settings = { max_upload_file_size_in_bytes = 123456 } } product = { behavior_settings = { show_dashboard_cards_in_expanded_state = true } features = { power_apps_component_framework_for_canvas_apps = false } } }`