Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retention_policy_duration to powerplatform_environment_settings #431

Open
mattdot opened this issue Sep 12, 2024 · 2 comments · May be fixed by #527
Open

Add retention_policy_duration to powerplatform_environment_settings #431

mattdot opened this issue Sep 12, 2024 · 2 comments · May be fixed by #527
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mattdot
Copy link
Member

mattdot commented Sep 12, 2024

No description provided.

@mattdot mattdot added the enhancement New feature or request label Sep 12, 2024
@mattdot mattdot added this to the P0 milestone Sep 25, 2024
@eduardodfmex
Copy link
Contributor

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
}
}
}`

@eduardodfmex
Copy link
Contributor

Retain these logs for window:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants