Azure SQL Database – Security

Table of Contents: Authentication | Encryption | Firewall | Auditing | Compliance

Authentication & Authorization Key Feature

Azure SQL Database supports multiple authentication methods to ensure only legitimate users can access your data.

Example: Enabling AAD Authentication

az sql server ad-admin create \
    --resource-group MyResourceGroup \
    --server myserver \
    --display-name "Contoso Admin" \
    --object-id 11111111-2222-3333-4444-555555555555

Encryption

Data is protected at rest and in transit using industry‑standard encryption.

Enabling Transparent Data Encryption

ALTER DATABASE MyDatabase SET ENCRYPTION ON;

Configuring Always Encrypted

Use the Azure portal or SqlPackage to define column encryption settings.

Network Security – Firewall

Control inbound traffic using server‑level and database‑level firewall rules.

Adding a Server‑Level Firewall Rule

az sql server firewall-rule create \
    --resource-group MyResourceGroup \
    --server myserver \
    --name AllowOfficeIP \
    --start-ip-address 203.0.113.0 \
    --end-ip-address 203.0.113.255

Auditing & Threat Detection

Continuous monitoring helps detect suspicious activities.

Enable Auditing via Azure Portal

Navigate to SQL databases → Your DB → Auditing and select a storage destination.

Compliance & Certifications

Azure SQL Database complies with major standards:

Best Practices

  1. Use Azure AD authentication with MFA.
  2. Enable Transparent Data Encryption and Always Encrypted for sensitive columns.
  3. Restrict network access with Private Link and firewall rules.
  4. Turn on Advanced Threat Protection and Auditing.
  5. Regularly run Vulnerability Assessment scans.

Additional Resources