powerplatform_managed_environment (Resource)
Manages a Managed Environment and associated settings. A Power Platform Managed Environment is a suite of premium capabilities that allows administrators to manage Power Platform at scale with more control, less effort, and more insights. Once an environment is managed, it unlocks additional features across the Power Platform
Example Usage
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
resource "powerplatform_environment" "development" {
display_name = "example_managed_environment"
location = "europe"
environment_type = "Sandbox"
dataverse = {
language_code = "1033"
currency_code = "USD"
security_group_id = "00000000-0000-0000-0000-000000000000"
}
}
resource "powerplatform_managed_environment" "managed_development" {
environment_id = powerplatform_environment.development.id
is_usage_insights_disabled = true
is_group_sharing_disabled = true
limit_sharing_mode = "ExcludeSharingToSecurityGroups"
max_limit_user_sharing = 10
solution_checker_mode = "None"
suppress_validation_emails = true
maker_onboarding_markdown = "this is example markdown"
maker_onboarding_url = "https://www.microsoft.com"
}
Schema
Required
environment_id
(String) Unique environment id (guid), of the environment that is managed by these settingsis_group_sharing_disabled
(Boolean) Limits how widely canvas apps can be shared. See Managed Environment sharing limits for more details.is_usage_insights_disabled
(Boolean) Weekly insights digest for the environmentlimit_sharing_mode
(String) Limits how widely canvas apps can be shared. See Managed Environment sharing limits for more detailsmaker_onboarding_markdown
(String) First-time Power Apps makers will see this content in the Studio. See Maker welcome content for more details.maker_onboarding_url
(String) Maker onboarding 'Learn more' URL. See Maker welcome content for more details.max_limit_user_sharing
(Number) Limits how many users can share canvas apps. if 'is_group_sharing_disabled' is 'False', then this values should be '-1'solution_checker_mode
(String) Automatically verify solution checker results for security and reliability issues before solution import. See Solution Checker enforcement for more details.suppress_validation_emails
(Boolean) Send emails only when a solution is blocked. If 'False', you'll also get emails when there are warnings
Optional
timeouts
(Attributes) (see below for nested schema)
Read-Only
id
(String) Unique managed environment settings id (guid)protection_level
(String) Protection level
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).delete
(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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.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.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).