» azurerm_data_factory

Manages an Azure Data Factory (Version 2).

» Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  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.

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

  • identity - (Optional) An identity 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 github_configuration block supports the following:

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 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 ID of the Data Factory.

  • identity - An identity block as defined below.

The identity block exports the following:

  • principal_id - The ID of the Principal (Client) in Azure Active Directory

  • tenant_id - The ID of the Azure Active Directory Tenant.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the Data Factory.
  • update - (Defaults to 30 minutes) Used when updating the Data Factory.
  • read - (Defaults to 5 minutes) Used when retrieving the Data Factory.
  • delete - (Defaults to 30 minutes) Used when deleting the Data Factory.

» 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