SlideShare a Scribd company logo
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
Access Azure SQL from Azure VMs through the Microsoft Azure backbone network
without the need for internet endpoints on the SQL Server
Securing your Azure SQL Server
Mitesh Chauhan
Why should we use service endpoints ?
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
Access Azure SQL from Azure VMs through the Microsoft Azure backbone network
without the need for internet endpoints on the SQL Server.
• Neater way to access SQL from Azure VNET (No NAT device, load balancer or SQL public IP required)
• If using forced tunnelling, you can now access SQL Server directly
Notes
• Service endpoints are applied at the subnet level, consider this in your virtual network design
• VNET and SQL Server must be in the same region, can be in different subscriptions
• There can be many unique service endpoints per subnet
• Accessing SQL via service endpoints does NOT mean the SQL Server becomes part of your virtual network
SQL Database Server with Internet Endpoints
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
SQL Database Server with Service Endpoints
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
Steps required for connecting SQL Server to Subnet
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
VNET
Create a service endpoint on your subnet
• Specify which service (SQL) in which region can access the Subnet
Azure SQL Server
Create SQL Server Firewall Rule to connect to service endpoint for the subnet.
• Specify which Service Endpoint in which vnet/ subnet to allow connections from.
Network Security Group (NSG = Layer 4 Firewall Rules)
Allow SQL traffic from desired region.
• Attach NSG to required subnet
Tips To Secure Your SQL Server Further
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
1. Use NSGs to lock down access to only the SQL service and region required
We can select SQL or Storage for the service endpoint. We can then specify the service and the region in an NSG
Security Features available for your production databases / servers
2. Enable Auditing and Threat Detection
3. Databases are encrypted by default. Microsoft Manage the encryption and keys.
• Option to Bring Your Own Keys is also available.
Tips To Secure Your SQL Server Further
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
Use Dynamic Data Masking to protect personal data – Create Rules
Enable dynamic data masking on your columns in your tables that have personally identifiable information.
Tips To Secure Your SQL Server Further
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
Use Dynamic Data Masking to protect personal data - Results
Any non admin accounts (that have not been excluded) will only see masked data.
Example
Masking rule on customertable,
EmailAddress Column
RESULT > > >
Additional Reference
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
Subnet View
• One service endpoint created
• Service endpoint allows access FROM selected Azure SQL
Services
Additional Reference
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
NSG Inbound Firewall Rules View
• Rules are applied to all VMs in the subnet the NSG is attached to
• Rule 110 = Known IP address has RDP access
• Rule 200 = Allow access FROM the SQL Service running in the Azure East US Region
• No Outbound rules configured (default is to allow all outbound traffic).
Additional Reference
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
Azure SQL Server Firewall Rules View
• Access to all Azure Services switched Off
• No Internet endpoint rules configured
• (client IP address shown for info only)
• Subnet with the service endpoint Selected
Additional Reference
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
SQL Server Security Settings View
• Auditing and Threat Detection Enabled
• Notification Email Set
• Database Encryption Enabled (by default) with Microsoft Managed Keys.
Microsoft Source Reference
Mitesh.chauhan@outlook.com
@miteshchauhanuk
Miteshc.wordpress.com
• Use Virtual Network service endpoints and rules for Azure SQL Database
• https://docs.microsoft.com/en-us/azure/sql-database/sql-database-vnet-service-endpoint-rule-overview
• Virtual Network Service Endpoints
• https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-overview#key-benefits

More Related Content

