Skip to content

Latest commit

 

History

History
89 lines (65 loc) · 3.01 KB

File metadata and controls

89 lines (65 loc) · 3.01 KB

Terraform Template - Azure Data Factory

Costa Rica

GitHub brown9804

Last updated: 2026-02-11


This template contains Terraform configurations to create an Azure Data Factory instance with a system-assigned managed identity.

Note

  • This template creates the Resource Group for you.
  • Azure Data Factory names are globally unique. If you disable append_random_suffix, you may hit DataFactoryNameInUse and need to change data_factory_name.
image
image
image

File Descriptions

  • main.tf: Creates the Resource Group and Azure Data Factory.
  • variables.tf: Defines the input variables used in the Terraform configuration.
  • provider.tf: Configures the Azure provider to interact with Azure resources.
  • terraform.tfvars: Provides example values for the variables defined in variables.tf.
  • outputs.tf: Defines outputs such as the Data Factory ID and managed identity principal ID.

Variables

Variable Name Description Type Example Value
resource_group_name Resource Group name to create/deploy into. string "rg-analytics-dev"
location Azure region for the deployment. string "eastus"
data_factory_name Base Azure Data Factory name. If random suffix is enabled, final name is <base>-<suffix>. string "adf-analytics-dev"
append_random_suffix Append a random suffix to avoid global name collisions. bool true
random_suffix_length Length of the random suffix when enabled. number 6
public_network_enabled Enable/disable public network access for Data Factory. bool true
tags Tags applied to resources. map(string) { "env": "dev" }

Usage

  1. Authenticate:

    az login
    az account show
    # If needed:
    az account set --subscription "<subscription-id-or-name>"
  2. Initialize:

    terraform init -upgrade
  3. Validate and plan:

    terraform validate
    terraform plan
  4. Apply:

    terraform apply -auto-approve
Total views

Refresh Date: 2026-02-18