Encryption and Data Security in Azure: Disk Encryption, Storage and SQL Encryption, Customer-Managed Keys and Secure Transfer

Microsoft Certified Azure Administrator Associate AZ 103 50 min min read Updated: Nov 17, 2026 Intermediate
Encryption and Data Security in Azure: Disk Encryption, Storage and SQL Encryption, Customer-Managed Keys and Secure Transfer
Intermediate Topic 3 of 3

Encryption States

StateMeaningAzure examples
At restData stored on diskStorage, managed disks, SQL TDE, Cosmos DB
In transitData moving on the networkHTTPS/TLS, SMB 3 encryption, VPN
In useData being processedConfidential computing

Azure encrypts most data at rest by default using platform-managed keys (PMK) with no work. You can move to customer-managed keys (CMK) for control.

Key Choices

OptionYou controlNotes
Platform-managedNothingDefault, easiest
Customer-managed (Key Vault)Key rotation, access, revokeNeeds soft delete and purge protection
Managed HSMDedicated HSMStrict compliance

Disk Encryption

bash az keyvault key create --vault-name kv-demo-482 -n disk-key --kty RSA --size 3072 az disk-encryption-set create -g rg-sec -n des-prod -l centralindia --key-url $(az keyvault key show --vault-name kv-demo-482 -n disk-key --query key.kid -o tsv) \ --source-vault kv-demo-482 --identity-type SystemAssigned # give the set's identity "Key Vault Crypto Service Encryption User", then use it for new disks and VMs az vm create -g rg-vm -n secure01 --image Ubuntu2204 --encryption-at-host true --os-disk-encryption-set des-prod --admin-username azureuser --generate-ssh-keys
Disk optionNotes
Server-side encryptionDefault. PMK or CMK
Encryption at hostAlso encrypts temp disk and caches end to end
Azure Disk EncryptionBitLocker or dm-crypt in the guest OS using Key Vault
Confidential disk encryptionFor confidential VMs

Storage and Databases

bash # Require secure transfer and TLS 1.2 on storage az storage account update -n stdemo482 -g rg-demo --https-only true --min-tls-version TLS1_2 # Azure SQL: TDE is on by default. Check it az sql db tde show -g rg-data -s sql-demo-482 -d shopdb
  • TDE encrypts SQL data files. Optionally use a CMK (TDE protector in Key Vault)
  • Always Encrypted keeps sensitive columns encrypted so even admins cannot see them in the server
  • Dynamic data masking and row-level security reduce exposure

In Transit

  • Use HTTPS only on App Service, Storage and Application Gateway
  • Disable old TLS versions (1.0 and 1.1)
  • Use VPN or ExpressRoute with encryption for hybrid links
  • Use SMB 3 encryption for Azure Files

Key Rotation

  • Set a rotation policy on keys and use versionless URIs so services update to the new version
  • Never delete a key that still protects data. Without it the data is unrecoverable

Practice

  1. Create a disk encryption set with a customer-managed key
  2. Create a VM with encryption at host
  3. Turn on HTTPS only and TLS 1.2 on a storage account
  4. Check TDE status for an Azure SQL database

Conclusion

Azure encrypts data at rest by default. Use customer-managed keys when you need control, encrypt disks at host, require HTTPS and TLS 1.2, and protect keys with soft delete and purge protection.

Quick Summary: states; key choices; disks; storage and SQL; transit; rotation.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators