diff --git a/internal/services/loadtestservice/load_test_resource.go b/internal/services/loadtestservice/load_test_resource.go index bb74494aca0f..f344fb45cd30 100644 --- a/internal/services/loadtestservice/load_test_resource.go +++ b/internal/services/loadtestservice/load_test_resource.go @@ -67,7 +67,6 @@ func (r LoadTestResource) Arguments() map[string]*pluginsdk.Schema { }, "resource_group_name": commonschema.ResourceGroupName(), "description": { - ForceNew: true, Optional: true, Type: pluginsdk.TypeString, }, @@ -185,6 +184,9 @@ func (r LoadTestResource) Read() sdk.ResourceFunc { if err := r.mapLoadTestResourceToLoadTestResourceSchema(*model, &schema); err != nil { return fmt.Errorf("flattening model: %+v", err) } + if property := model.Properties; property != nil { + schema.Description = pointer.From(property.Description) + } } return metadata.Encode(&schema) @@ -344,6 +346,10 @@ func (r LoadTestResource) mapLoadTestResourceSchemaToLoadTestResourceUpdate(inpu output.Identity = identity output.Tags = tags.Expand(input.Tags) + + output.Properties = &loadtests.LoadTestResourceUpdateProperties{ + Description: pointer.To(input.Description), + } return nil } diff --git a/website/docs/r/load_test.html.markdown b/website/docs/r/load_test.html.markdown index 588095f8dd90..df59449c6c51 100644 --- a/website/docs/r/load_test.html.markdown +++ b/website/docs/r/load_test.html.markdown @@ -41,7 +41,7 @@ The following arguments are supported: * `resource_group_name` - (Required) Specifies the name of the Resource Group within which this Load Test should exist. Changing this forces a new Load Test to be created. -* `description` - (Optional) Description of the resource. Changing this forces a new Load Test to be created. +* `description` - (Optional) Description of the resource. * `identity` - (Optional) An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Load Test.