diff --git a/internal/provider/features.go b/internal/provider/features.go index bdb0cbfe3a9f..8872e86a5e78 100644 --- a/internal/provider/features.go +++ b/internal/provider/features.go @@ -228,7 +228,8 @@ func schemaFeatures(supportLegacyTestSuite bool) *pluginsdk.Schema { }, "roll_instances_when_required": { Type: pluginsdk.TypeBool, - Required: true, + Optional: true, + Default: true, }, "scale_to_zero_before_deletion": { Type: pluginsdk.TypeBool, diff --git a/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go b/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go index 17aaa96ca0a8..c31c8af9218c 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go @@ -1135,8 +1135,7 @@ func (r LinuxVirtualMachineScaleSetResource) otherForceDelete(data acceptance.Te provider "azurerm" { features { virtual_machine_scale_set { - force_delete = true - roll_instances_when_required = true + force_delete = true } } } diff --git a/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go b/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go index 5a98676d83a5..0e190ec526d3 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go @@ -1348,8 +1348,7 @@ func (r WindowsVirtualMachineScaleSetResource) otherForceDelete(data acceptance. provider "azurerm" { features { virtual_machine_scale_set { - force_delete = true - roll_instances_when_required = true + force_delete = true } } }