在 Azure 门户中管理逻辑应用Manage logic apps in the Azure portal

可以使用 Azure 门户Visual Studio 管理逻辑应用。You can manage logic apps using the Azure portal or Visual Studio. 本文介绍如何在 Azure 门户中编辑、禁用、启用或删除逻辑应用。This article shows how to edit, disable, enable, or delete logic apps in the Azure portal. 如果不熟悉 Azure 逻辑应用,请参阅什么是 Azure 逻辑应用If you're new to Azure Logic Apps, see What is Azure Logic Apps?

先决条件Prerequisites

查找逻辑应用Find your logic apps

若要找到并打开你的逻辑应用,请执行以下步骤:To find and open your logic app, follow these steps:

  1. 使用 Azure 帐户登录到 Azure 门户Sign in to the Azure portal with your Azure account.

  2. 在 Azure 搜索栏中输入 logic apps,然后选择“逻辑应用”。In the Azure search bar, enter logic apps, and select Logic Apps.

    查找并选择“逻辑应用”

  3. 在“逻辑应用”页上,找到并选择要管理的逻辑应用。On the Logic Apps page, find and select the logic app that you want to manage.

    该逻辑应用的“概览”窗格打开后,可通过以下方式筛选“逻辑应用”页上显示的列表: After the logic app's Overview pane opens, you can filter the list that appears on the Logic Apps page in these ways:

    • 按名称搜索逻辑应用Search for logic apps by name
    • 按订阅、资源组、位置和标记筛选逻辑应用Filter logic apps by subscription, resource group, location, and tags
    • 按资源组、类型、订阅和位置对逻辑应用进行分组Group logic apps by resource group, type, subscription, and location

查看逻辑应用属性View logic app properties

  1. 在 Azure 门户中,找到并打开你的逻辑应用In the Azure portal, find and open your logic app.

  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:

    • 名称Name
    • 资源 IDResource ID
    • 资源组Resource group
    • 位置Location
    • 类型Type
    • 订阅名称Subscription Name
    • 订阅 IDSubscription ID
    • 访问终结点Access Endpoint
    • 运行时传出 IP 地址Runtime outgoing IP addresses
    • 访问终结点 IP 地址Access endpoint IP addresses
    • 连接器传出 IP 地址Connector outgoing IP addresses

禁用或启用逻辑应用Disable or enable logic apps

可以在 Azure 门户中启用或禁用单个逻辑应用,或者一次性启用或禁用多个逻辑应用You can enable or disable a single logic app or multiple logic apps at the same time in the Azure portal. 还可以在 Visual Studio 中启用或禁用逻辑应用You can also enable or disable logic apps in Visual Studio.

禁用逻辑应用会对工作流实例和运行造成以下影响:Disabling your logic app affects your workflow instances and runs in these ways:

  • 所有正在进行的以及挂起的运行将会继续,直到完成。All in-progress and pending runs continue until they finish. 此过程可能需要一段时间,具体取决于这些运行的数量。Depending on the number of these runs, this process might take some time.

  • 逻辑应用引擎不会创建或运行新的工作流实例。The Logic Apps engine won't create or run new workflow instances.

  • 下一次满足触发器的条件时,触发器不会触发。The trigger won't fire the next time that its conditions are met.

  • 触发器状态会记住逻辑应用的停止位置。The trigger state remembers the point at which the logic app was stopped. 因此,如果重新启用逻辑应用,将会针对自上次运行以来未处理的所有项触发此触发器。So, if you re-enable the logic app, the trigger fires for all the unprocessed items since the last run.

    若要阻止逻辑应用针对自上次运行以来未处理的项触发,请在重新启用逻辑应用之前清除触发器的状态:To stop your logic app from firing on unprocessed items since the last run, clear the trigger's state before you re-enable the logic app:

    1. 在 Azure 门户中,找到并打开你的逻辑应用In the Azure portal, find and open your logic app.

    2. 编辑逻辑应用触发器的任何部分。Edit any part of the logic app's trigger.

    3. 保存所做更改。Save your changes. 此步骤会重置触发器的当前状态。This step resets your trigger's current state.

    4. 重新启用逻辑应用Re-enable your logic app.

