Downloading VM template

  1. Home
  2. Downloading VM template

This tutorial will explain you the ways of Downloading VM template. A Resource Manager template is automatically produced when you build a VM in Azure using the interface or PowerShell. This template may be used to easily reproduce a deployment. A resource group’s template provides information about all of the resources in that group. This indicates that the template for a virtual machine includes everything that is built-in support of the VM in that resource group, including networking resources.

Download the template using the portal

  1. Firstly, Log in to the Azure portal.
  2. Subsequently, One the left menu, select Virtual Machines.
  3. Select the virtual machine from the list.
  4. Also,Select Export template.
  5. Furthermore, Select Download from the menu at the top and save the .zip file to your local computer.
  6. Lastly, Open the .zip file and extract the files to a folder. The .zip file contains:
    • parameters.json
    • template.json

The template.json file is the template.

Download the template using PowerShell

You may also use the Export-AzResourceGroup cmdlet to get the.json template file. The -path argument can be used to specify the filename and directory for the.json file. This example demonstrates how to save the template for the resource group named myResourceGroup to your local computer’s C:\users\public\downloads folder.

free practice test for AZ- 303 and learn to Downloading VM template

Go back to home page

Reference documentation – Download the template for a VM

Menu