def server_list(client, resource_group_name=None):
    """
    Lists servers in a resource group or subscription
    """
    if resource_group_name:
        return client.list_by_resource_group(resource_group_name=
            resource_group_name)
    return client.list()
