-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Describe the bug
Deploying Enterprise Encryption policy with Terraform sample code times out after 20 minutes.
│ Error: Client error when creating powerplatform_enterprise_policy
│
│ with powerplatform_enterprise_policy.encryption,
│ on encryption_main.tf line 104, in resource "powerplatform_enterprise_policy" "encryption":
│ 104: resource "powerplatform_enterprise_policy" "encryption" {
│
│ context deadline exceeded
Sample Terraform Code
resource "powerplatform_enterprise_policy" "encryption" {
environment_id = var.environment_id
system_id = azapi_resource.powerplatform_policy_encryption.output.properties.systemId
policy_type = "Encryption"
depends_on = [ azapi_resource.powerplatform_policy_encryption]
}REMINDER: REMOVE SENSITIVE DATA SUCH AS SECRETS, USER NAMES, EMAILS, TENANT INFORMATION, ETC.
Expected behavior
Provider should either provide a method to poll and loop or at the very least a configurable timeout .
System Information
- Provider Version: 3.9.1
- OS & Version: Windows Server 24H2
- Terraform Version: v1.13.4
Additional context
The encryption does end up configuring correctly in Power Platform, but this process takes a lot longer than 20 minutes!
When re-applying as a test, the whole Encryption process restarted even though the process had successfully completed in the Power Platform Admin Centre.