Costa Rica
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 hitDataFactoryNameInUseand need to changedata_factory_name.
- 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.
| 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" } |
-
Authenticate:
az login
az account show # If needed: az account set --subscription "<subscription-id-or-name>"
-
Initialize:
terraform init -upgrade
-
Validate and plan:
terraform validate terraform plan
-
Apply:
terraform apply -auto-approve


