powerplatform_environment_settings (Resource)
Manages Power Platform Settings for a given environment. They control various aspects of Power Platform features and behaviors, See Environment Settings Overview for more details.
Example Usage
terraform {
  required_providers {
    powerplatform = {
      source = "microsoft/power-platform"
    }
  }
}
provider "powerplatform" {
  use_cli = true
}
resource "powerplatform_environment" "example_environment_settings" {
  display_name     = "example_environment_settings"
  location         = "europe"
  environment_type = "Sandbox"
  dataverse = {
    language_code     = "1033"
    currency_code     = "USD"
    security_group_id = "00000000-0000-0000-0000-000000000000"
  }
}
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
    }
  }
  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
    }
  }
}
Schema
Required
- environment_id(String) Environment Id
Optional
- audit_and_logs(Attributes) Audit and Logs (see below for nested schema)
- email(Attributes) Email (see below for nested schema)
- product(Attributes) Product (see below for nested schema)
- timeouts(Attributes) (see below for nested schema)
Read-Only
- id(String) Id of the read operation
Nested Schema for audit_and_logs
Optional:
- audit_settings(Attributes) Audit Settings. See Audit Settings Overview for more details. (see below for nested schema)
- plugin_trace_log_setting(String) Plugin trace log setting. Available options: Off, Exception, All. See Plugin Trace Log Settings Overview for more details.
Nested Schema for audit_and_logs.audit_settings
Optional:
- is_audit_enabled(Boolean) Is audit enabled
- is_read_audit_enabled(Boolean) Is read audit enabled
- is_user_access_audit_enabled(Boolean) Is user access audit enabled
Nested Schema for email
Optional:
- email_settings(Attributes) Email Settings. See Email Settings Overview for more details. (see below for nested schema)
Nested Schema for email.email_settings
Optional:
- max_upload_file_size_in_bytes(Number) Maximum file size that can be uploaded to the environment
Nested Schema for product
Optional:
- behavior_settings(Attributes) Behavior Settings.See Behavior Settings Overview for more details. (see below for nested schema)
- features(Attributes) Features. See Features Overview for more details. (see below for nested schema)
Nested Schema for product.behavior_settings
Optional:
- show_dashboard_cards_in_expanded_state(Boolean) Show dashboard cards in expanded state
Nested Schema for product.features
Optional:
- power_apps_component_framework_for_canvas_apps(Boolean) Power Apps component framework for canvas apps
Nested Schema for timeouts
Optional:
- create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).