创建和管理 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.

本主题介绍如何执行以下任务: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 ValueValue 说明Description
    名称Name Yes <integration-account-name> 集成帐户的名称,只能包含字母、数字、连字符 (-)、下划线 (_)、括号(())和句点 (.)。Your integration account's name, which can contain only letters, numbers, hyphens (-), underscores (_), parentheses ((, )), and periods (.). 本示例使用的名称是“Fabrikam-Integration”。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-RG”的新资源组。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 "China North".
    Log AnalyticsLog Analytics No 关闭、打开Off, On 对于本示例,请保留“关闭”设置。 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 门户并执行本部分中所述的步骤,或使用 Azure CLITo 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 主要搜索框中,输入“集成帐户”作为筛选器,然后选择“集成帐户”。 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. 在本地电脑上打开 bash shell。Open the bash shell on your local PC.

  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. 在本地电脑上打开 bash shell。Open the bash shell on your local PC.

  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
    

移动集成帐户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 门户并执行本部分中所述的步骤,或使用 Azure CLIFor 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 主要搜索框中,输入“集成帐户”作为筛选器,然后选择“集成帐户”。 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 主要搜索框中,输入“集成帐户”作为筛选器,然后选择“集成帐户”。 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