When selecting my B2C tenant, the Azure Portal shows the following message:
"Looking for Log Analytics? In Log Analytics you can search for performance, diagnostics, health logs, and more. Visit Log Analytics"
So I click " Visit Log Analytics"
and then "Failed Signin reasons" (Run).

The shown query is generated and its table and known to exist
but still the table name can't be resolved.... How do I make this work?

Initially, I ran that query without configuring
Diagnostic settingsfor my B2C tenant and got same error as below:Response:
To resolve the error, make sure to set up monitoring for your B2C tenant before running KQL queries.
In my case, I followed this MS Document and configured monitoring by adding Diagnostic setting for my B2C tenant like this:
When I ran same KQL query after some time in configured Log Analytics workspace, I got the results successfully as below:
Response:
Reference:
Monitor Azure AD B2C with Azure Monitor - Azure AD B2C | Microsoft