...
module.powerplatform_nonprod.powerplatform_billing_policy.pay_as_you_go: Still creating... [3m0s elapsed]
╷
│ Error: Client error when creating powerplatform__billing_policy
│
│ with module.powerplatform_nonprod.powerplatform_billing_policy.pay_as_you_go,
│ on projects\powerplatform-nonprod\environment.tf line 28, in resource "powerplatform_billing_policy" "pay_as_you_go":
│ 28: resource "powerplatform_billing_policy" "pay_as_you_go" {
│
│ timeout reached while waiting for billing policy to reach a terminal state (Enabled or Disabled)
The billing policy is not created.
Expected behavior
I can create a billing policy using the microsoft/power-platform provider.
System Information
Provider Version: 2.7.0-preview
OS & Version: Windows 10
Additional context
I can create new billing policies in the power platform admin web console, using the same account, without any problems and almost immediate response. I was also wondering if the creation of this policy happens asynchronously and if the cli command was working in the first place, that, despite it would fail with this error, the billing policy should still be created? (I am not very familiar with terraform).
I also double-checked subscription ids and the other references - fairly sure they are correct.
Describe the bug
I can't seem to create a billing policy - it always ends up in a "timeout reached" message. I've read https://github.com/microsoft/terraform-provider-power-platform/issues/376 and https://github.com/microsoft/terraform-provider-power-platform/pull/392 but from what I can see that should already be in 2.7.0-preview?
To Reproduce
These are the relevant bits of my config:
After tf apply, I get the following error:
The billing policy is not created.
Expected behavior
I can create a billing policy using the microsoft/power-platform provider.
System Information
Additional context
I can create new billing policies in the power platform admin web console, using the same account, without any problems and almost immediate response. I was also wondering if the creation of this policy happens asynchronously and if the cli command was working in the first place, that, despite it would fail with this error, the billing policy should still be created? (I am not very familiar with terraform). I also double-checked subscription ids and the other references - fairly sure they are correct.