禁用或启用单个逻辑应用Disable or enable single logic app

  1. 在 Azure 门户中,找到并打开你的逻辑应用In the Azure portal, find and open your logic app.

  2. 在逻辑应用的菜单中,选择“概览”。In your logic app's menu, select Overview. 从以下选项中进行选择:Choose from these options:

    • 在工具栏中选择“禁用”。On the toolbar, select Disable.

      在 Azure 门户中禁用单个逻辑应用

      如果逻辑应用已禁用,则只会看到“启用”选项。If your logic app is already disabled, you only see the Enable option.

    • 在工具栏中选择“启用”。On the toolbar, select Enable.

      在 Azure 门户中启用单个逻辑应用

      如果逻辑应用已启用,则只会看到“禁用”选项。If your logic app is already enabled, you only see the Disable option.

    Azure 门户会在 Azure 主工具栏上显示一条确认操作是成功还是失败的通知。The Azure portal shows a notification on the main Azure toolbar that confirms whether your operation succeeded or failed.

    确认操作状态的通知

禁用或启用多个逻辑应用Disable or enable multiple logic apps

  1. 在 Azure 门户中,找到要禁用或启用的逻辑应用In the Azure portal, find the logic apps that you want disable or enable.

  2. 若要检查某个逻辑应用当前是已启用还是已禁用,请在“逻辑应用”页上查看该逻辑应用的“状态”列。 To check whether a logic app is currently enabled or disabled, on the Logic Apps page, review the Status column for that logic app.

    逻辑应用状态列

    如果“状态”列不可见,请在“逻辑应用”工具栏上选择“试用预览版”。 If the Status column isn't visible, on the Logic Apps toolbar, select Try preview.

    启用预览版

  3. 在复选框列中,选择要禁用或启用的逻辑应用。In the checkbox column, select the logic apps that you want to disable or enable. 在工具栏上选择“禁用”或“启用”。 On the toolbar, select Disable or Enable.

    在 Azure 门户中启用或禁用多个逻辑应用

  4. 确认框出现时,选择“是”以继续。When the confirmation box appears, select Yes to continue.

    Azure 门户会在 Azure 主工具栏上显示一条确认操作是成功还是失败的通知。The Azure portal shows a notification on the main Azure toolbar that confirms whether your operation succeeded or failed.

删除逻辑应用Delete logic apps

可以在 Azure 门户中删除单个逻辑应用,或者一次性删除多个逻辑应用You can delete a single logic app or delete multiple logic apps at the same time in the Azure portal. 还可以在 Visual Studio 中删除逻辑应用You can also delete your logic app in Visual Studio.

删除逻辑应用会对工作流实例造成以下影响:Deleting your logic app affects your workflow instances in these ways:

  • 所有正在进行的以及挂起的运行将会继续,直到完成。All in-progress and pending runs continue until they finish. 此过程可能需要一段时间,具体取决于这些运行的数量。Depending on the number of these runs, this process might take some time.

  • 逻辑应用引擎不会创建或运行新的工作流实例。The Logic Apps engine won't create or run new workflow instances.

备注

如果删除并重新创建了子逻辑应用,则必须重新保存父逻辑应用。If you delete and recreate a child logic app, you must resave the parent logic app. 重新创建的子应用将具有不同的元数据。The recreated child app will have different metadata. 如果在重新创建父逻辑应用的子逻辑应用后未重新保存父逻辑应用,则对子逻辑应用的调用将失败,并出现“未授权”错误。If you don't resave the parent logic app after recreating its child, your calls to the child logic app will fail with an error of "unauthorized." 此行为适用于父子逻辑应用,例如,那些使用集成帐户中的项目或调用 Azure 函数的逻辑应用。This behavior applies to parent-child logic apps, for example, those that use artifacts in integration accounts or call Azure functions.

