code: func (ss *scaleSet) getAgentPoolScaleSets(nodes []*v1.Node) (*[]string, error) {
  	agentPoolScaleSets := &[]string{}
  	for nx := range nodes {
  		if isMasterNode(nodes[nx]) {
  			continue
  		}
  
  		if ss.ShouldNodeExcludedFromLoadBalancer(nodes[nx]) {
  			continue
  		}
  
  		nodeName := nodes[nx].Name
  		ssName, err := ss.getScaleSetNameByNodeName(nodeName)
  		if err != nil {
  			return nil, err
  		}
  
  		if ssName == "" {
  			klog.V(3).Infof("Node %q is not belonging to any known scale sets", nodeName)
  			continue
  		}
  
  		*agentPoolScaleSets = append(*agentPoolScaleSets, ssName)
  	}
  
  	return agentPoolScaleSets, nil
  }
docs: // getAgentPoolScaleSets lists the virtual machines for the resource group and then builds
  // a list of scale sets that match the nodes available to k8s.