1. Packages
  2. Azure Classic
  3. API Docs
  4. logicapps
  5. TriggerRecurrence

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.logicapps.TriggerRecurrence

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Manages a Recurrence Trigger within a Logic App Workflow

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "workflow-resources",
        location: "West Europe",
    });
    const exampleWorkflow = new azure.logicapps.Workflow("example", {
        name: "workflow1",
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleTriggerRecurrence = new azure.logicapps.TriggerRecurrence("example", {
        name: "run-every-day",
        logicAppId: exampleWorkflow.id,
        frequency: "Day",
        interval: 1,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="workflow-resources",
        location="West Europe")
    example_workflow = azure.logicapps.Workflow("example",
        name="workflow1",
        location=example.location,
        resource_group_name=example.name)
    example_trigger_recurrence = azure.logicapps.TriggerRecurrence("example",
        name="run-every-day",
        logic_app_id=example_workflow.id,
        frequency="Day",
        interval=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("workflow-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{
    			Name:              pulumi.String("workflow1"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = logicapps.NewTriggerRecurrence(ctx, "example", &logicapps.TriggerRecurrenceArgs{
    			Name:       pulumi.String("run-every-day"),
    			LogicAppId: exampleWorkflow.ID(),
    			Frequency:  pulumi.String("Day"),
    			Interval:   pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "workflow-resources",
            Location = "West Europe",
        });
    
        var exampleWorkflow = new Azure.LogicApps.Workflow("example", new()
        {
            Name = "workflow1",
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleTriggerRecurrence = new Azure.LogicApps.TriggerRecurrence("example", new()
        {
            Name = "run-every-day",
            LogicAppId = exampleWorkflow.Id,
            Frequency = "Day",
            Interval = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.logicapps.Workflow;
    import com.pulumi.azure.logicapps.WorkflowArgs;
    import com.pulumi.azure.logicapps.TriggerRecurrence;
    import com.pulumi.azure.logicapps.TriggerRecurrenceArgs;
    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) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()        
                .name("workflow-resources")
                .location("West Europe")
                .build());
    
            var exampleWorkflow = new Workflow("exampleWorkflow", WorkflowArgs.builder()        
                .name("workflow1")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleTriggerRecurrence = new TriggerRecurrence("exampleTriggerRecurrence", TriggerRecurrenceArgs.builder()        
                .name("run-every-day")
                .logicAppId(exampleWorkflow.id())
                .frequency("Day")
                .interval(1)
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: workflow-resources
          location: West Europe
      exampleWorkflow:
        type: azure:logicapps:Workflow
        name: example
        properties:
          name: workflow1
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleTriggerRecurrence:
        type: azure:logicapps:TriggerRecurrence
        name: example
        properties:
          name: run-every-day
          logicAppId: ${exampleWorkflow.id}
          frequency: Day
          interval: 1
    

    Create TriggerRecurrence Resource

    new TriggerRecurrence(name: string, args: TriggerRecurrenceArgs, opts?: CustomResourceOptions);
    @overload
    def TriggerRecurrence(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          frequency: Optional[str] = None,
                          interval: Optional[int] = None,
                          logic_app_id: Optional[str] = None,
                          name: Optional[str] = None,
                          schedule: Optional[TriggerRecurrenceScheduleArgs] = None,
                          start_time: Optional[str] = None,
                          time_zone: Optional[str] = None)
    @overload
    def TriggerRecurrence(resource_name: str,
                          args: TriggerRecurrenceArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewTriggerRecurrence(ctx *Context, name string, args TriggerRecurrenceArgs, opts ...ResourceOption) (*TriggerRecurrence, error)
    public TriggerRecurrence(string name, TriggerRecurrenceArgs args, CustomResourceOptions? opts = null)
    public TriggerRecurrence(String name, TriggerRecurrenceArgs args)
    public TriggerRecurrence(String name, TriggerRecurrenceArgs args, CustomResourceOptions options)
    
    type: azure:logicapps:TriggerRecurrence
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args TriggerRecurrenceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TriggerRecurrenceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TriggerRecurrenceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TriggerRecurrenceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TriggerRecurrenceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TriggerRecurrence Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The TriggerRecurrence resource accepts the following input properties:

    Frequency string
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    Interval int
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    Schedule TriggerRecurrenceSchedule
    A schedule block as specified below.
    StartTime string
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    TimeZone string
    Specifies the time zone for this trigger. Supported time zone options are listed here
    Frequency string
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    Interval int
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    Schedule TriggerRecurrenceScheduleArgs
    A schedule block as specified below.
    StartTime string
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    TimeZone string
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency String
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval Integer
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule TriggerRecurrenceSchedule
    A schedule block as specified below.
    startTime String
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    timeZone String
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency string
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval number
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name string

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule TriggerRecurrenceSchedule
    A schedule block as specified below.
    startTime string
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    timeZone string
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency str
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval int
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logic_app_id str
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name str

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule TriggerRecurrenceScheduleArgs
    A schedule block as specified below.
    start_time str
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    time_zone str
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency String
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval Number
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule Property Map
    A schedule block as specified below.
    startTime String
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    timeZone String
    Specifies the time zone for this trigger. Supported time zone options are listed here

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TriggerRecurrence resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TriggerRecurrence Resource

    Get an existing TriggerRecurrence resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TriggerRecurrenceState, opts?: CustomResourceOptions): TriggerRecurrence
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            frequency: Optional[str] = None,
            interval: Optional[int] = None,
            logic_app_id: Optional[str] = None,
            name: Optional[str] = None,
            schedule: Optional[TriggerRecurrenceScheduleArgs] = None,
            start_time: Optional[str] = None,
            time_zone: Optional[str] = None) -> TriggerRecurrence
    func GetTriggerRecurrence(ctx *Context, name string, id IDInput, state *TriggerRecurrenceState, opts ...ResourceOption) (*TriggerRecurrence, error)
    public static TriggerRecurrence Get(string name, Input<string> id, TriggerRecurrenceState? state, CustomResourceOptions? opts = null)
    public static TriggerRecurrence get(String name, Output<String> id, TriggerRecurrenceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Frequency string
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    Interval int
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    Schedule TriggerRecurrenceSchedule
    A schedule block as specified below.
    StartTime string
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    TimeZone string
    Specifies the time zone for this trigger. Supported time zone options are listed here
    Frequency string
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    Interval int
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    Schedule TriggerRecurrenceScheduleArgs
    A schedule block as specified below.
    StartTime string
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    TimeZone string
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency String
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval Integer
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule TriggerRecurrenceSchedule
    A schedule block as specified below.
    startTime String
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    timeZone String
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency string
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval number
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name string

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule TriggerRecurrenceSchedule
    A schedule block as specified below.
    startTime string
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    timeZone string
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency str
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval int
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logic_app_id str
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name str

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule TriggerRecurrenceScheduleArgs
    A schedule block as specified below.
    start_time str
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    time_zone str
    Specifies the time zone for this trigger. Supported time zone options are listed here
    frequency String
    Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.
    interval Number
    Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String

    Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    NOTE: This name must be unique across all Triggers within the Logic App Workflow.

    schedule Property Map
    A schedule block as specified below.
    startTime String
    Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.
    timeZone String
    Specifies the time zone for this trigger. Supported time zone options are listed here

    Supporting Types

    TriggerRecurrenceSchedule, TriggerRecurrenceScheduleArgs

    AtTheseHours List<int>
    Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.
    AtTheseMinutes List<int>
    Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.
    OnTheseDays List<string>
    Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
    AtTheseHours []int
    Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.
    AtTheseMinutes []int
    Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.
    OnTheseDays []string
    Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
    atTheseHours List<Integer>
    Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.
    atTheseMinutes List<Integer>
    Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.
    onTheseDays List<String>
    Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
    atTheseHours number[]
    Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.
    atTheseMinutes number[]
    Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.
    onTheseDays string[]
    Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
    at_these_hours Sequence[int]
    Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.
    at_these_minutes Sequence[int]
    Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.
    on_these_days Sequence[str]
    Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
    atTheseHours List<Number>
    Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.
    atTheseMinutes List<Number>
    Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.
    onTheseDays List<String>
    Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

    Import

    Logic App Recurrence Triggers can be imported using the resource id, e.g.

    $ pulumi import azure:logicapps/triggerRecurrence:TriggerRecurrence daily /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/daily
    

    Package Details

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

    We recommend using Azure Native.

    Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi