def _server_list_custom_func(
        client,
        resource_group_name=None):
    """
    List servers by resource group name or subscription
    """

    if resource_group_name:
        return client.list_by_resource_group(resource_group_name)
    return client.list()