แก้ไข

แชร์ผ่าน


Edit and manage logic app workflows in the Azure portal

Applies to: Azure Logic Apps (Consumption + Standard)

This guide shows how to manage Consumption or Standard logic app workflows using the Azure portal and perform tasks such as edit, disable, enable, and delete workflows.

Prerequisites

  • An Azure account and subscription. If you don't have an Azure subscription, sign up for a free Azure account.

  • An existing Consumption or Standard logic app workflow

Find and open a logic app resource

  1. In the Azure portal search box, enter logic apps, and select Logic apps.

  2. From the logic apps list, find your logic app resource by either browsing or filtering the list.

  3. To open your logic app resource, select the app that you want to manage.

View logic app properties

  1. In the Azure portal, find and open your logic app resource.

  2. From your logic app's menu, under Settings, select Properties.

  3. On the Properties pane, you can view and copy the following information about your logic app resource, for example:

    Consumption

    • Name
    • Resource ID
    • Resource group
    • Location
    • Type
    • Subscription Name
    • Subscription ID
    • Access Endpoint
    • Runtime outgoing IP addresses
    • Access endpoint IP addresses
    • Connector outgoing IP addresses

    Standard

    • Status
    • URL
    • Virtual IP address
    • Mode
    • Outbound IP address
    • Additional Outbound IP Addresses
    • FTP/deployment user
    • FTP host name
    • FTP diagnostic logs
    • FTP host name
    • FTPS diagnostic logs
    • Resource ID
    • Location
    • Resource Group
    • Subscription name
    • Subscription ID

View connections

When you create connections in a workflow using connectors managed by Microsoft, these connections are separate Azure resources with their own resource definitions and are hosted in global, multitenant Azure. Standard logic app workflows can also use built-in service provider connectors that natively run and are powered by the single-tenant Azure Logic Apps runtime. To view and manage these connections, follow these steps, based on the logic app resource type:

  1. In the Azure portal, find and open your logic app resource.

  2. From the logic app menu, under Development Tools, select API connections.

  3. On the API connections page, select a specific connection instance, which shows more information about that connection. To view the underlying connection resource definition, select JSON View.

Add blank workflow to logic app (Standard only)

While a Consumption logic app can have only one workflow, a Standard logic app resource can have multiple workflows. You can add blank workflows to a deployed Standard logic app resource and continue building the workflow in the Azure portal.

  1. In the Azure portal, select your deployed Standard logic app resource.

  2. On the logic app resource menu, under Workflows, select Workflows.

  3. On the Workflows page toolbar, select Add > Add.

    Screenshot shows selected logic app Workflows page and toolbar with Add command selected.

  4. In the New workflow pane, provide the workflow name. Select either Stateful or Stateless > Create.

  5. After the new workflow appears on the Workflows page, select that workflow to open the designer so you can build your workflow.

Disable or enable a deployed logic app

Deployed Consumption and Standard logic apps have different ways to disable and enable their activity.

Considerations for disabling a deployed Consumption logic app

Disabling a Consumption logic app affects all workflow instances in the following ways:

  • Azure Logic Apps continues all in-progress and pending workflow instances until they finish running. Based on the volume or backlog, this process might take time to complete.

  • Azure Logic Apps doesn't create or run new workflow instances.

  • You can resubmit workflow runs while the logic app is disabled.

  • The workflow trigger doesn't fire while the logic app is disabled. However, the trigger state remembers the point where you disabled the logic app. When you restart the logic app, the trigger fires for all unprocessed items since the last workflow run.

    To stop the trigger from firing on all unprocessed items since the last workflow run, you must clear the trigger state.

Disable or enable a deployed Consumption logic app

