Azure SQL DB firewall traffic connection log, how to?

Razzi29 336 Reputation points
2023-08-18T16:15:09.9533333+00:00

I have an Azure SQL database and I have firewall rules on the database to allow certain IPs, where can I look for detailed logs to see if an IP source is getting blocked?

Azure SQL Database
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,249 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Best, Ed 31 Reputation points
    2024-06-13T20:22:33.2033333+00:00

    This entire subject is a web of lies.

    1 person found this answer helpful.
    0 comments No comments

  2. Vahid Ghafarpour 22,305 Reputation points
    2023-08-18T17:34:12.44+00:00

    You can use this article:

    https://techcommunity.microsoft.com/t5/azure-observability/log-analytics-query-to-create-a-alert-for-ip-s-blocked-by/m-p/442819

    Or you can use this different KQL query to find blocked IP addresses.

    AzureDiagnostics
    | where ResourceId == "<your-database-resource-id>"
    | where Category == "FirewallRule"
    | where Properties_s == "Blocked"
    | project TimeGenerated, Resource, Properties
    
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.