Implement a SQL Server Database on an Azure VM

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab scenario, your organization, Awesome Company, is reducing its on-site footprint and moving as many databases as possible to the cloud. Part of this project involves migrating multiple local SQL Server databases to Azure. Some of these have transitioned to use PaaS solutions like Azure SQL Database, but others require more access to the operating system and the ability to install additional software. As the Database Administrator, you are provisioning an instance using SQL Server on Virtual Machines. To minimize the time and effort required, you are going to utilize an Azure Marketplace image to accomplish this and restore a backup of your on-site database to the new machine.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Deploy a VM with SQL Server Using Azure Marketplace
  1. Create sql server 2019 on Windows Server 2019.
  2. Connect to the newly created SQL server.
Restore a SQL Server Database from a Prior Backup
  1. Once you are in the VM, close out the Server Manager.
  2. Open Internet Explorer, click through the many prompts choosing the defaults, and paste in the following link:
    
https://github.com/linuxacademy/content-azure-database-administrator-associate/blob/master/Hands-on%20Labs/Implement%20an%20SQL%20Server%20database%20on%20an%20Azure%20VM/acweb.bak
  3. Add the certificates and download the acweb.bak file to the Windows machine.
  4. Copy the acweb.bak file to: Windows (C:) >> Program Files >> Microsoft SQL Server >> MSSQL15MSSQLSERVER >> MSSQL >> Backup
  5. Use the .bak file and Microsoft SQL Server Tools 18 >> Microsoft SQL Server Management to restore the SQL server, created in the first learning objective.

Note: It will take some time to connect to the Microsoft SQL Server Management. Don’t forget to water any plants you have!

Additional Resources

In this hands-on lab scenario, your organization, Awesome Company, is reducing its on-site footprint and moving as many databases as possible to the cloud. Part of this project involves migrating multiple local SQL Server databases to Azure. Some of these have transitioned to use PaaS solutions like Azure SQL Database, but others require more access to the operating system and the ability to install additional software. As the Database Administrator, you are provisioning an instance using SQL Server on Virtual Machines. To minimize the time and effort required, you are going to utilize an Azure Marketplace image to accomplish this and restore a backup of your on-site database to the new machine

Log in to the Azure portal using the credentials in this lab and the Open Azure Portal button.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?