diff --git a/internal/services/iothub/iothub_dps_resource.go b/internal/services/iothub/iothub_dps_resource.go index daaab9c62173..6fb4c6dfe35d 100644 --- a/internal/services/iothub/iothub_dps_resource.go +++ b/internal/services/iothub/iothub_dps_resource.go @@ -108,10 +108,16 @@ func resourceIotHubDPS() *pluginsdk.Resource { Optional: true, Default: features.ThreePointOh(), }, + // TODO update docs with new default for 3.0 "allocation_weight": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: 0, + Type: pluginsdk.TypeInt, + Optional: true, + Default: func() interface{} { + if features.ThreePointOh() { + return 1 + } + return 0 + }(), ValidateFunc: validation.IntBetween(0, 1000), }, "hostname": {