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

    Ensure a security rule does not exist in the network security group.

    :param name:
        Name of the security rule.

    :param security_group:
        The network security group containing the security rule.

    :param resource_group:
        The resource group assigned to the network security group.

    :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

    rule = __salt__['azurearm_network.security_rule_get'](
        name,
        security_group,
        resource_group,
        azurearm_log_level='info',
        **connection_auth
    )

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

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

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

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

    ret['comment'] = 'Failed to delete security rule {0}!'.format(name)
    return ret
.. versionadded:: 2019.2.0

    Ensure a security rule does not exist in the network security group.

    :param name:
        Name of the security rule.

    :param security_group:
        The network security group containing the security rule.

    :param resource_group:
        The resource group assigned to the network security group.

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