- Lab
- A Cloud Guru
Enabling Encryption in Azure SQL
Part of what defines a modern cloud engineer’s role is privacy concerns. Between the GDPR and the various US states' attempts to govern PII, it has become more and more important that we understand how to secure data. In this hands-on lab, students will employ one of the most important and common data at rest protection mechanisms — Always Encrypted SQL data. We will build a SQL server and populate a database with sample data. Then, we'll connect and encrypt a targeted portion of that data.
Path Info
Table of Contents
-
Challenge
Use RDP to Connect to the Virtual Machine and Install SQL Server Management Studio
Use the Remote Desktop client (available from Microsoft for Windows clients natively and Mac clients here).
- Connect to the server via RDP, logging in with the provided lab credentials.
- Browse to this link and download SSMS.
-
Challenge
Connect to the SQL Server
- In the Azure portal, click the provisioned SQL server to open it.
- In Overview, copy the server name to the clipboard.
- Connect to the SQL server using the following values, replacing <SERVER_NAME> with your unique name copied from Azure:
- Server type: Database Engine
- Server name: <SERVER_NAME> (example: 5x4a345oyk6ya.database.windows.net)
- Authentication: SQL Server Authentication
- Login: acguser
- Password: <SERVER_NAME>! (example: 5x4a345oyk6ya!)
-
Challenge
Create an Azure Key Vault
In the Azure portal, create an Azure vault using the following values:
- Resource group: Existing resource group
- Key vault name: samplevault491512
- Region: Region where the resource group is located
- Leave the rest as their defaults and click Next: Access policy.
- In Key Permissions, ensure the following operations are not selected for the logged-in lab user:
Purge, Release, Rotate, Get Rotation Policy, and Set Rotation Policy
- Click Review + create > Create.
-
Challenge
Encrypt Some Data
- Return to the Remote Desktop client.
- In Object Explorer to the left, click Databases > SampleDB > Tables > SalesLT.Customer.
- Right-click on SalesLT.Customer and click Encrypt Columns.
- Click Next.
- In Column Selection, select FirstName, MiddleName, and LastName.
- In Encryption Type, select Deterministic for all three columns.
- Click Next.
- In Master Key Configuration, select Azure Key Vault and click Sign In.
- Sign in using the provided lab credentials.
- Click Next > Next > Finish.
- Sign in to the Azure account again.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.