Azure Trigger

Azure Trigger

Certified

Trigger flows from Azure Logic App workflow runs

Polls a Logic App workflow and starts an execution for newly observed completed or failed runs.

yaml
type: io.kestra.plugin.azure.logicapps.Trigger

On run complete

yaml
id: azure_logic_apps_on_complete
namespace: company.team

tasks:
  - id: handle
    type: io.kestra.plugin.core.log.Log
    message: "Run {{ trigger.run.name }} completed with status {{ trigger.run.status }}"

triggers:
  - id: on_run_complete
    type: io.kestra.plugin.azure.logicapps.Trigger
    tenantId: "{{ secret('AZURE_TENANT_ID') }}"
    clientId: "{{ secret('AZURE_CLIENT_ID') }}"
    clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
    subscriptionId: "{{ secret('AZURE_SUBSCRIPTION_ID') }}"
    resourceGroupName: my-resource-group
    workflowName: my-logic-app
    interval: PT5M
Properties

Azure client ID

Client ID of the Azure app registration.

Azure client secret

Client secret of the Azure app registration.

Resource group name

Azure resource group containing the Logic App workflow.

Subscription ID

Azure subscription GUID that owns the Logic App workflow.

Azure tenant ID

Azure Entra tenant ID used for service principal authentication.

Workflow name

Name of the Azure Logic App workflow.

Defaultfalse

Specifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.

DefaultPT1M
Formatduration

Interval between polling.

The interval between 2 different polls of schedule, this can avoid to overload the remote system with too many calls. For most of the triggers that depend on external systems, a minimal interval must be at least PT30S. See ISO_8601 Durations for more information of available interval values.

Default25

Maximum runs

Maximum number of recent runs to inspect per polling interval. Defaults to 25.

DefaultCREATE
Possible Values
CREATEUPDATECREATE_OR_UPDATE

State change mode

Stateful trigger change mode used for observed workflow runs.

PEM certificate

PEM certificate content for certificate-based authentication.

State key

Custom key used to store observed workflow runs.

State TTL

How long observed workflow run state is retained.

SubTypestring
Default["Succeeded","Failed"]

Statuses

Workflow run statuses that should trigger executions. Defaults to Succeeded and Failed.

SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTED

List of execution states after which a trigger should be stopped (a.k.a. disabled).

Defaulttrue

A condition that determines whether the trigger should run.

A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.

First workflow run

First newly observed workflow run matching the configured statuses.

Definitions
codestring

Code

Result code reported by Azure Logic Apps.

correlationIdstring

Correlation ID

Correlation ID associated with the workflow run.

endTimestring
Formatdate-time

End time

Workflow run end time.

errorobject

Error

Error payload returned by Azure Logic Apps, when available.

idstring

Run ID

Azure resource ID of the workflow run.

namestring

Run name

Name of the workflow run.

outputsobject

Outputs

Workflow run outputs keyed by output name.

startTimestring
Formatdate-time

Start time

Workflow run start time.

statusstring

Status

Current status of the workflow run.

Workflow runs

Newly observed workflow runs matching the configured statuses.

Definitions
codestring

Code

Result code reported by Azure Logic Apps.

correlationIdstring

Correlation ID

Correlation ID associated with the workflow run.

endTimestring
Formatdate-time

End time

Workflow run end time.

errorobject

Error

Error payload returned by Azure Logic Apps, when available.

idstring

Run ID

Azure resource ID of the workflow run.

namestring

Run name

Name of the workflow run.

outputsobject

Outputs

Workflow run outputs keyed by output name.

startTimestring
Formatdate-time

Start time

Workflow run start time.

statusstring

Status

Current status of the workflow run.

Total runs

Number of newly observed workflow runs.