Azure ARM to Terraform Converter - Convert Azure Resource Manager to Terraform HCL
Free online tool to convert Azure ARM templates to Terraform configuration. Generate Terraform HCL from ARM JSON or YAML instantly.
Loading ARM to Terraform Converter...
How to Convert Azure ARM Templates to Terraform - Complete Guide
Input Your Azure ARM Template
Start by providing your Azure Resource Manager template. Whether you're migrating from ARM to Terraform or modernizing your Azure Infrastructure as Code:
.json or .template filesAutomatic Conversion Process
Our intelligent converter analyzes your ARM template and generates idiomatic Terraform HCL using the azurerm provider:
parameters(), variables(), resourceId() to Terraform syntaxReview Generated Terraform Code
Review the generated main.tf configuration. The converter creates production-ready Terraform code for Azure:
Download and Deploy with Terraform
Deploy your Azure infrastructure with Terraform:
main.tf to your project directoryterraform init to download the azurerm provideraz login to authenticate with Azureterraform apply to provision Azure resourcesFrequently Asked Questions
Which Azure resources are supported?
The converter supports 40+ Azure resource types including Virtual Machines, Virtual Networks, Storage Accounts, AKS clusters, App Services, SQL databases, CosmosDB, Container Registries, Key Vaults, Application Insights, and more.
How are ARM template functions handled?
Common ARM template functions are converted: parameters() becomes variables, variables() becomes locals, resourceId() becomes resource references. Complex expressions may need manual review.
Is the generated code production-ready?
The generated Terraform provides a solid starting point. Review the output, adjust resource properties as needed, and run terraform plan before deploying. ARM-specific features like nested deployments may need manual translation.
Can I import existing Azure resources?
Yes! After generating Terraform code, use terraform import to manage existing Azure resources that match your template. This allows you to adopt existing infrastructure without recreation.
Is my ARM template secure during conversion?
Absolutely! All conversion happens client-side in your browser. Your ARM templates, Azure configurations, and sensitive data never leave your computer or get sent to any server.
What about Azure Bicep files?
Bicep files need to be compiled to ARM templates first using az bicep build, then the resulting ARM JSON can be converted to Terraform.
Related Tools
CloudFormation to Terraform
Convert AWS CloudFormation templates to Terraform HCL configuration
Terraform to CloudFormation
Convert Terraform HCL configurations to AWS CloudFormation templates in YAML or JSON
Ansible to Terraform
Convert Ansible playbooks to Terraform HCL for AWS, Azure, and GCP resources
ARM to Bicep
Convert Azure Resource Manager (ARM) templates to Bicep with modern syntax and improved readability
Bicep to ARM
Convert Bicep files to Azure Resource Manager (ARM) JSON templates for deployment and tooling compatibility
CloudFormation to Pulumi
Convert AWS CloudFormation templates to Pulumi TypeScript for modern infrastructure as code