diff --git a/azure/services/managedclusters/spec.go b/azure/services/managedclusters/spec.go index 22ef9f48b0b..b673bb364d5 100644 --- a/azure/services/managedclusters/spec.go +++ b/azure/services/managedclusters/spec.go @@ -481,6 +481,7 @@ func (s *ManagedClusterSpec) Parameters(ctx context.Context, existing *asocontai return nil, errors.Wrapf(err, "failed to get agent pool specs for managed cluster %s", s.Name) } + spec.AgentPoolProfiles = nil for _, spec := range agentPoolSpecs { agentPool, err := spec.Parameters(ctx, nil) if err != nil {