您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

在 Azure 逻辑应用中创建和管理 B2B 企业集成的集成帐户Create and manage integration accounts for B2B enterprise integrations in Azure Logic Apps

你需先创建一个集成帐户,然后才能使用 Azure 逻辑应用构建企业集成和 B2B 解决方案。该集成帐户是一个单独的 Azure 资源,该资源为你定义并用于逻辑应用工作流的集成项目提供安全、可缩放和可管理的容器。Before you can build enterprise integration and B2B solutions by using Azure Logic Apps, you need to create an integration account, which is a separate Azure resource that provides a secure, scalable, and manageable container for the integration artifacts that you define and use with your logic app workflows.

例如,您可以创建、存储和管理 B2B 项目,例如贸易合作伙伴、协议、地图、架构、证书和批配置。For example, you can create, store, and manage B2B artifacts, such as trading partners, agreements, maps, schemas, certificates, and batch configurations. 此外,你必须先将集成帐户链接到逻辑应用,然后才能使用这些项目并使用逻辑应用 B2B 连接器。Also, before your logic app can work with these artifacts and use the Logic Apps B2B connectors, you must link your integration account to your logic app. 集成帐户和逻辑应用必须位于同一位置或区域。Both your integration account and logic app must exist in the same location or region.

提示

若要在integration service 环境内创建集成帐户,请参阅在 ISE 中创建集成帐户To create an integration account inside an integration service environment, see Create integration accounts in an ISE.

本主题说明如何执行这些任务:This topic shows you how to perform these tasks:

  • 创建集成帐户。Create your integration account.
  • 将集成帐户链接到逻辑应用。Link your integration account to a logic app.
  • 更改集成帐户的定价层。Change the pricing tier for your integration account.
  • 将集成帐户从逻辑应用取消链接。Unlink your integration account from a logic app.
  • 将集成帐户移到另一个 Azure 资源组或订阅。Move your integration account to another Azure resource group or subscription.
  • 删除集成帐户。Delete your integration account.

必备组件Prerequisites

创建集成帐户Create integration account

对于此任务,您可以按照本部分中的步骤使用 Azure 门户, Azure PowerShellAzure CLIFor this task, you can use either the Azure portal by following the steps in this section, Azure PowerShell, or Azure CLI.

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

  2. 在 Azure 主菜单上选择“创建资源”。On the main Azure menu, select Create a resource. 在搜索框中,输入 "集成帐户" 作为筛选器,并选择 "集成帐户"。In the search box, enter "integration account" as your filter, and select Integration Account.

    创建新的集成帐户

  3. 在 "集成帐户" 下,选择 "创建"。Under Integration Account, select Create.

    选择“添加”以创建集成帐户

  4. 提供有关集成帐户的下列信息:Provide this information about your integration account:

    提供集成帐户详细信息

    属性Property 需要Required Value DescriptionDescription
    名称Name Yes <integration-account-name> 集成帐户的名称,只能包含字母、数字、连字符(-)、下划线(_)、括号(())和句点(.)。Your integration account's name, which can contain only letters, numbers, hyphens (-), underscores (_), parentheses ((, )), and periods (.). 此示例使用 "Fabrikam-集成"。This example uses "Fabrikam-Integration".
    订阅Subscription Yes <Azure-subscription-name><Azure-subscription-name> Azure 订阅的名称The name for your Azure subscription
    资源组Resource group Yes <Azure-resource-group-name><Azure-resource-group-name> 用于组织相关资源的Azure 资源组的名称。The name for the Azure resource group to use for organizing related resources. 在此示例中,创建名为 "FabrikamIntegration" 的新资源组。For this example, create a new resource group with the name "FabrikamIntegration-RG".
    定价层Pricing Tier Yes <定价级别><pricing-level> 可在以后更改的集成帐户的定价层。The pricing tier for the integration account, which you can change later. 对于本示例,请选择 "免费"。For this example, select Free. 有关详细信息,请参阅以下主题:For more information, see these topics:

    - 逻辑应用定价模型- Logic Apps pricing model

    - 逻辑应用限制和配置- Logic Apps limits and configuration

    - 逻辑应用定价- Logic Apps pricing

    位置Location Yes <Azure-region><Azure-region> 用于存储集成帐户元数据的区域。The region where to store your integration account metadata. 选择与逻辑应用相同的位置,或在与集成帐户相同的位置创建逻辑应用。Either select the same location as your logic app, or create your logic apps in the same location as your integration account. 对于本示例,请使用 "美国西部"。For this example, use "West US".

    注意:若要在integration SERVICE 环境(ISE)中创建集成帐户,请选择 "ISE" 作为位置。Note: To create an integration account inside an integration service environment (ISE), select that ISE as the location. 有关详细信息,请参阅在 ISE 中创建集成帐户For more information, see Create integration accounts in an ISE.

    Log AnalyticsLog Analytics No 关闭,打开Off, On 对于本示例,请保留Off设置。Keep the Off setting for this example.
  5. 完成后,选择 "创建"。When you're finished, select Create.

    部署完成后,Azure 将打开你的集成帐户。After deployment completes, Azure opens your integration account.

    Azure 打开集成帐户

  6. 在逻辑应用可以使用集成帐户之前,请执行以下步骤,将集成帐户和逻辑应用链接在一起。Before your logic app can use your integration account, follow the next steps to link your integration account and logic app together.

