def METHOD_NAME(event_tracking_id: Optional[str] = None,
                                                                       filter: Optional[str] = None,
                                                                       opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListSecurityAdvisoryImpactedResourceByTenantIdAndEventIdResult:
    """
    Lists impacted resources in the tenant by an event (Security Advisory).
    :param str event_tracking_id: Event Id which uniquely identifies ServiceHealth event.
    :param str filter: The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
    """
    __args__ = dict()
    __args__['eventTrackingId'] = event_tracking_id
    __args__['filter'] = filter
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:resourcehealth/v20230701preview:listSecurityAdvisoryImpactedResourceByTenantIdAndEventId', __args__, opts=opts, typ=ListSecurityAdvisoryImpactedResourceByTenantIdAndEventIdResult).value
    return AwaitableListSecurityAdvisoryImpactedResourceByTenantIdAndEventIdResult(
        next_link=pulumi.get(__ret__, 'next_link'),
        value=pulumi.get(__ret__, 'value'))