Converting ARM Template to Terraform

Viewed 11422

Has anyone worked on converting the ARM template to Terraform file?

I understand that we can use "azurerm_template_deployment" resource in Terraform to deploy the ARM template but there are limitations and I am looking trying to find a way to directly convert ARM template to Terraform .tf file

3 Answers

It cannot be converted directly, but terraform can deploy arm templates using the azurerm_template_deployment resource. When setting the deployment type to 'complete', TF should also destroy the resource!

See the following link for an example that destroying also works: https://samcogan.com/deploying-arm-templates-with-terraform/.

Related