0
votes

From a resource in Azure, I can Export template.

enter image description here

I saw those documents:

but none of them explain how to run the Export template.

How can I run this template to recreate the entire resource group with all resources? Also, I want to add a parameter related to the job. For example, every resource has to have this job number in the name.

1
Could you please describe your issue in detail?Jim Xu

1 Answers

0
votes

you could deploy ARM template with powershell, CLI, Azure portal(via REST API), REST API and more. you can check the How to deploy templates series of ARM template on MS docs. it's very much detailed.

eg: powershell deployment option with template + parameters

New-AzResourceGroupDeployment -Name ExampleDeployment -ResourceGroupName ExampleResourceGroup `
  -TemplateFile <path-to-template> `
  -TemplateParameterFile <path-to-parameters>