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

Read-Only

  • id (String) Id of the read operation

Nested Schema for audit_and_logs

Optional:

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:

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:

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