code: def list_services(kwargs=None, conn=None, call=None):
      '''
      .. versionadded:: 2015.8.0
  
      List hosted services associated with the account
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -f list_services my-azure
      '''
      if call != 'function':
          raise SaltCloudSystemExit(
              'The list_services function must be called with -f or --function.'
          )
  
      if not conn:
          conn = get_conn()
  
      data = conn.list_hosted_services()
      ret = {}
      for item in data.hosted_services:
          ret[item.service_name] = object_to_dict(item)
          ret[item.service_name]['name'] = item.service_name
      return ref list_services(kwargs=None, conn=None, call=None):
      '''
      .. versionadded:: 2015.8.0
  
      List hosted services associated with the account
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -f list_services my-azure
      '''
      if call != 'function':
          raise SaltCloudSystemExit(
              'The list_services function must be called with -f or --function.'
          )
  
      if not conn:
          conn = get_conn()
  
      data = conn.list_hosted_services()
      ret = {}
      for item in data.hosted_services:
          ret[item.service_name] = object_to_dict(item)
          ret[item.service_name]['name'] = item.service_name
      return ret
docs: .. versionadded:: 2015.8.0
  
      List hosted services associated with the account
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -f list_services my-azure