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
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With