» 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) Anidentityblock as defined below. -
github_configuration- (Optional) Agithub_configurationblock as defined below. -
vsts_configuration- (Optional) Avsts_configurationblock 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 isSystemAssigned.
A github_configuration block supports the following:
-
account_name- (Required) Specifies the GitHub account name. -
branch_name- (Required) Specifies the branch of the repository to get code from. -
git_url- (Required) Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. Use https://github.com for open source repositories. -
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.
Note: You must log in to the Data Factory management UI to complete the authentication to the GitHub repository.
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