We recommend using Azure Native.
Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi
azure.datafactory.getTriggerSchedule
Explore with Pulumi AI
Use this data source to access information about a trigger schedule in Azure Data Factory.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.datafactory.getTriggerSchedule({
    name: "example_trigger",
    dataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.datafactory.get_trigger_schedule(name="example_trigger",
    data_factory_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1")
pulumi.export("id", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datafactory.LookupTriggerSchedule(ctx, &datafactory.LookupTriggerScheduleArgs{
			Name:          "example_trigger",
			DataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.DataFactory.GetTriggerSchedule.Invoke(new()
    {
        Name = "example_trigger",
        DataFactoryId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
    });
    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getTriggerScheduleResult => getTriggerScheduleResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.datafactory.DatafactoryFunctions;
import com.pulumi.azure.datafactory.inputs.GetTriggerScheduleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = DatafactoryFunctions.getTriggerSchedule(GetTriggerScheduleArgs.builder()
            .name("example_trigger")
            .dataFactoryId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1")
            .build());
        ctx.export("id", example.applyValue(getTriggerScheduleResult -> getTriggerScheduleResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      Function: azure:datafactory:getTriggerSchedule
      Arguments:
        name: example_trigger
        dataFactoryId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1
outputs:
  id: ${example.id}
Using getTriggerSchedule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTriggerSchedule(args: GetTriggerScheduleArgs, opts?: InvokeOptions): Promise<GetTriggerScheduleResult>
function getTriggerScheduleOutput(args: GetTriggerScheduleOutputArgs, opts?: InvokeOptions): Output<GetTriggerScheduleResult>def get_trigger_schedule(data_factory_id: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetTriggerScheduleResult
def get_trigger_schedule_output(data_factory_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetTriggerScheduleResult]func LookupTriggerSchedule(ctx *Context, args *LookupTriggerScheduleArgs, opts ...InvokeOption) (*LookupTriggerScheduleResult, error)
func LookupTriggerScheduleOutput(ctx *Context, args *LookupTriggerScheduleOutputArgs, opts ...InvokeOption) LookupTriggerScheduleResultOutput> Note: This function is named LookupTriggerSchedule in the Go SDK.
public static class GetTriggerSchedule 
{
    public static Task<GetTriggerScheduleResult> InvokeAsync(GetTriggerScheduleArgs args, InvokeOptions? opts = null)
    public static Output<GetTriggerScheduleResult> Invoke(GetTriggerScheduleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTriggerScheduleResult> getTriggerSchedule(GetTriggerScheduleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure:datafactory/getTriggerSchedule:getTriggerSchedule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DataFactory stringId 
- The ID of the Azure Data Factory to fetch trigger schedule from.
- Name string
- The name of the trigger schedule.
- DataFactory stringId 
- The ID of the Azure Data Factory to fetch trigger schedule from.
- Name string
- The name of the trigger schedule.
- dataFactory StringId 
- The ID of the Azure Data Factory to fetch trigger schedule from.
- name String
- The name of the trigger schedule.
- dataFactory stringId 
- The ID of the Azure Data Factory to fetch trigger schedule from.
- name string
- The name of the trigger schedule.
- data_factory_ strid 
- The ID of the Azure Data Factory to fetch trigger schedule from.
- name str
- The name of the trigger schedule.
- dataFactory StringId 
- The ID of the Azure Data Factory to fetch trigger schedule from.
- name String
- The name of the trigger schedule.
getTriggerSchedule Result
The following output properties are available:
- Activated bool
- Specifies if the Data Factory Schedule Trigger is activated.
- Annotations List<string>
- List of tags that can be used for describing the Data Factory Schedule Trigger.
- DataFactory stringId 
- Description string
- The Schedule Trigger's description.
- EndTime string
- The time the Schedule Trigger should end. The time will be represented in UTC.
- Frequency string
- The trigger frequency.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interval int
- The interval for how often the trigger occurs.
- Name string
- PipelineName string
- The Data Factory Pipeline name that the trigger will act on.
- Schedules
List<GetTrigger Schedule Schedule> 
- A scheduleblock as described below, which further specifies the recurrence schedule for the trigger.
- StartTime string
- The time the Schedule Trigger will start. The time will be represented in UTC.
- TimeZone string
- The timezone of the start/end time.
- Activated bool
- Specifies if the Data Factory Schedule Trigger is activated.
- Annotations []string
- List of tags that can be used for describing the Data Factory Schedule Trigger.
- DataFactory stringId 
- Description string
- The Schedule Trigger's description.
- EndTime string
- The time the Schedule Trigger should end. The time will be represented in UTC.
- Frequency string
- The trigger frequency.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interval int
- The interval for how often the trigger occurs.
- Name string
- PipelineName string
- The Data Factory Pipeline name that the trigger will act on.
- Schedules
[]GetTrigger Schedule Schedule 
- A scheduleblock as described below, which further specifies the recurrence schedule for the trigger.
- StartTime string
- The time the Schedule Trigger will start. The time will be represented in UTC.
- TimeZone string
- The timezone of the start/end time.
- activated Boolean
- Specifies if the Data Factory Schedule Trigger is activated.
- annotations List<String>
- List of tags that can be used for describing the Data Factory Schedule Trigger.
- dataFactory StringId 
- description String
- The Schedule Trigger's description.
- endTime String
- The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency String
- The trigger frequency.
- id String
- The provider-assigned unique ID for this managed resource.
- interval Integer
- The interval for how often the trigger occurs.
- name String
- pipelineName String
- The Data Factory Pipeline name that the trigger will act on.
- schedules
List<GetTrigger Schedule Schedule> 
- A scheduleblock as described below, which further specifies the recurrence schedule for the trigger.
- startTime String
- The time the Schedule Trigger will start. The time will be represented in UTC.
- timeZone String
- The timezone of the start/end time.
- activated boolean
- Specifies if the Data Factory Schedule Trigger is activated.
- annotations string[]
- List of tags that can be used for describing the Data Factory Schedule Trigger.
- dataFactory stringId 
- description string
- The Schedule Trigger's description.
- endTime string
- The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency string
- The trigger frequency.
- id string
- The provider-assigned unique ID for this managed resource.
- interval number
- The interval for how often the trigger occurs.
- name string
- pipelineName string
- The Data Factory Pipeline name that the trigger will act on.
- schedules
GetTrigger Schedule Schedule[] 
- A scheduleblock as described below, which further specifies the recurrence schedule for the trigger.
- startTime string
- The time the Schedule Trigger will start. The time will be represented in UTC.
- timeZone string
- The timezone of the start/end time.
- activated bool
- Specifies if the Data Factory Schedule Trigger is activated.
- annotations Sequence[str]
- List of tags that can be used for describing the Data Factory Schedule Trigger.
- data_factory_ strid 
- description str
- The Schedule Trigger's description.
- end_time str
- The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency str
- The trigger frequency.
- id str
- The provider-assigned unique ID for this managed resource.
- interval int
- The interval for how often the trigger occurs.
- name str
- pipeline_name str
- The Data Factory Pipeline name that the trigger will act on.
- schedules
Sequence[GetTrigger Schedule Schedule] 
- A scheduleblock as described below, which further specifies the recurrence schedule for the trigger.
- start_time str
- The time the Schedule Trigger will start. The time will be represented in UTC.
- time_zone str
- The timezone of the start/end time.
- activated Boolean
- Specifies if the Data Factory Schedule Trigger is activated.
- annotations List<String>
- List of tags that can be used for describing the Data Factory Schedule Trigger.
- dataFactory StringId 
- description String
- The Schedule Trigger's description.
- endTime String
- The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency String
- The trigger frequency.
- id String
- The provider-assigned unique ID for this managed resource.
- interval Number
- The interval for how often the trigger occurs.
- name String
- pipelineName String
- The Data Factory Pipeline name that the trigger will act on.
- schedules List<Property Map>
- A scheduleblock as described below, which further specifies the recurrence schedule for the trigger.
- startTime String
- The time the Schedule Trigger will start. The time will be represented in UTC.
- timeZone String
- The timezone of the start/end time.
Supporting Types
GetTriggerScheduleSchedule   
- DaysOf List<int>Months 
- Day(s) of the month on which the trigger is scheduled.
- DaysOf List<string>Weeks 
- Day(s) of the week on which the trigger is scheduled.
- Hours List<int>
- Hours of the day on which the trigger is scheduled.
- Minutes List<int>
- Minutes of the hour on which the trigger is scheduled.
- Monthlies
List<GetTrigger Schedule Schedule Monthly> 
- A monthlyblock as documented below, which specifies the days of the month on which the trigger is scheduled.
- DaysOf []intMonths 
- Day(s) of the month on which the trigger is scheduled.
- DaysOf []stringWeeks 
- Day(s) of the week on which the trigger is scheduled.
- Hours []int
- Hours of the day on which the trigger is scheduled.
- Minutes []int
- Minutes of the hour on which the trigger is scheduled.
- Monthlies
[]GetTrigger Schedule Schedule Monthly 
- A monthlyblock as documented below, which specifies the days of the month on which the trigger is scheduled.
- daysOf List<Integer>Months 
- Day(s) of the month on which the trigger is scheduled.
- daysOf List<String>Weeks 
- Day(s) of the week on which the trigger is scheduled.
- hours List<Integer>
- Hours of the day on which the trigger is scheduled.
- minutes List<Integer>
- Minutes of the hour on which the trigger is scheduled.
- monthlies
List<GetTrigger Schedule Schedule Monthly> 
- A monthlyblock as documented below, which specifies the days of the month on which the trigger is scheduled.
- daysOf number[]Months 
- Day(s) of the month on which the trigger is scheduled.
- daysOf string[]Weeks 
- Day(s) of the week on which the trigger is scheduled.
- hours number[]
- Hours of the day on which the trigger is scheduled.
- minutes number[]
- Minutes of the hour on which the trigger is scheduled.
- monthlies
GetTrigger Schedule Schedule Monthly[] 
- A monthlyblock as documented below, which specifies the days of the month on which the trigger is scheduled.
- days_of_ Sequence[int]months 
- Day(s) of the month on which the trigger is scheduled.
- days_of_ Sequence[str]weeks 
- Day(s) of the week on which the trigger is scheduled.
- hours Sequence[int]
- Hours of the day on which the trigger is scheduled.
- minutes Sequence[int]
- Minutes of the hour on which the trigger is scheduled.
- monthlies
Sequence[GetTrigger Schedule Schedule Monthly] 
- A monthlyblock as documented below, which specifies the days of the month on which the trigger is scheduled.
- daysOf List<Number>Months 
- Day(s) of the month on which the trigger is scheduled.
- daysOf List<String>Weeks 
- Day(s) of the week on which the trigger is scheduled.
- hours List<Number>
- Hours of the day on which the trigger is scheduled.
- minutes List<Number>
- Minutes of the hour on which the trigger is scheduled.
- monthlies List<Property Map>
- A monthlyblock as documented below, which specifies the days of the month on which the trigger is scheduled.
GetTriggerScheduleScheduleMonthly    
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.