Trigger Logic Apps based on custom task extensions (preview)

Lifecycle Workflows can be used to trigger custom tasks via an extension to Azure Logic Apps. This can be used to extend the capabilities of Lifecycle Workflow beyond the built-in tasks. The steps for triggering a Logic App based on a custom task extension are as follows:

  • Create a custom task extension.
  • Select which behavior you want the custom task extension to take.
  • Link your custom task extension to a new or existing Azure Logic App.
  • Add the custom task to a workflow.

For more information about Lifecycle Workflows extensibility, see: Workflow Extensibility.

Create a custom task extension with a new Azure Logic App

To use a custom task extension in your workflow, first a custom task extension must be created to be linked with an Azure Logic App. You're able to create a Logic App at the same time you're creating a custom task extension. To do this, you'll complete these steps:

  1. Sign in to the Azure portal.

  2. Select Azure Active Directory and then select Identity Governance.

  3. In the left menu, select Lifecycle Workflows (Preview).

  4. In the left menu, select Workflows (Preview).

  5. On the workflows screen, select custom task extension. Screenshot of selecting a custom task extension from a workflow overview page.

  6. On the custom task extensions page, select create custom task extension. Screenshot for creating a custom task extension selection.

  7. On the basics page you, give a display name and description for the custom task extension and select Next. Screenshot of the basics section for creating a custom task extension.

  8. On the Task behavior page, you specify how the custom task extension will behave after executing the Azure Logic App and select Next. Screenshot for choose task behavior for custom task extension.

    Note

    For more information about custom task extension behavior, see: Lifecycle Workflow extensibility

  9. On the Logic App details page, you select Create new Logic App, and specify the subscription and resource group where it will be located. You'll also give the new Azure Logic App a name. screen showing to create new logic app for custom task extension.

  10. If deployed successfully, you'll get confirmation on the Logic App details page immediately, and then you can select Next.

  11. On the Review page, you can review the details of the custom task extension and the Azure Logic App you've created. Select Create if the details match what you desire for the custom task extension.

Configure a custom task extension with an existing Azure Logic App

You can also link a custom task extension to an existing Azure Logic App. To do this, you'd complete the following steps:

Important

A Logic App must be configured to be compatible with the custom task extension. For more information, see Configure a Logic App for Lifecycle Workflow use

  1. In the left menu, select Lifecycle workflows (Preview).

  2. In the left menu, select Workflows (Preview).

  3. On the workflows screen, select custom task extension.

  4. On the Logic App details page, you select Choose an existing Logic App, and specify the subscription and resource group where the Azure Logic App is located and select Next. Screenshot for selecting an existing logic app with custom task extension.

  5. You can Review information about the updated custom task extension and the existing Logic App linked to it. Select Create if the details match what you desire for the custom task extension.

Add your custom task extension to a workflow

After you've created your custom task extension, you can now add it to a workflow. Unlike some tasks, which can only be added to workflow templates that match its category, a custom task extension can be added to any template you choose to make a custom workflow from.

To Add a custom task extension to a workflow, you'd do the following steps:

  1. In the left menu, select Lifecycle workflows (Preview).

  2. In the left menu, select Workflows (Preview).

  3. Select the workflow that you want to add the custom task extension to.

  4. On the workflow screen, select Tasks.

  5. On the tasks screen, select Add task.

  6. In the Select tasks drop down, select Run a Custom Task Extension, and select Add.

  7. On the custom task extension page, you can give the task a name and description. You can also choose from a list of configured custom task extensions to use. Screenshot showing to add a custom task extension to workflow.

  8. When finished, select Save.

Next steps