You can disable or enable one or multiple Consumption logic apps at the same time.

  1. In the Azure portal search box, enter logic apps, and select Logic apps.

  2. On the Logic apps page, view only the Consumption logic apps using the Plan filter.

  3. Based on whether you're disabling or enabling your logic apps, view only the Enabled or Disabled logic apps using the Status filter.

  4. In the checkbox column, select one or multiple logic apps.

    • To stop the selected running logic apps, select Disable/Stop.
    • To restart the selected stopped logic apps, select Enable/Start.
  5. Confirm your selection.

  6. To check whether your task succeeded or failed, on main Azure toolbar, open the Notifications list (bell icon).

Post logic app or workflow stoppage

While a logic app is stopped or a workflow is disabled, the workflow trigger doesn't fire the next time that the trigger condition is met. However, the trigger state remembers the point at where you stopped the logic app or disabled the workflow. When you restart the logic app or re-enable the workflow, the trigger fires for all unprocessed items since the last workflow run.

To stop the trigger from firing on all unprocessed items since the last workflow run, you must clear the trigger state before you restart the logic app or re-enable the workflow.

  1. In the Azure portal, open your Consumption logic app workflow, and edit any part of the workflow trigger.

  2. Save your changes. This step resets your trigger's current state.

  3. Restart your logic app.

Delete logic apps

Considerations for deleting Consumption logic apps

You can't recover a deleted Consumption logic app resource. Deleting a Consumption logic app affects all its workflow instances in the following ways:

  • Azure Logic Apps makes a best effort to cancel any in-progress and pending workflow runs.

    Even with a large volume or backlog, most runs are canceled before they finish or start. However, the cancellation process might take time to complete. Meanwhile, some runs might get picked up for execution while the service works through the cancellation process.

  • Azure Logic Apps doesn't create or run new workflow instances.

  • If you delete a logic app and workflow, but you then recreate the same logic app and workflow, the recreated workflow doesn't have the same metadata as the deleted workflow.

    So, if you have another workflow that calls the deleted workflow, you must resave the caller workflow to refresh the metadata for the recreated workflow. That way, the caller gets the correct information for the recreated workflow. Otherwise, calls to the recreated workflow fail with an Unauthorized error. This behavior also applies to workflows that use artifacts in integration accounts and workflows that call Azure functions.

Delete Consumption logic apps

You can delete one or multiple Consumption logic apps at the same time.

  1. In the Azure portal search box, enter logic apps, and select Logic apps.

  2. On the Logic apps page, view only the Consumption logic apps using the Plan filter.

  3. In the checkbox column, select one or multiple logic apps to delete. On the toolbar, select Delete.

  4. When the confirmation box appears, enter yes, and select Delete.

  5. To check whether your task succeeded or failed, on main Azure toolbar, open the Notifications list (bell icon).

Manage logic app versions (Consumption only)

When you save changes to your Consumption logic app workflow, Azure saves the version before you made your changes, and your edited version becomes the current version. You can view these previous versions, select a previous version to promote over the current version, and edit the selected version before you finish the promotion process.

View previous versions

  1. In the Azure portal, open your Consumption logic app.

  2. On the logic app menu, under Development Tools, select Versions.

    Screenshot shows Azure portal, Consumption logic app menu with Versions selected, and previous logic app versions.

  3. From the Version list, select the workflow version that you want.

    To filter the list, in the Versions page search bar, enter the version ID, if you know the ID.

    The History version page shows the selected version in read-only mode. You can change between the designer view and code view.

    Screenshot shows history version page with designer view and code view options.

Promote a previous version over the current version

  1. In the Azure portal, view the previous version that you want to promote.

  2. On the History version toolbar, select Promote.

    Screenshot shows History version page toolbar with selected Promote button.

    The workflow designer opens the selected workflow version.

  3. Optionally make any edits that you want to the workflow.

    You can change between Designer and Code view. You can also update the Parameters.

  4. To save any updates and finish promotion, on the designer toolbar, select Save. To cancel your changes, select Discard.

When you view your logic app version history again, the promoted version now appears first in the list with a new identifier.