» azurerm_data_factory_linked_service_postgresql

Manage a Linked Service (connection) between PostgreSQL and Azure Data Factory.

» 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}"
}

resource "azurerm_data_factory_linked_service_postgresql" "example" {
  name                = "example"
  resource_group_name = "${azurerm_resource_group.test.name}"
  data_factory_name   = "${azurerm_data_factory.test.name}"
  connection_string   = "Host=example;Port=5432;Database=example;UID=example;EncryptionMethod=0;Password=example"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Data Factory Linked Service PostgreSQL. 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 Linked Service PostgreSQL. Changing this forces a new resource

  • data_factory_name - (Required) The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.

  • connection_string - (Required) The connection string in which to authenticate with PostgreSQL.

  • description - (Optional) The description for the Data Factory Linked Service PostgreSQL.

  • integration_runtime_name - (Optional) The integration runtime reference to associate with the Data Factory Linked Service PostgreSQL.

  • annotations - (Optional) List of tags that can be used for describing the Data Factory Linked Service PostgreSQL.

  • parameters - (Optional) A map of parameters to associate with the Data Factory Linked Service PostgreSQL.

  • additional_properties - (Optional) A map of additional properties to associate with the Data Factory Linked Service PostgreSQL.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Data Factory Linked Service.

» Import

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

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