.. versionadded:: 2019.2.0

    Ensure a load balancer does not exist in the resource group.

    :param name:
        Name of the load balancer.

    :param resource_group:
        The resource group assigned to the load balancer.

    :param connection_auth:
        A dict with subscription and authentication parameters to be used in connecting to the
        Azure Resource Manager API.

def load_balancer_absent(name, resource_group, connection_auth=None):
    '''
    .. versionadded:: 2019.2.0

    Ensure a load balancer does not exist in the resource group.

    :param name:
        Name of the load balancer.

    :param resource_group:
        The resource group assigned to the load balancer.

    :param connection_auth:
        A dict with subscription and authentication parameters to be used in connecting to the
        Azure Resource Manager API.
    '''
    ret = {
        'name': name,
        'result': False,
        'comment': '',
        'changes': {}
    }

    if not isinstance(connection_auth, dict):
        ret['comment'] = 'Connection information must be specified via connection_auth dictionary!'
        return ret

    load_bal = __salt__['azurearm_network.load_balancer_get'](
        name,
        resource_group,
        azurearm_log_level='info',
        **connection_auth
    )

    if 'error' in load_bal:
        ret['result'] = True
        ret['comment'] = 'Load balancer {0} was not found.'.format(name)
        return ret

    elif __opts__['test']:
        ret['comment'] = 'Load balancer {0} would be deleted.'.format(name)
        ret['result'] = None
        ret['changes'] = {
            'old': load_bal,
            'new': {},
        }
        return ret

    deleted = __salt__['azurearm_network.load_balancer_delete'](name, resource_group, **connection_auth)

    if deleted:
        ret['result'] = True
        ret['comment'] = 'Load balancer {0} has been deleted.'.format(name)
        ret['changes'] = {
            'old': load_bal,
            'new': {}
        }
        return ret

    ret['comment'] = 'Failed to delete load balancer {0}!'.format(name)
    return ret