Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting ARM Template to Terraform [closed]

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

like image 830
chetan Avatar asked Apr 05 '20 00:04

chetan


People also ask

Can we convert ARM template to terraform?

If you already have ARM Templates, the rework to translate those into Terraform configuration files could be a frustrating time sink – but luckily, there is a solution! HashiCorp Terraform has a resource called azurerm_resource_group_template_deployment for the AzureRM provider.

Is ARM template same as terraform?

To choose between the two, consider your project's needs and features. For instance, Terraform stores credentials in plain text in the state file, while ARM templates do not have a state file. If you are an engineer concerned with securing your configuration files, you might choose ARM templates over Terraform.

Is bicep better than terraform?

Overall Terraform is the better choice for the all around tool. Powerful and popular IaC tool used by numerous organizations. With array of robust features, there is also a support for over 100 providers. Major benefit it works with main cloud providers and on premises solutions like VMware.

How do I deploy an ARM template to a resource group?

To deploy to a resource group, use the resource group deployment commands. For Azure CLI, use az deployment group create. The following example deploys a template to create a resource group. The resource group you specify in the --resource-group parameter is the target resource group.


1 Answers

I'm not aware of any tools available to convert ARM template to TF. I have used "azurerm_template_deployment" and I'm happy about it. My case was limited though.

Refer this github issue for more details, https://github.com/terraform-providers/terraform-provider-azurerm/issues/1115

like image 145
user3362908 Avatar answered Oct 04 '22 00:10

user3362908