diff --git a/internal/services/containers/kubernetes_nodepool.go b/internal/services/containers/kubernetes_nodepool.go index dfccb20ba8c5..6a40ca303bb0 100644 --- a/internal/services/containers/kubernetes_nodepool.go +++ b/internal/services/containers/kubernetes_nodepool.go @@ -1384,7 +1384,8 @@ func ExpandDefaultNodePool(d *pluginsdk.ResourceData) (*[]managedclusters.Manage if maxCount > 0 { profile.MaxCount = utils.Int64(int64(maxCount)) - if maxCount < count { + + if maxCount < count && d.IsNewResource() { return nil, fmt.Errorf("`node_count`(%d) must be equal to or less than `max_count`(%d) when `enable_auto_scaling` is set to `true`", count, maxCount) } } else {