Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powerplatform environment group rule set issue with sending ruleset #565

5 changes: 5 additions & 0 deletions .changes/unreleased/fixed-20250124-153618.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: fixed
body: Fixed issues with powerplatform_environment_group_rule_set throwing RuleSetInvalid error
time: 2025-01-24T15:36:18.528435757Z
custom:
Issue: "565"
2 changes: 1 addition & 1 deletion internal/services/environment_group_rule_set/dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func convertMakerWelcomeContent(ctx context.Context, attrs map[string]attr.Value
})
rule.Value = append(rule.Value, environmentGroupRuleSetValueDto{
Id: MAKER_ONBOARDING_TIMESTAMP,
Value: strings.Replace(time.Now().Format(time.RFC1123), "UTC", "GMT", -1),
Value: time.Now().UTC().Format(time.RFC3339),
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ func (r *EnvironmentSettingsResource) Schema(ctx context.Context, req resource.S
"id": schema.StringAttribute{
MarkdownDescription: "Id of the read operation",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
},
"environment_id": schema.StringAttribute{
MarkdownDescription: "Environment Id",
Expand Down