Skip to content

Commit 1b8c806

Browse files
resource/datasource primary id should not changes on reapply (#292)
* chore: making unique resource/datasource id stable & fixing unit tests * chore: fixing acceptance tests * chore: update display_name in powerplatform environment resources * adding new acceptance tests for dlp policies --------- Co-authored-by: Eduardo Sanchez <[email protected]>
1 parent 6142aaf commit 1b8c806

File tree

47 files changed

+370
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+370
-195
lines changed

docs/data-sources/billing_policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data "powerplatform_billing_policies" "all_policies" {}
3434
### Read-Only
3535

3636
- `billing_policies` (Attributes List) [Power Platform Billing Policy](https://learn.microsoft.com/en-us/rest/api/power-platform/licensing/billing-policy/get-billing-policy#billingpolicyresponsemodel) (see [below for nested schema](#nestedatt--billing_policies))
37-
- `id` (Number) Placeholder identifier attribute
37+
- `id` (Number) Id of the read operation
3838

3939
<a id="nestedatt--billing_policies"></a>
4040
### Nested Schema for `billing_policies`

docs/data-sources/data_loss_prevention_policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Fetches the list of Data Loss Prevention Policies in a Power Platform tenant. Se
1717

1818
### Read-Only
1919

20-
- `id` (String) The ID of this resource.
20+
- `id` (String) Id of the read operation
2121
- `policies` (Attributes List) List of Data Loss Prevention Policies (see [below for nested schema](#nestedatt--policies))
2222

2323
<a id="nestedatt--policies"></a>

docs/data-sources/environment_powerapps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ data "powerplatform_environment_powerapps" "all" {}
3333

3434
### Read-Only
3535

36-
- `id` (String) The ID of this resource.
36+
- `id` (String) Id of the read operation
3737
- `powerapps` (Attributes List) List of Power Apps (see [below for nested schema](#nestedatt--powerapps))
3838

3939
<a id="nestedatt--powerapps"></a>

docs/data-sources/environment_settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Power Platform Environment Settings Data Source. Power Platform Settings are con
2727

2828
### Read-Only
2929

30-
- `id` (String) Id
30+
- `id` (String) Id of the read operation
3131

3232
<a id="nestedatt--audit_and_logs"></a>
3333
### Nested Schema for `audit_and_logs`

docs/data-sources/environments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data "powerplatform_environments" "all_environments" {}
3434
### Read-Only
3535

3636
- `environments` (Attributes List) List of environments (see [below for nested schema](#nestedatt--environments))
37-
- `id` (Number) Placeholder identifier attribute
37+
- `id` (Number) Id of the read operation
3838

3939
<a id="nestedatt--environments"></a>
4040
### Nested Schema for `environments`

docs/data-sources/solutions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ data "powerplatform_solutions" "all" {
3939

4040
### Read-Only
4141

42-
- `id` (String) The ID of this resource.
42+
- `id` (String) Id of the read operation
4343
- `solutions` (Attributes List) List of Solutions (see [below for nested schema](#nestedatt--solutions))
4444

4545
<a id="nestedatt--solutions"></a>

docs/data-sources/tenant_settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data "powerplatform_tenant_settings" "settings" {}
4141
- `disable_support_tickets_visible_by_all_users` (Boolean) Disable Support Tickets Visible By All Users
4242
- `disable_survey_feedback` (Boolean) Disable Survey Feedback
4343
- `disable_trial_environment_creation_by_non_admin_users` (Boolean) Disable Trial Environment Creation By Non Admin Users
44-
- `id` (String) Id
44+
- `id` (String) Id of the read operation
4545
- `power_platform` (Attributes) Power Platform (see [below for nested schema](#nestedatt--power_platform))
4646
- `walk_me_opt_out` (Boolean) Walk Me Opt Out
4747

docs/resources/environment_settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ resource "powerplatform_environment_settings" "settings" {
7878

7979
### Read-Only
8080

81-
- `id` (String) Id
81+
- `id` (String) Id of the read operation
8282

8383
<a id="nestedatt--audit_and_logs"></a>
8484
### Nested Schema for `audit_and_logs`

docs/resources/tenant_settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ resource "powerplatform_tenant_settings" "settings" {
121121

122122
### Read-Only
123123

124-
- `id` (String) Id
124+
- `id` (String) Id of the read operation
125125

126126
<a id="nestedatt--power_platform"></a>
127127
### Nested Schema for `power_platform`

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.22.3
55
require (
66
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1
77
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2
8-
github.com/google/uuid v1.6.0
98
github.com/hashicorp/terraform-plugin-docs v0.19.2
109
github.com/hashicorp/terraform-plugin-framework v1.8.0
1110
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0
@@ -36,6 +35,7 @@ require (
3635
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
3736
github.com/golang/protobuf v1.5.4 // indirect
3837
github.com/google/go-cmp v0.6.0 // indirect
38+
github.com/google/uuid v1.6.0 // indirect
3939
github.com/hashicorp/cli v1.1.6 // indirect
4040
github.com/hashicorp/errwrap v1.1.0 // indirect
4141
github.com/hashicorp/go-checkpoint v0.5.0 // indirect

0 commit comments

Comments
 (0)