PPTX
What's New in ASP.NET Identity - TRINUG Sept 2014
PPTX
Exam 70-533 Module 2 -Lesson 2 (Part 1) Implementing and managing virtual net...
PPTX
Identity in ASP.NET Core
ODP
Authentication & Authorization in ASPdotNet MVC
PPTX
Microsoft asp.net identity security
PPTX
48. Azure Active Directory - Part 1
PPTX
Get Started With Microsoft Azure Cloud Service
PDF
Microservices with Spring Boot Tutorial | Edureka
What's New in ASP.NET Identity - TRINUG Sept 2014
Exam 70-533 Module 2 -Lesson 2 (Part 1) Implementing and managing virtual net...
Identity in ASP.NET Core
Authentication & Authorization in ASPdotNet MVC
Microsoft asp.net identity security
48. Azure Active Directory - Part 1
Get Started With Microsoft Azure Cloud Service
Microservices with Spring Boot Tutorial | Edureka

What's hot (13)

PPT
SQL Server 2008 Security Overview
PPTX
Asp.net identity dot netconf
PPTX
Dnc2015 azure-microservizi-vforusso
PPTX
Microsoft Azure Training - [3] Azure Accounts, Subscriptions and Admin Roles ...
PPTX
Asp.Net Identity
PPSX
ZubZib Black Coffee #9 - ASP.NET Identity
PPTX
Sql injection
PPT
ASP.NET 13 - Security
PPT
SynapseIndia dotnet website security development
PPTX
Rc2010 alt architecture
PPTX
What's new in visual studio 2013
PPTX
Introduction to lightning components
KEY
SQL Server: Security
SQL Server 2008 Security Overview
Asp.net identity dot netconf
Dnc2015 azure-microservizi-vforusso
Microsoft Azure Training - [3] Azure Accounts, Subscriptions and Admin Roles ...
Asp.Net Identity
ZubZib Black Coffee #9 - ASP.NET Identity
Sql injection
ASP.NET 13 - Security
SynapseIndia dotnet website security development
Rc2010 alt architecture
What's new in visual studio 2013
Introduction to lightning components
SQL Server: Security
Ad

Similar to Securing Azure Sql Server (20)

PPTX
Demystifying azure networking for on premises-azure databases
PPTX
Design a Secure Azure IaaS - Lesson Learnt from Government Cloud
PPTX
Securing an Azure full-PaaS architecture - Data saturday #0001 Pordenone
PPTX
[Toroman/Kranjac] Red Team vs. Blue Team in Microsoft Cloud
PPTX
Azure Network Security Groups (NSG)
PDF
Windows azure sql_database_security_isug012013
PDF
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
PDF
O365Con18 - Red Team vs Blue Team - Sasha Kranjac & Mustafa Toroman
PPTX
A_Z-_104_T0_0_A-EN_U-Power_Point_04.pptx
PPTX
Securing your data with Azure SQL DB
PPTX
ciplaasfqewfefewtwegndkvndsgjbsdz-dfafd.pptx
PDF
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
PDF
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
PDF
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
PPTX
Enter The Matrix Securing Azure’s Assets
PDF
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
PPTX
JoTechies - Azure SQL DB
PDF
Working with azure database services platform
PPTX
Sql server lesson11
PPTX
Securing your data with Azure SQL DB
Demystifying azure networking for on premises-azure databases
Design a Secure Azure IaaS - Lesson Learnt from Government Cloud
Securing an Azure full-PaaS architecture - Data saturday #0001 Pordenone
[Toroman/Kranjac] Red Team vs. Blue Team in Microsoft Cloud
Azure Network Security Groups (NSG)
Windows azure sql_database_security_isug012013
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
O365Con18 - Red Team vs Blue Team - Sasha Kranjac & Mustafa Toroman
A_Z-_104_T0_0_A-EN_U-Power_Point_04.pptx
Securing your data with Azure SQL DB
ciplaasfqewfefewtwegndkvndsgjbsdz-dfafd.pptx
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
Enter The Matrix Securing Azure’s Assets
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
JoTechies - Azure SQL DB
Working with azure database services platform
Sql server lesson11
Securing your data with Azure SQL DB
Ad

Recently uploaded (20)

PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Machine learning based COVID-19 study performance prediction
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
The Rise and Fall of 3GPP – Time for a Sabbatical?
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectral efficient network and resource selection model in 5G networks
Unlocking AI with Model Context Protocol (MCP)
Programs and apps: productivity, graphics, security and other tools
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
Electronic commerce courselecture one. Pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Digital-Transformation-Roadmap-for-Companies.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Machine learning based COVID-19 study performance prediction
Review of recent advances in non-invasive hemoglobin estimation
Chapter 3 Spatial Domain Image Processing.pdf

Securing Azure Sql Server

  • 1. Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com Access Azure SQL from Azure VMs through the Microsoft Azure backbone network without the need for internet endpoints on the SQL Server Securing your Azure SQL Server Mitesh Chauhan
  • 2. Why should we use service endpoints ? Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com Access Azure SQL from Azure VMs through the Microsoft Azure backbone network without the need for internet endpoints on the SQL Server. • Neater way to access SQL from Azure VNET (No NAT device, load balancer or SQL public IP required) • If using forced tunnelling, you can now access SQL Server directly Notes • Service endpoints are applied at the subnet level, consider this in your virtual network design • VNET and SQL Server must be in the same region, can be in different subscriptions • There can be many unique service endpoints per subnet • Accessing SQL via service endpoints does NOT mean the SQL Server becomes part of your virtual network
  • 3. SQL Database Server with Internet Endpoints Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com
  • 4. SQL Database Server with Service Endpoints Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com
  • 5. Steps required for connecting SQL Server to Subnet Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com VNET Create a service endpoint on your subnet • Specify which service (SQL) in which region can access the Subnet Azure SQL Server Create SQL Server Firewall Rule to connect to service endpoint for the subnet. • Specify which Service Endpoint in which vnet/ subnet to allow connections from. Network Security Group (NSG = Layer 4 Firewall Rules) Allow SQL traffic from desired region. • Attach NSG to required subnet
  • 6. Tips To Secure Your SQL Server Further Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com 1. Use NSGs to lock down access to only the SQL service and region required We can select SQL or Storage for the service endpoint. We can then specify the service and the region in an NSG Security Features available for your production databases / servers 2. Enable Auditing and Threat Detection 3. Databases are encrypted by default. Microsoft Manage the encryption and keys. • Option to Bring Your Own Keys is also available.
  • 7. Tips To Secure Your SQL Server Further Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com Use Dynamic Data Masking to protect personal data – Create Rules Enable dynamic data masking on your columns in your tables that have personally identifiable information.
  • 8. Tips To Secure Your SQL Server Further Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com Use Dynamic Data Masking to protect personal data - Results Any non admin accounts (that have not been excluded) will only see masked data. Example Masking rule on customertable, EmailAddress Column RESULT > > >
  • 9. Additional Reference Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com Subnet View • One service endpoint created • Service endpoint allows access FROM selected Azure SQL Services
  • 10. Additional Reference Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com NSG Inbound Firewall Rules View • Rules are applied to all VMs in the subnet the NSG is attached to • Rule 110 = Known IP address has RDP access • Rule 200 = Allow access FROM the SQL Service running in the Azure East US Region • No Outbound rules configured (default is to allow all outbound traffic).
  • 11. Additional Reference Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com Azure SQL Server Firewall Rules View • Access to all Azure Services switched Off • No Internet endpoint rules configured • (client IP address shown for info only) • Subnet with the service endpoint Selected
  • 12. Additional Reference Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com SQL Server Security Settings View • Auditing and Threat Detection Enabled • Notification Email Set • Database Encryption Enabled (by default) with Microsoft Managed Keys.
  • 13. Microsoft Source Reference Mitesh.chauhan@outlook.com @miteshchauhanuk Miteshc.wordpress.com • Use Virtual Network service endpoints and rules for Azure SQL Database • https://docs.microsoft.com/en-us/azure/sql-database/sql-database-vnet-service-endpoint-rule-overview • Virtual Network Service Endpoints • https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-overview#key-benefits