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 that builds and supports an internal inventory system. 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 and defined standards in place. 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. In the search bar at the top of the portal, search for and select Template Specsto view the template.
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 using an in-private window

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.

NOTE: Once the template is created and added to the library, it is now found by searching for the service Template Specs.

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?