1. Packages
  2. Azure Classic
  3. API Docs
  4. datafactory
  5. getTriggerSchedules

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.datafactory.getTriggerSchedules

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Use this data source to access information about all existing trigger schedules in Azure Data Factory.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.datafactory.getTriggerSchedules({
    dataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
});
export const items = example.then(example => example.items);
Copy
import pulumi
import pulumi_azure as azure

example = azure.datafactory.get_trigger_schedules(data_factory_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1")
pulumi.export("items", example.items)
Copy
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.GetTriggerSchedules(ctx, &datafactory.GetTriggerSchedulesArgs{
			DataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("items", example.Items)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.DataFactory.GetTriggerSchedules.Invoke(new()
    {
        DataFactoryId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
    });

    return new Dictionary<string, object?>
    {
        ["items"] = example.Apply(getTriggerSchedulesResult => getTriggerSchedulesResult.Items),
    };
});
Copy
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.GetTriggerSchedulesArgs;
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.getTriggerSchedules(GetTriggerSchedulesArgs.builder()
            .dataFactoryId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1")
            .build());

        ctx.export("items", example.applyValue(getTriggerSchedulesResult -> getTriggerSchedulesResult.items()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:datafactory:getTriggerSchedules
      arguments:
        dataFactoryId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1
outputs:
  items: ${example.items}
Copy

Using getTriggerSchedules

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 getTriggerSchedules(args: GetTriggerSchedulesArgs, opts?: InvokeOptions): Promise<GetTriggerSchedulesResult>
function getTriggerSchedulesOutput(args: GetTriggerSchedulesOutputArgs, opts?: InvokeOptions): Output<GetTriggerSchedulesResult>
Copy
def get_trigger_schedules(data_factory_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetTriggerSchedulesResult
def get_trigger_schedules_output(data_factory_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetTriggerSchedulesResult]
Copy
func GetTriggerSchedules(ctx *Context, args *GetTriggerSchedulesArgs, opts ...InvokeOption) (*GetTriggerSchedulesResult, error)
func GetTriggerSchedulesOutput(ctx *Context, args *GetTriggerSchedulesOutputArgs, opts ...InvokeOption) GetTriggerSchedulesResultOutput
Copy

> Note: This function is named GetTriggerSchedules in the Go SDK.

public static class GetTriggerSchedules 
{
    public static Task<GetTriggerSchedulesResult> InvokeAsync(GetTriggerSchedulesArgs args, InvokeOptions? opts = null)
    public static Output<GetTriggerSchedulesResult> Invoke(GetTriggerSchedulesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTriggerSchedulesResult> getTriggerSchedules(GetTriggerSchedulesArgs args, InvokeOptions options)
public static Output<GetTriggerSchedulesResult> getTriggerSchedules(GetTriggerSchedulesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:datafactory/getTriggerSchedules:getTriggerSchedules
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DataFactoryId This property is required. string
The ID of the Azure Data Factory to fetch trigger schedules from.
DataFactoryId This property is required. string
The ID of the Azure Data Factory to fetch trigger schedules from.
dataFactoryId This property is required. String
The ID of the Azure Data Factory to fetch trigger schedules from.
dataFactoryId This property is required. string
The ID of the Azure Data Factory to fetch trigger schedules from.
data_factory_id This property is required. str
The ID of the Azure Data Factory to fetch trigger schedules from.
dataFactoryId This property is required. String
The ID of the Azure Data Factory to fetch trigger schedules from.

getTriggerSchedules Result

The following output properties are available:

DataFactoryId string
Id string
The provider-assigned unique ID for this managed resource.
Items List<string>
A list of trigger schedule names available in this Azure Data Factory.
DataFactoryId string
Id string
The provider-assigned unique ID for this managed resource.
Items []string
A list of trigger schedule names available in this Azure Data Factory.
dataFactoryId String
id String
The provider-assigned unique ID for this managed resource.
items List<String>
A list of trigger schedule names available in this Azure Data Factory.
dataFactoryId string
id string
The provider-assigned unique ID for this managed resource.
items string[]
A list of trigger schedule names available in this Azure Data Factory.
data_factory_id str
id str
The provider-assigned unique ID for this managed resource.
items Sequence[str]
A list of trigger schedule names available in this Azure Data Factory.
dataFactoryId String
id String
The provider-assigned unique ID for this managed resource.
items List<String>
A list of trigger schedule names available in this Azure Data Factory.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi