Create and Save a Reusable ARM Template from an Existing Azure SQL Database

15 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Imagine you are a database administrator supporting a software development team. The team builds and supports an internal inventory system for Lowe Classic Games. When features are under development, you and the engineering manager agree to a standard Azure SQL Database configuration that will support each developer’s need for a robust testing environment, while still providing some guardrails to keep costs under control. You also want to contribute to a more streamlined workflow for developers. In this lab, you already have an Azure SQL Database that fits the agreed-upon standard, so you just need to create and save a reusable ARM template based on that deployed database, so that developers can quickly get up and running on feature development. **This is a beginner-level lab designed to introduce you to Azure’s capability to generate ARM templates from existing resources. No coding experience is required. Editing and troubleshooting ARM templates is beyond the scope of this lab, but check out our other labs and lessons to learn that skill.**

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Generate and Save an ARM Template
  1. In the Azure portal, navigate to either the database or the database server.
    • It doesn’t matter which — there is only 1 database on the server and the database depends on the server, so an identical template will be produced from both.
  2. Export the template.
  3. Un-select "Include parameters" to see the template regenerate.
  4. Download the template to your local drive.
  5. Add the template to the shared library.
  6. Navigate to the saved template in library to view (edit and save).
Optional: Deploy Template

You can try deploying the template, but due to restrictions in our lab environment, several steps will fail.

Nonetheless, you are free to try it and see what a failure looks like and drill into the troubleshooting details offered.

Additional Resources

Log in to the Azure portal using the credentials provided on the lab page. Be sure to use an incognito or private browser window to ensure you're using the lab account rather than your own.

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?