Try Now

How to Use Azure Templates for Automation

Table of Contents

 

 

Post Featured Image

This blog article is intended for technical staff who deploy resources in Microsoft Azure. The starting point when deploying Azure resources is the Azure Portal. This is where the Azure Services are configured.

An important issue is that resources can be created in a standardised way in order to ideally always get the same end result.

But what to do?

We have known this feature in virtual environments for a long time. Existing virtual machines are used to generate templates from them.

Subsequently, these are rolled out as often as required, depending on demand and capacity.

With Azure, the process is somewhat different. If we create a resource, e.g. a virtual machine, in the last step, if we have filled in everything correctly. There is the option to export the configuration once - for this purpose we select the item "Download a template for automation":

01_create a virtual machine

The JSON file is displayed on the next page. In the upper area I have the option of downloading the file, saving it in the library or deploying the template directly.

02_template gallery download

By choosing download, a ZIP file is created and downloaded; when "Add to Library" is selected, the template ends up in the Template Gallery.
This gallery can be found in the portal at the "Template Specs".

03_template specs

In this template spec, I can now select the referring template and deploy it. If I have downloaded the ZIP file, I can import it via the Marketplace:

04_create a resource

In the following dialogue, I can now add the content of the JSON file, or also add it from existing templates from the template spec.
In addition, there are preconfigured templates from Microsoft Azure that simplify the creation, too.

05_custom deployment

The templates provide the company with many possibilities to create resources in a standardised and secure way. The main advantage is that we are not only limited to virtual machines but can also automate apps, access points such as Azure Gateway & Loadbalancer or SQL databases.

 

Good2know

ActionPacks for Azure

ScriptRunner helps you create resources in Azure. Many scripts are available in our ActionPacks that make it easier to create and manage resources.

Before you start running Azure scripts, make sure that the ScriptRunner server has been set up correctly to perform actions in Azure. The appropriate Azure modules must be present on the server. Our Trial Guide describes how to perform the integration. ("Registering ScriptRunner with Azure AD")

After downloading our software free of charge, our documentation guides you, and if the trial guide cannot answer your question, our support will be happy to help. Have fun testing!

06_azure action packs

 

 

Click here for the ActionPacks!

 

 

Related Links

Related Posts

9 min read

The Hidden, The Obfuscated

About the author: