@Cairn Yes, you can. Currently, there are two ways to export a template:
- Export from resource group or resource: This option generates a new template from existing resources. The exported template is a "snapshot" of the current state of the resource group. You can export an entire resource group or specific resources within that resource group.
- Export before deployment or from history: This option retrieves an exact copy of a template used for deployment.
Further, Resource Manager enables you to pick one or more resources for exporting to a template. You can focus on exactly the resources you need in the template and customize or reuse it accordingly. You can also use Azure CLI, Azure PowerShell, or REST API.
This article explains each option in detail: Single and multi-resource export to a template in Azure portal
Please also note the known limitations as well. Do let us know if you have further questions.