若要使逻辑应用能够访问包含 B2B 项目的集成帐户,必须先将集成帐户链接到逻辑应用。To give your logic apps access to an integration account that contains your B2B artifacts, you must first link your integration account to your logic app. 逻辑应用和集成帐户必须存在于同一区域中。Both logic app and integration account must exist in the same region. 若要完成此任务,可以使用 Azure 门户。To complete this task, you can use the Azure portal. 如果使用 Visual Studio,并且逻辑应用位于Azure 资源组项目中,则可以使用 Visual Studio 将逻辑应用链接到集成帐户If you use Visual Studio and your logic app is in an Azure Resource Group project, you can link your logic app to an integration account by using Visual Studio.

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

  2. Azure 门户中,打开现有的逻辑应用或创建新的逻辑应用。In the Azure portal, open an existing logic app or create a new logic app.

  3. 在逻辑应用的菜单中,在“设置”下,选择“工作流设置”。On your logic app's menu, under Settings, select Workflow settings. 在 "集成帐户" 下,打开 "选择集成帐户列表"。Under Integration account, open the Select an Integration account list. 选择要链接到逻辑应用的集成帐户。Select the integration account to link to your logic app.

    选择集成帐户

  4. 若要完成链接,请选择 "保存"。To finish linking, select Save.

    选择集成帐户

    成功链接集成帐户后,Azure 将显示一条确认消息。After your integration account is successfully linked, Azure shows a confirmation message.

    Azure 确认成功链接

现在,逻辑应用可以使用集成帐户中的项目和 B2B 连接器,如 XML 验证和平面文件编码或解码。Now your logic app can use the artifacts in your integration account plus the B2B connectors, such as XML validation and flat file encoding or decoding.

更改定价层Change pricing tier

若要增加集成帐户的限制,可以升级到更高的定价层(如果可用)。To increase the limits for an integration account, you can upgrade to a higher pricing tier, if available. 例如,可以从免费层升级到基本层或标准层。For example, you can upgrade from the Free tier to the Basic tier or Standard tier. 还可以降级到更低的层(如果可用)。You can also downgrade to a lower tier, if available. 有关定价信息的详细信息,请参阅以下主题:For more information pricing information, see these topics:

升级定价层Upgrade pricing tier

若要进行此更改,可以按照本部分中的步骤或Azure CLI使用 Azure 门户。To make this change, you can use either the Azure portal by following the steps in this section or the Azure CLI.

Azure 门户Azure portal

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

  2. 在 Azure 的 Azure 搜索框中输入 "集成帐户" 作为筛选器,并选择 "集成帐户"。In the main Azure search box, enter "integration accounts" as your filter, and select Integration accounts.

    查找集成帐户

    Azure 显示 Azure 订阅中的所有集成帐户。Azure shows all the integration accounts in your Azure subscriptions.

  3. 在“集成帐户”下,选择要移动的集成帐户。Under Integration accounts, select the integration account that you want to move. 在集成帐户菜单中,选择 "概述"。On your integration account menu, select Overview.

    在 "集成帐户" 菜单上,选择 "概述"

  4. 在 "概述" 窗格上,选择 "升级定价层",其中列出了所有可用的更高级别。On the Overview pane, select Upgrade pricing tier, which lists any available higher tiers. 选择层时,更改会立即生效。When you select a tier, the change immediately takes effect.

