Share via

How to lock a Azure SQL login after N unsuccessful login attempts?

Leon Leung 1 Reputation point
Jul 7, 2021, 11:24 PM

Hi, Is there a way to lock a Azure SQL login after N unsuccessful login attempts for security purpose.

Thank you.

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 34,566 Reputation points MVP
    Jul 8, 2021, 1:47 AM

    Azure SQL logins associated with Azure AD can be configured with smart lockout as explained here.

    A possible solution for SQL logins (non-Azure AD logins) could be to configure Azure SQL auditing as explained here. You can read the Audit entries from Azure Storage Account as explained here and then issue ALTER LOGIN DISABLE for those logins exceeding X failed login attempts. You can automate the process using Azure Automation.


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.