microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
35 stars 13 forks source link

`powerplatform_analytics_data_export` resource #486

Open mattdot opened 1 month ago

mattdot commented 1 month ago

Description

powerplatform_analytics_data_export resource allows configuring export of analytics / telemetry data from various power platform services to app insights or data lake.

Resource

Potential Terraform Configuration

# Sample Terraform config that describes how the new resource might look.

resource "powerplatform_analytics_data_export" "dataverse_to_appinsights" {
  name = "example"
  environment_id = "<guid>"
  provider = "CloudFlow" # Dataverse | CloudFlow | PowerApps

  # easy to use
  scenarios = {
    dataverse_dependencies_plugin_executions = true
    dataverse_dependencies_sdk_executions = false
    dataverse_exceptions_plugin_executions = false
  }

  # Alternative Approach ... easy to maintain
  scenarios = ["", "", ""]

  app_insights = {
        resource_group_name = ""
        resource_name = ""
        subscription_id=""
        app_insights_key=""
    }
}

resource "powerplatform_analytics_data_export" "powerapp_to_datalake" {
   provider = "PowerApps" # PowerApps | CloudFlow
   data_lake = {
      resource_group_name = ""
      resource_name = ""  # the storage account name
      azure_subscription_id=""
   }
}

Definition of Done

Contributions

Do you plan to raise a PR to address this issue? YES / NO?

See the contributing guide for more information about what's expected for contributions.