删除单个逻辑应用Delete single logic app

  1. 在 Azure 门户中,找到并打开你的逻辑应用In the Azure portal, find and open your logic app.

  2. 在逻辑应用的菜单中,选择“概览”。In your logic app's menu, select Overview. 在逻辑应用的工具栏上,选择“删除”。On your logic app's toolbar, select Delete.

    在逻辑应用工具栏上选择“删除”

  3. 确认框出现时,输入逻辑应用的名称,然后选择“删除”。When the confirmation box appears, enter your logic app's name, and select Delete.

    确认删除逻辑应用

    Azure 门户会在 Azure 主工具栏上显示一条确认操作是成功还是失败的通知。The Azure portal shows a notification on the main Azure toolbar that confirms whether your operation succeeded or failed.

删除多个逻辑应用Delete multiple logic apps

  1. 在 Azure 门户中,找到要删除的逻辑应用In the Azure portal, find the logic apps that you want to delete.

  2. 在复选框列中,选择要删除的逻辑应用。In the checkbox column, select the logic apps that you want to delete. 在工具栏中选择“删除”。On the toolbar, select Delete.

    删除多个逻辑应用

  3. 确认框出现时,输入 yes 并选择“删除”。When the confirmation box appears, enter yes, and select Delete.

    确认删除逻辑应用

    Azure 门户会在 Azure 主工具栏上显示一条确认操作是成功还是失败的通知。The Azure portal shows a notification on the main Azure toolbar that confirms whether your operation succeeded or failed.

管理逻辑应用版本Manage logic app versions

可以使用 Azure 门户来控制逻辑应用的版本。You can use the Azure portal for version control of your logic apps. 可以查找逻辑应用的版本历史记录,提升以前的版本。You can find your logic app's version history, and promote previous versions.

查找和查看以前的版本Find and view previous versions

  1. 在 Azure 门户中,找到要管理的逻辑应用In the Azure portal, find the logic app that you want to manage.

  2. 在逻辑应用菜单中的“开发工具”下,选择“版本”。 In your logic app's menu, under Development Tools, select Versions.

    在逻辑应用的菜单中,选择“开发工具”下的“版本”

  3. 从列表中选择要管理的逻辑应用的“版本”。Select the Version of your logic app to manage from the list. 可以在搜索栏中输入“版本”标识符以筛选列表。You can enter the Version identifier in the search bar to filter the list.

  4. 在“历史记录版本”页上,将会看到以前版本的只读模式的详细信息。On the History version page, you'll see the previous version's details in read-only mode. 可以在逻辑应用的“设计器”和“代码视图”模式之间进行选择。 You can select between the Logic Apps Designer and Code view modes.

    具有代码视图和逻辑应用设计器视图的逻辑应用的“历史记录版本”页

提升以前的版本Promote previous versions

  1. 在逻辑应用的版本历史记录中,找到并选择要提升的版本In your logic app's version history, find and select the version that you want to promote.

  2. 在“历史记录版本”页上,选择“提升”。 On the History version page, select Promote.

    逻辑应用版本历史记录中的“提升”按钮

  3. 在打开的“逻辑应用设计器”页上,按需编辑所要提升的版本。On the Logic Apps Designer page that opens, edit the version that you're promoting as needed. 可以在“设计器”和“代码视图”模式之间进行切换。 You can switch between Designer and Code view modes. 还可以更新“参数”、“模板”和“连接器”。 You can also update Parameters, Templates, and Connectors.

    用于提升以前版本的“逻辑应用设计器”页

  4. 若要保存任何更新并完成以前版本的提升,请选择“保存”。To save any updates and finishing promoting the previous version, select Save. (或者,若要取消更改,请选择“放弃”。)(Or, to cancel your changes, select Discard.)

    再次查看逻辑应用的版本历史记录时,提升的版本会显示在列表顶部,并具有新的标识符。When you view your logic app's version history again, the promoted version appears at the top of the list and has a new identifier.

后续步骤Next steps