Template includes only the properties needed for the deployment. You might want to remove or clean up these properties before reusing the template. Template includes all properties for the resources, including some properties you wouldn't normally set during deployment. You can't pick a subset of those resources or add resources that were added at a different time. You can select which resources from a resource group to export.Īll resources for a specific deployment are included.
Any manual changes you made after deployment aren't included. Template only shows state of resources at the time of deployment. It includes any manual changes you made after deployment. Template is snapshot of the resources' current state. It's ready to be redeployed without any changes. Template is an exact copy of the one created by the template author. You'll probably want to improve the code before deploying it. You specify the deployment from the deployment history.ĭepending on the option you choose, the exported templates have different qualities. This option retrieves an exact copy of a template used for deployment. You can export an entire resource group or specific resources within that resource group. The exported template is a "snapshot" of the current state of the resource group. This option generates a new template from existing resources. REST API export from resource group and REST API export from deployment history.Įxport from resource group or resource.
This article shows how to export templates through the portal. You can focus on exactly the resources you need in the template. Resource Manager enables you to pick one or more resources for exporting to a template. However, most exported templates require some modifications before they can be used to deploy Azure resources. The export template process attempts to create a usable template.
To automate future deployments, start with the exported template and modify it for your scenario. The exported template helps you understand the JSON syntax and properties that deploy your resources. To assist with creating Azure Resource Manager templates, you can export a template from existing resources.