Closed Jvekka closed 4 months ago
Thanks for rising a bug @Jvekka. The backend api that returns action_rules
and endpoint_rules
has changed. We should get an update in the provider pretty quickly.
As a workaround for now, you would have to keep action_rules
and endpoint_rules
empty in your configuration in order for it to work.
Hi @Jvekka After debugging the code I have to retract from my first comment, the provider is working correctly but terraform has issues with tracking dynamic and lists correctly. Your policy is working correctly when set like in our example
Here is similar issue reported for azurerm provider: https://github.com/hashicorp/terraform-provider-azurerm/issues/6254
Describe the bug
When applying
powerplatform_data_loss_prevention_policy
with action_rules and endpoint_rules, terraform produces unexpected error and fails. terraform plan doesn't produce error and terraform is able to do the changes to action_rules and endpoint_rules.To Reproduce
Steps to reproduce the behavior:
Using modified version of the example code (code below)
terraform plan
goes through without error and shows the changes even nothing should change.terraform apply
goes almost through the whole process, but in the end, it produces following errorSample Terraform Code
If applicable, add terraform code to help explain your problem.
REMINDER: REMOVE SENSITIVE DATA SUCH AS SECRETS, USER NAMES, EMAILS, TENANT INFORMATION, ETC.
Expected behavior
Apply the code without producing error.
System Information
Additional context
The example code worked like a charm so the issue might be my code, but as the
plan
goes through without issues, I can't really figure the issue by myself.Contribution
Contribution
Do you plan to raise a PR to address this issue? YES / NO?