powerplatform_environment_templates (Data Source)
Fetches the list of Dynamics 365 environment templates.
Example Usage
terraform {
  required_providers {
    powerplatform = {
      source = "microsoft/power-platform"
    }
  }
}
provider "powerplatform" {
  use_cli = true
}
data "powerplatform_locations" "all_locations" {}
data "powerplatform_environment_templates" "all_environment_templates_by_location" {
  location = data.powerplatform_locations.all_locations.locations[0].name
}
Schema
Required
- location(String) Location of the environment templates
Optional
- id(Number) Id of the read operation
- timeouts(Attributes) (see below for nested schema)
Read-Only
- environment_templates(Attributes List) List of available environment templates (see below for nested schema)
Nested Schema for timeouts
Optional:
- read(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). Read operations occur during any refresh or planning operation when refresh is enabled.
Nested Schema for environment_templates
Read-Only:
- category(String) Category of the environment template
- disabled_reason_code(String) Code of the reason why the environment template is disabled
- disabled_reason_message(String) Message of the reason why the environment template is disabled
- display_name(String) Display name of the environment template
- id(String) Unique identifier of the environment template
- is_customer_engagement(Boolean) Indicates if the environment template is for customer engagement
- is_disabled(Boolean) Indicates if the environment template is disabled
- is_supported_for_reset_operation(Boolean) Indicates if the environment template is supported for reset operation
- location(String) Location of the environment template
- name(String) Name of the environment template