code: def list_nodes(call=None):
      '''
      List VMs on this Azure account
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes function must be called with -f or --function.'
          )
  
      ret = {}
  
      nodes = list_nodes_full()
      for node in nodes:
          ret[node] = {'name': node}
          for prop in ('id', 'image', 'size', 'state', 'private_ips', 'public_ips'):
              ret[node][prop] = nodes[node].get(prop)
      return ref list_nodes(call=None):
      '''
      List VMs on this Azure account
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes function must be called with -f or --function.'
          )
  
      ret = {}
  
      nodes = list_nodes_full()
      for node in nodes:
          ret[node] = {'name': node}
          for prop in ('id', 'image', 'size', 'state', 'private_ips', 'public_ips'):
              ret[node][prop] = nodes[node].get(prop)
      return ret
docs: List VMs on this Azure account