» azurerm_data_factory_trigger_schedule

Manages a Trigger Schedule inside a Azure Data Factory.

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

resource "azurerm_data_factory_pipeline" "test" {
  name                = "example"
  resource_group_name = "${azurerm_resource_group.test.name}"
  data_factory_name   = "${azurerm_data_factory.test.name}"
}

resource "azurerm_data_factory_trigger_schedule" "test" {
  name                = "example"
  data_factory_name   = "${azurerm_data_factory.test.name}"
  resource_group_name = "${azurerm_resource_group.test.name}"
  pipeline_name       = "${azurerm_data_factory_pipeline.test.name}"

  interval  = 5
  frequency = "Day"
}

» Argument Reference

The following arguments are supported:

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

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

  • pipeline_name - (Required) The Data Factory Pipeline name that the trigger will act on.

  • start_time - (Optional) The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.

  • end_time - (Optional) The time the Schedule Trigger should end. The time will be represented in UTC.

  • interval - (Optional) The interval for how often the trigger occurs. This defaults to 1.

  • frequency - (Optional) The trigger freqency. Valid values include Minute, Hour, Day, Week, Month. Defaults to Minute.

  • pipeline_parameters - (Optional) The pipeline parameters that the trigger will act upon.

  • annotations - (Optional) List of tags that can be used for describing the Data Factory Schedule Trigger.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Data Factory Schedule Trigger.

» Import

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

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