Azure CLIAzure CLI

  1. 如果尚未这样做,请安装 Azure CLI 必备组件If you haven't done so already, install the Azure CLI prerequisites.

  2. 在 Azure 门户中,打开 Azure Cloud Shell环境。In the Azure portal, open the Azure Cloud Shell environment.

    打开 Azure Cloud Shell

  3. 在命令提示符下,输入 az resource命令,并将 skuName 设置为所需的更高级别。At the command prompt, enter the az resource command, and set skuName to the higher tier that you want.

    az resource update --resource-group {ResourceGroupName} --resource-type Microsoft.Logic/integrationAccounts --name {IntegrationAccountName} --subscription {AzureSubscriptionID} --set sku.name={SkuName}
    

    例如,如果具有基本层,则可以将 skuName 设置为 StandardFor example, if you have the Basic tier, you can set skuName to Standard:

    az resource update --resource-group FabrikamIntegration-RG --resource-type Microsoft.Logic/integrationAccounts --name Fabrikam-Integration --subscription XXXXXXXXXXXXXXXXX --set sku.name=Standard
    

降级定价层Downgrade pricing tier

若要进行此更改,请使用Azure CLITo make this change, use the Azure CLI.

  1. 如果尚未这样做,请安装 Azure CLI 必备组件If you haven't done so already, install the Azure CLI prerequisites.

  2. 在 Azure 门户中,打开 Azure Cloud Shell环境。In the Azure portal, open the Azure Cloud Shell environment.

    打开 Azure Cloud Shell

  3. 在命令提示符下,输入 az resource命令,并将 skuName 设置为所需的较低层。At the command prompt, enter the az resource command and set skuName to the lower tier that you want.

    az resource update --resource-group <resourceGroupName> --resource-type Microsoft.Logic/integrationAccounts --name <integrationAccountName> --subscription <AzureSubscriptionID> --set sku.name=<skuName>
    

    例如,如果您具有标准层,则可以将 skuName 设置为 BasicFor example, if you have the Standard tier, you can set skuName to Basic:

    az resource update --resource-group FabrikamIntegration-RG --resource-type Microsoft.Logic/integrationAccounts --name Fabrikam-Integration --subscription XXXXXXXXXXXXXXXXX --set sku.name=Basic
    

