Azure Useful Queries

Log Analytics  // Percentiles Calculation search * | where Category == ‘SQLSecurityAuditEvents’ | order by event_time_t , server_principal_name_s ,duration_milliseconds_d | where database_name_s == “UserDB” | where server_principal_name_s == “databaselogin” | summarize percentiles(duration_milliseconds_d, 25, 50, 75, 90,95,99) by substring(statement_s, 0, 40) , server_principal_name_s ,application_name_s | where …

Azure SQL Database Connectivity Architecture

Azure SQL Database Connectivity Architecture Connection policy Azure SQL Database supports the following three options for the connection policy setting of a SQL Database server: Redirect (recommended): Clients establish connections directly to the node hosting the database. To enable connectivity, the clients must allow outbound firewall …

Azure Database Firewall Queries

— Server Level Firewall Rules SELECT * FROM sys.firewall_rules — Database Level Firewall Rules SELECT * FROM sys.database_firewall_rules — — Remove server level firewall setting EXECUTE sp_delete_firewall_rule N’AllowAllWindowsAzureIps’; — Remove database-level firewall setting EXECUTE sp_delete_database_firewall_rule N’Allow Azure’; — Add database-level firewall setting EXECUTE sp_set_database_firewall_rule N’Allow …

Videos Watched

Videos Watched   October 201 October 20 Meet My Next Guest, Richard M Stallman https://www.youtube.com/watch?v=VMM6D9vuHkY October 21 Monitor your infrastructure and analyze operational logs at scale with Azure Monitor – BRK3354 https://www.youtube.com/watch?v=_0ccWoScTyE Uncle” Bob Martin – “The Future of Programming https://www.youtube.com/watch?v=ecIWPzGEbFc October 29 The Principles …