将逻辑应用迁移到最新架构版本Migrate logic apps to latest schema version

若要将现有逻辑应用移到最新架构,请按照下列步骤操作:To move your existing logic apps to the newest schema, follow these steps:

  1. Azure 门户的逻辑应用设计器中打开逻辑应用。In the Azure portal, open your logic app in the Logic App Designer.

  2. 在逻辑应用的菜单中,选择“概述” 。On your logic app's menu, choose Overview. 在工具栏上,选择“更新架构” 。On the toolbar, choose Update Schema.

    备注

    当你选择“更新架构” 时,Azure 逻辑应用会自动运行迁移步骤并为你提供代码输出。When you choose Update Schema, Azure Logic Apps automatically runs the migration steps and provides the code output for you. 可以使用此输出更新逻辑应用定义。You can use this output for updating your logic app definition. 但是,请确保遵循以下最佳做法部分中所述的最佳做法。However, make sure you follow best practices as described in the following Best practices section.

    更新架构

    此时将显示“更新架构”页,并显示指向描述新架构中的改进的文档的链接。The Update Schema page appears and shows a link to a document that describes the improvements in the new schema.

最佳做法Best practices

下面是将逻辑应用迁移到最新架构版本的一些最佳做法:Here are some best practices for migrating your logic apps to the latest schema version:

  • 将已迁移的脚本复制到新的逻辑应用。Copy the migrated script to a new logic app. 在完成测试并确认迁移的应用按预期工作之前,请勿覆盖旧版本。Don't overwrite the old version until you complete your testing and confirm that your migrated app works as expected.

  • 在投入生产之前,测试逻辑应用。Test your logic app before putting in production.

  • 完成迁移后,开始更新逻辑应用,以便在可能的情况下使用托管 APIAfter you finish migration, start updating your logic apps to use the managed APIs where possible. 例如,在使用 DropBox v1 的任何地方开始使用 Dropbox v2。For example, start using Dropbox v2 everywhere that you use DropBox v1.

后续步骤Next steps