» azurerm_data_factory

Manage an Azure Data Factory (Version 2).

» Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example"
  location = "northeurope"
}

resource "azurerm_data_factory" "example" {
  name                = "example"
  location            = "${azurerm_resource_group.example.location}"
  resource_group_name = "${azurerm_resource_group.example.name}"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.

  • resource_group_name - (Required) The name of the resource group in which to create the Data Factory.

  • location - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • identity - (Optional) An identity block as defined below.

  • github_configuration - (Optional) A github_configuration block as defined below.

  • vsts_configuration - (Optional) A vsts_configuration block as defined below.

  • tags - (Optional) A mapping of tags to assign to the resource.


A identity block supports the following:

  • type - (Required) Specifies the identity type of the Data Factory. At this time the only allowed value is SystemAssigned.

A github_configuration block supports the following:


A vsts_configuration block supports the following:

  • account_name - (Required) Specifies the VSTS account name.

  • branch_name - (Required) Specifies the branch of the repository to get code from.

  • project_name - (Required) Specifies the name of the VSTS project.

  • repository_name - (Required) Specifies the name of the git repository.

  • root_folder - (Required) Specifies the root folder within the repository. Set to / for the top level.

  • tenant_id - (Required) Specifies the Tenant ID associated with the VSTS account.

» Attributes Reference

The following attributes are exported:

  • id - The Data Factory ID.

» Import

Data Factory can be imported using the resource id, e.g.

terraform import azurerm_data_factory.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example