如果要将逻辑应用链接到其他集成帐户,或不再将集成帐户用于逻辑应用,请使用 Azure 资源浏览器删除链接。If you want to link your logic app to another integration account, or no longer use an integration account with your logic app, delete the link by using Azure Resource Explorer.

  1. 打开浏览器窗口,并中转到Azure 资源浏览器( https://resources.azure.com)Open your browser window, and go to Azure Resource Explorer (https://resources.azure.com). 用相同的 Azure 帐户凭据登录。Sign in with the same Azure account credentials.

    Azure 资源浏览器

  2. 在搜索框中,输入逻辑应用的名称,以便找到并选择逻辑应用。In the search box, enter your logic app's name so that you can find and select your logic app.

    查找并选择逻辑应用

  3. 在资源管理器标题栏上,选择 "读/写"。On the explorer title bar, select Read/Write.

    启用“读/写”模式

  4. 在 "数据" 选项卡上,选择 "编辑"。On the Data tab, select Edit.

    在 "数据" 选项卡上,选择 "编辑"

  5. 在编辑器中,查找 integrationAccount 对象,并删除该属性,该属性具有以下格式:In the editor, find the integrationAccount object, and delete that property, which has this format:

    {
       // <other-attributes>
       "integrationAccount": {
          "name": "<integration-account-name>",
          "id": "<integration-account-resource-ID>",
          "type": "Microsoft.Logic/integrationAccounts"  
    },
    

    例如:For example:

    查找 "integrationAccount" 对象

  6. 在 "数据" 选项卡上,选择 " Put " 以保存所做的更改。On the Data tab, select Put to save your changes.

    若要保存更改,请选择 "Put"

  7. 在 Azure 门户中,查找并选择逻辑应用。In the Azure portal, find and select your logic app. 在应用的工作流设置下,检查 "集成帐户" 属性现在是否显示为空。Under your app's Workflow settings, check that the Integration account property now appears empty.

    检查集成帐户是否未链接

移动集成帐户Move integration account

可以将集成帐户移到另一个 Azure 资源组或 Azure 订阅。You can move your integration account to another Azure resource group or Azure subscription. 移动资源时,Azure 会创建新的资源 Id,因此请确保改用新 Id 并更新与移动的资源关联的任何脚本或工具。When you move resources, Azure creates new resource IDs, so make sure that you use the new IDs instead and update any scripts or tools associated with the moved resources. 如果要更改订阅,还必须指定现有或新的资源组。If you want to change the subscription, you must also specify an existing or new resource group.

对于此任务,您可以按照本部分中的步骤或Azure CLI使用 Azure 门户。For this task, you can use either the Azure portal by following the steps in this section or the Azure CLI.

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

  2. 在 Azure 的 Azure 搜索框中输入 "集成帐户" 作为筛选器,并选择 "集成帐户"。In the main Azure search box, enter "integration accounts" as your filter, and select Integration accounts.

    查找集成帐户

    Azure 显示 Azure 订阅中的所有集成帐户。Azure shows all the integration accounts in your Azure subscriptions.

  3. 在“集成帐户”下,选择要移动的集成帐户。Under Integration accounts, select the integration account that you want to move. 在集成帐户菜单中,选择 "概述"。On your integration account menu, select Overview.

    在 "集成帐户" 菜单上,选择 "概述"

  4. 选择 "资源组" 或 "订阅名称" 旁边的 "更改"。Next to either Resource group or Subscription name, select change.

    更改资源组或订阅

  5. 选择要移动的任何相关资源。Select any related resources that you also want to move.

  6. 根据所做的选择,请按照以下步骤更改资源组或订阅:Based on your selection, follow these steps to change the resource group or subscription:

    • 资源组:从 "资源组" 列表中,选择目标资源组。Resource group: From the Resource group list, select the destination resource group. 或者,若要创建其他资源组,请选择 "创建新的资源组"。Or, to create a different resource group, select Create a new resource group.

    • 订阅:从 "订阅" 列表中,选择目标订阅。Subscription: From the Subscription list, select the destination subscription. 从 "资源组" 列表中,选择目标资源组。From the Resource group list, select the destination resource group. 或者,若要创建其他资源组,请选择 "创建新的资源组"。Or, to create a different resource group, select Create a new resource group.

  7. 若要确认你的了解,在使用新的资源 Id 更新它们之前,与所移动资源关联的任何脚本或工具都不起作用,请选择确认框,然后选择 "确定"To acknowledge your understanding that any scripts or tools associated with the moved resources won't work until you update them with the new resource IDs, select the confirmation box, and then select OK.

  8. 完成后,请确保为已移动资源的新资源 Id 更新任何和所有脚本。After you finish, make sure that you update any and all scripts with the new resource IDs for your moved resources.

删除集成帐户Delete integration account

对于此任务,您可以按照本部分中的步骤使用 Azure 门户, Azure CLIAzure PowerShellFor this task, you can use either the Azure portal by following the steps in this section, Azure CLI, or Azure PowerShell.

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

  2. 在 Azure 的 Azure 搜索框中输入 "集成帐户" 作为筛选器,并选择 "集成帐户"。In the main Azure search box, enter "integration accounts" as your filter, and select Integration accounts.

    查找集成帐户

    Azure 显示 Azure 订阅中的所有集成帐户。Azure shows all the integration accounts in your Azure subscriptions.

  3. 在“集成帐户”下,选择要删除的集成帐户。Under Integration accounts, select the integration account that you want to delete. 在集成帐户菜单中,选择 "概述"。On your integration account menu, select Overview.

    在 "集成帐户" 菜单上,选择 "概述"

  4. 在 "概述" 窗格上,选择 "删除"。On the Overview pane, select Delete.

    在 "概述" 窗格上,选择 "删除"

  5. 若要确认是否要删除集成帐户,请选择 "是"To confirm that you want to delete your integration account, select Yes.

    若要确认删除,请选择 "是"

后续步骤Next steps