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
- Firstly, Log in to the Azure portal.
- Subsequently, One the left menu, select Virtual Machines.
- Select the virtual machine from the list.
- Also,Select Export template.
- Furthermore, Select Download from the menu at the top and save the .zip file to your local computer.
- 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.
Reference documentation – Download the template for a VM