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

Azure 逻辑应用的连接器Connectors for Azure Logic Apps

使用连接器可以从 Azure 逻辑应用快速访问其他应用、服务、系统、协议和平台的事件、数据和操作。Connectors provide quick access from Azure Logic Apps to events, data, and actions across other apps, services, systems, protocols, and platforms. 使用逻辑应用中连接器,可以扩展云和本地应用的功能,以便对创建的数据和现有的数据执行任务。By using connectors in your logic apps, you expand the capabilities for your cloud and on-premises apps to perform tasks with the data that you create and already have.

虽然逻辑应用提供了数百个连接器,但本文介绍了广泛且更常用的连接器,这些连接器已成功由成千上万的应用程序和用于处理数据和信息的数百万次使用。While Logic Apps offers hundreds of connectors, this article describes popular and more commonly used connectors that are successfully used by thousands of apps and millions of executions for processing data and information. 若要查找连接器的完整列表以及每个连接器的参考信息(如触发器、操作和限制),请查看连接器概述下的连接器引用页面。To find the full list of connectors and each connector's reference information, such as triggers, actions, and limits, review the connector reference pages under Connectors overview. 此外,详细了解触发器和操作逻辑应用定价模型逻辑应用定价详细信息Also, learn more about triggers and actions, Logic Apps pricing model, and Logic Apps pricing details.

备注

若要与没有连接器的服务或 API 集成,可以直接通过协议(如 HTTP)或创建自定义连接器来调用服务。To integrate with a service or API that doesn't have connector, you can either directly call the service over a protocol such as HTTP or create a custom connector.

连接器可以作为内置触发器和操作,也可以作为托管连接器使用:Connectors are available either as built-in triggers and actions or as managed connectors:

  • 内置:这些内置触发器和操作都是 "本机" 到 Azure 逻辑应用,可帮助你创建按自定义计划运行的逻辑应用,与其他终结点通信,接收和响应请求,以及调用 azure 函数、Azure api 应用(Web 应用)、你自己的 api (通过 Azure api 管理进行管理和发布)以及可以接收请求的嵌套逻辑应用。Built-ins: These built-in triggers and actions are "native" to Azure Logic Apps and help you create logic apps that run on custom schedules, communicate with other endpoints, receive and respond to requests, and call Azure functions, Azure API Apps (Web Apps), your own APIs managed and published with Azure API Management, and nested logic apps that can receive requests. 还可以使用内置操作来帮助组织和控制逻辑应用工作流及处理数据。You can also use built-in actions that help you organize and control your logic app's workflow, and also work with data.

    备注

    集成服务环境(ISE)中的逻辑应用可以直接访问 Azure 虚拟网络中的资源。Logic apps within an integration service environment (ISE) can directly access resources in an Azure virtual network. 使用 ISE 时,将在逻辑应用所在的 ISE 中运行显示 "核心" 标签的内置触发器和操作。When you use an ISE, built-in triggers and actions that display the Core label run in the same ISE as your logic apps. 在 ISE 中运行的逻辑应用、内置触发器和内置操作使用不同于基于消耗的定价计划的定价计划。Logic apps, built-in triggers, and built-in actions that run in your ISE use a pricing plan different from the consumption-based pricing plan.

    有关创建 ISEs 的详细信息,请参阅从 Azure 逻辑应用连接到 azure 虚拟网络For more information about creating ISEs, see Connect to Azure virtual networks from Azure Logic Apps. 有关定价的详细信息,请参阅逻辑应用定价模型For more information about pricing, see Logic Apps pricing model.

  • 托管连接器:由 Microsoft 部署和管理,这些连接器提供用于访问云服务和/或本地系统的触发器和操作,包括 Office 365、Azure Blob 存储、SQL Server、Dynamics、Salesforce、SharePoint 等。Managed connectors: Deployed and managed by Microsoft, these connectors provide triggers and actions for accessing cloud services, on-premises systems, or both, including Office 365, Azure Blob Storage, SQL Server, Dynamics, Salesforce, SharePoint, and more. 某些连接器专门支持企业到企业(B2B)通信方案,并且需要一个链接到逻辑应用的集成帐户Some connectors specifically support business-to-business (B2B) communication scenarios and require an integration account that's linked to your logic app. 使用特定连接器之前,你可能必须首先创建由 Azure 逻辑应用管理的连接。Before using certain connectors, you might have to first create connections, which are managed by Azure Logic Apps.

    例如,如果你使用的是 Microsoft BizTalk Server,则逻辑应用可以使用BizTalk Server 本地连接器连接到 BizTalk Server 并与之通信。For example, if you're using Microsoft BizTalk Server, your logic apps can connect to and communicate with your BizTalk Server by using the BizTalk Server on-premises connector. 然后,可以使用集成帐户连接器在逻辑应用中扩展或执行类似于 BizTalk 的操作。You can then extend or perform BizTalk-like operations in your logic apps by using the integration account connectors.

    连接器分类为标准或企业。Connectors are classified as either Standard or Enterprise. 企业连接器提供对企业系统(例如 SAP、ibm MQ 和 ibm 3270)的访问权限,以增加成本。Enterprise connectors provide access to enterprise systems such as SAP, IBM MQ, and IBM 3270 for an additional cost. 若要确定连接器是标准连接器还是企业版,请参阅连接器概述下每个连接器的参考页中的技术详细信息。To determine whether a connector is Standard or Enterprise, see the technical details in each connector's reference page under Connectors overview.

    你还可以使用这些类别来识别连接器,尽管某些连接器可以跨多个类别。You can also identify connectors by using these categories, although some connectors can cross multiple categories. 例如,SAP 是企业连接器和本地连接器:For example, SAP is an Enterprise connector and an on-premises connector:

    托管的 API 连接器Managed API connectors 创建使用 Azure Blob 存储、Office 365、Dynamics、Power BI、OneDrive、Salesforce、SharePoint Online 等服务的逻辑应用。Create logic apps that use services such as Azure Blob Storage, Office 365, Dynamics, Power BI, OneDrive, Salesforce, SharePoint Online, and many more.
    本地连接器On-premises connectors 安装并设置本地数据网关之后,这些连接器可帮助逻辑应用访问本地系统,例如 SQL Server、SharePoint Server、Oracle DB、文件共享等。After you install and set up the on-premises data gateway, these connectors help your logic apps access on-premises systems such as SQL Server, SharePoint Server, Oracle DB, file shares, and others.
    集成帐户连接器Integration account connectors 创建和付费购买集成帐户时可以使用这些连接器,它们会转换和验证 XML、编码和解码平面文件,以及使用 AS2、EDIFACT 和 X12 协议处理企业到企业 (B2B) 消息。Available when you create and pay for an integration account, these connectors transform and validate XML, encode and decode flat files, and process business-to-business (B2B) messages with AS2, EDIFACT, and X12 protocols.

    备注

    集成服务环境(ISE)中的逻辑应用可以直接访问 Azure 虚拟网络中的资源。Logic apps within an integration service environment (ISE) can directly access resources in an Azure virtual network. 使用 ISE 时,显示ise标签的标准和企业连接器与逻辑应用在同一 ISE 中运行。When you use an ISE, Standard and Enterprise connectors that display the ISE label run in the same ISE as your logic apps. 不显示 ISE 标签的连接器在全局逻辑应用服务中运行。Connectors that don't display the ISE label run in the global Logic Apps service.

    对于连接到 Azure 虚拟网络的本地系统,请将 ISE 注入该网络,以便逻辑应用可以使用具有ISE标签、HTTP 操作或自定义连接器的连接器直接访问这些系统。For on-premises systems that are connected to an Azure virtual network, inject your ISE into that network so your logic apps can directly access those systems by using either a connector that has an ISE label, an HTTP action, or a custom connector. 在 ISE 中运行的逻辑应用和连接器使用不同于基于消耗的定价计划的定价计划。Logic apps and connectors that run in your ISE use a pricing plan different from the consumption-based pricing plan.

    有关创建 ISEs 的详细信息,请参阅从 Azure 逻辑应用连接到 azure 虚拟网络For more information about creating ISEs, see Connect to Azure virtual networks from Azure Logic Apps. 有关定价的详细信息,请参阅逻辑应用定价模型For more information about pricing, see Logic Apps pricing model.

    有关连接器的完整列表以及每个连接器的参考信息,如操作和任何触发器(由 OpenAPI (以前的 Swagger)说明定义)加上任何限制,可以在连接器概述下找到完整列表。For the full list of connectors and each connector's reference information, such as actions and any triggers, which are defined by an OpenAPI (formerly Swagger) description, plus any limits, you can find the full list under the Connectors overview. 有关定价信息,请参阅逻辑应用定价模型逻辑应用定价详细信息For pricing information, see Logic Apps pricing model, and Logic Apps pricing details.

内置操作Built-ins

逻辑应用提供内置触发器和操作,因此你可以创建基于计划的工作流、帮助逻辑应用与其他应用和服务通信、通过逻辑应用控制工作流,以及管理或处理数据。Logic Apps provides built-in triggers and actions so you can create schedule-based workflows, help your logic apps communicate with other apps and services, control the workflow through your logic apps, and manage or manipulate data.


计划API 图标
API icon
Schedule
- 使用“重复周期”触发器,按指定的计划以简单到复杂的重复方案运行逻辑应用。- Run your logic app on a specified schedule, ranging from basic to complex recurrences, with the Recurrence trigger.

- 使用“延迟”操作,将逻辑应用暂停指定的持续时间。- Pause your logic app for a specified duration with the Delay action.

- 使用“延迟截止时间”操作,将逻辑应用暂停到指定的日期和时间。- Pause your logic app until the specified date and time with the Delay until action.


HTTP API 图标
API icon
HTTP
使用适用于 HTTP、HTTP + Swagger 和 HTTP + Webhook 的触发器和操作,通过 HTTP 与任何终结点通信。Communicate with any endpoint over HTTP with both triggers and actions for HTTP, HTTP + Swagger, and HTTP + Webhook.
API 图标
请求
API icon
Request
- 使用“请求”触发器,使逻辑应用可从其他应用程序或服务调用、针对事件网格资源事件触发,或者针对 Azure 安全中心警报触发。- Make your logic app callable from other apps or services, trigger on Event Grid resource events, or trigger on responses to Azure Security Center alerts with the Request trigger.

- 使用“响应”操作将响应发送到应用或服务。- Send responses to an app or service with the Response action.


Batch API 图标
API icon
Batch
- 使用“批处理消息”触发器来批量处理消息。- Process messages in batches with the Batch messages trigger.

- 使用“发送要批量处理的消息”操作调用具有现有批处理触发器的逻辑应用。- Call logic apps that have existing batch triggers with the Send messages to batch action.


API 图标Azure Functions
API icon
Azure Functions
从逻辑应用调用运行自定义代码片段(C# 或 Node.js)的 Azure 函数。Call Azure functions that run custom code snippets (C# or Node.js) from your logic apps. AZURE Api 管理
api 图标
API icon
Azure API Management
调用可以使用 Azure API 管理进行管理和发布的自有 API 定义的触发器与操作。Call triggers and actions defined by your own APIs that you manage and publish with Azure API Management.
Azure 应用服务
API 图标
API icon
Azure App Services
调用 Azure 应用服务上托管的 Azure API 应用或 Web 应用。Call Azure API Apps, or Web Apps, hosted on Azure App Service. 包含 Swagger 后,这些应用定义的触发器和操作类似于其他任何第一类触发器和操作。The triggers and actions defined by these apps appear like any other first-class triggers and actions when Swagger is included. Azure
逻辑应用

API 图标
API icon
Azure
Logic Apps
调用使用“请求”触发器启动的其他逻辑应用。Call other logic apps that start with a Request trigger.

控制工作流Control workflow

逻辑应用提供内置操作来构造和控制逻辑应用工作流中的操作:Logic Apps provides built-in actions for structuring and controlling the actions in your logic app's workflow:


条件内置图标
Built-in Icon
Condition
评估条件,并根据条件是 true 还是 false 运行不同的操作。Evaluate a condition and run different actions based on whether the condition is true or false. 每个内置图标
Built-in Icon
For each
对数组中的每个项执行相同的操作。Perform the same actions on every item in an array.
内置图标
范围
Built-in Icon
Scope
将操作分组到范围,以便在该范围内的操作完成运行后,获取这些操作的自身状态。Group actions into scopes, which get their own status after the actions in the scope finish running.
开关内置图标
Built-in Icon
Switch
将操作分组到案例,而案例分配有唯一的值(默认案例除外)。Group actions into cases, which are assigned unique values except for the default case. 仅运行其分配值与表达式、对象或令牌的结果相匹配的案例。Run only that case whose assigned value matches the result from an expression, object, or token. 如果不存在任何匹配项,则运行默认案例。If no matches exist, run the default case.
内置图标
终止
Built-in Icon
Terminate
停止当前正在运行的逻辑应用工作流。Stop an actively running logic app workflow. **
** 内置图标
Built-in Icon
Until
重复操作,直到指定的条件为 true 或某个状态发生更改。Repeat actions until the specified condition is true or some state has changed.

管理或处理数据Manage or manipulate data

逻辑应用提供了用于处理数据输出及其格式的内置操作:Logic Apps provides built-in actions for working with data outputs and their formats:

内置图标
数据操作
Built-in Icon
Data Operations
对数据执行操作:Perform operations with data:

- 组合:基于具有不同类型的多个输入创建单个输出。- Compose: Create a single output from multiple inputs with various types.
- 创建 CSV 表:基于包含 JSON 对象的数组创建逗号分隔值 (CSV) 表。- Create CSV table: Create a comma-separated-value (CSV) table from an array with JSON objects.
- 创建 HTML 表:基于包含 JSON 对象的数组创建一个 HTML 表。- Create HTML table: Create an HTML table from an array with JSON objects.
- 筛选数组:基于符合条件的另一个数组中的项创建一个数组。- Filter array: Create an array from items in another array that meet your criteria.
- 联接:基于数组中的所有项创建一个字符串,并使用指定的分隔符分隔这些项。- Join: Create a string from all items in an array and separate those items with the specified delimiter.
- 分析 JSON:基于 JSON 内容中的属性及其值创建用户友好的令牌,以便可以在工作流中使用这些属性。- Parse JSON: Create user-friendly tokens from properties and their values in JSON content so you can use those properties in your workflow.
- 选择:通过转换另一数组中的项或值并将这些项映射到指定的属性,创建包含 JSON 对象的数组。- Select: Create an array with JSON objects by transforming items or values in another array and mapping those items to specified properties.

内置操作图标Built-in Icon
日期时间Date Time
对时间戳执行操作:Perform operations with timestamps:

- 添加到时间:将指定的单位数添加到时间戳。- Add to time: Add the specified number of units to a timestamp.
- 转换时区:将时间戳从源时区转换为目标时区。- Convert time zone: Convert a timestamp from the source time zone to the target time zone.
- 当前时间:返回字符串形式的当前时间戳。- Current time: Return the current timestamp as a string.
- 获取将来的时间:返回当前时间戳加上指定的时间单位。- Get future time: Return the current timestamp plus the specified time units.
- 获取过去的时间:返回当前时间戳减去指定的时间单位。- Get past time: Return the current timestamp minus the specified time units.
- 从时间减去:从时间戳中减去一定数目的时间单位。- Subtract from time: Subtract a number of time units from a timestamp.


变量内置图标
Built-in Icon
Variables
对变量执行操作:Perform operations with variables:

- 追加到数组变量:插入一个值,作为变量存储的数组中的最后一个项。- Append to array variable: Insert a value as the last item in an array stored by a variable.
- 追加到字符串变量:插入一个值,作为变量存储的字符串中的最后一个字符。- Append to string variable: Insert a value as the last character in a string stored by a variable.
- 递减变量:按常量值减小变量。- Decrement variable: Decrease a variable by a constant value.
- 递增变量:按常量值增大变量。- Increment variable: Increase a variable by a constant value.
- 初始化变量:创建一个变量并声明其数据类型和初始值。- Initialize variable: Create a variable and declare its data type and initial value.
- 设置变量:将不同的值分配给现有变量。- Set variable: Assign a different value to an existing variable.

托管的 API 连接器Managed API connectors

逻辑应用提供了这些常用的标准连接器,可通过这些服务或系统自动执行任务、流程和工作流。Logic Apps provides these popular Standard connectors for automating tasks, processes, and workflows with these services or systems.

Azure 服务总线
API 图标
API icon
Azure Service Bus
使用逻辑应用中最常用的连接器管理异步消息、会话和主题订阅。Manage asynchronous messages, sessions, and topic subscriptions with the most commonly used connector in Logic Apps.
API 图标SQL Server
API icon
SQL Server
连接到本地 SQL Server 或云中的 Azure SQL 数据库,以便可以管理记录、运行存储过程或执行查询。Connect to your SQL Server on premises or an Azure SQL Database in the cloud so you can manage records, run stored procedures, or perform queries.

Office 365
Outlook
API 图标
API icon
Office 365
Outlook
连接到 Office 365 电子邮件帐户,以便可以创建和管理电子邮件、任务、日历事件和会议、联系人、请求,等等。Connect to your Office 365 email account so you can create and manage emails, tasks, calendar events and meetings, contacts, requests, and more. API 图标
Azure Blob
存储
API icon
Azure Blob
Storage
连接到存储帐户,以便可以创建和管理 Blob 内容。Connect to your storage account so you can create and manage blob content.
SFTP
API 图标
API icon
SFTP
连接到可从 internet 访问的 SFTP 服务器,以便能够处理文件和文件夹。Connect to SFTP servers you can access from the internet so you can work with your files and folders. SharePoint
Online

API 图标
API icon
SharePoint
Online
连接到 SharePoint Online,以便能够管理文件、附件、文件夹,等等。Connect to SharePoint Online so you can manage files, attachments, folders, and more.

Dynamics 365
CRM Online
API 图标
API icon
Dynamics 365
CRM Online
连接到 Dynamics 365 帐户,以便能够创建和管理记录、项,等等。Connect to your Dynamics 365 account so you can create and manage records, items, and more.
FTPAPI 图标
API icon
FTP
连接到可从 internet 访问的 FTP 服务器,以便能够处理文件和文件夹。Connect to FTP servers you can access from the internet so you can work with your files and folders.

Salesforce API 图标
API icon
Salesforce
连接到 Salesforce 帐户,以便能够创建和管理记录、作业、对象等项。Connect to your Salesforce account so you can create and manage items such as records, jobs, objects, and more. Twitter
API 图标
API icon
Twitter
连接到 Twitter 帐户,以便能够管理推文、关注者、时间表、等等。Connect to your Twitter account so you can manage tweets, followers, your timeline, and more. 将推文保存到 SQL、Excel 或 SharePoint。Save your tweets to SQL, Excel, or SharePoint.
Azure 事件中心
API 图标
API icon
Azure Event Hubs
通过事件中心使用和发布事件。Consume and publish events through an Event Hub. 例如,通过事件中心获取逻辑应用的输出,然后将输出发送到实时分析提供程序。For example, get output from your logic app with Event Hubs, and then send that output to a real-time analytics provider. Azure 事件
API 图标网格
API icon
Azure Event
Grid
监视事件网格发布的事件(例如,当 Azure 资源或第三方资源发生更改时)。Monitor events published by an Event Grid, for example, when Azure resources or third-party resources change.

本地连接器On-premises connectors

下面是逻辑应用提供的一些常用标准连接器,用于访问本地系统中的数据和资源。Here are some commonly used Standard connectors that Logic Apps provides for accessing data and resources in on-premises systems. 必须先下载、安装和设置本地数据网关,然后才能创建与本地系统的连接。Before you can create a connection to an on-premises system, you must first download, install, and set up an on-premises data gateway. 此网关提供安全信道,无需设置所需的网络基础结构。This gateway provides a secure communication channel without having to set up the necessary network infrastructure.

API 图标API icon
BizTalkBizTalk
ServerServer

文件
系统
API 图标
API icon
File
System
IBM DB2
API 图标
API icon
IBM DB2
IBM
INFORMIX

API 图标
API icon
IBM
Informix
API 图标API icon
MySQLMySQL

API 图标Oracle DB
API icon
Oracle DB
API 图标API icon
PostgreSQLPostgreSQL
SharePoint
服务器

API 图标
API icon
SharePoint
Server

SQL
服务器
API 图标
API icon
SQL
Server
API 图标API icon
TeradataTeradata

集成帐户连接器Integration account connectors

创建和支付集成帐户时,逻辑应用提供了标准连接器用于构建企业到企业(B2B)解决方案,可通过 Azure 中的 ENTERPRISE INTEGRATION PACK (EIP)获得。Logic Apps provides Standard connectors for building business-to-business (B2B) solutions with your logic apps when you create and pay for an integration account, which is available through the Enterprise Integration Pack (EIP) in Azure. 使用此帐户可以创建和存储 B2B 项目,例如贸易合作伙伴、协议、映射、架构、证书,等等。With this account, you can create and store B2B artifacts such as trading partners, agreements, maps, schemas, certificates, and so on. 若要使用这些项目,请将逻辑应用与集成帐户相关联。To use these artifacts, associate your logic apps with your integration account. 如果你当前使用的是 BizTalk Server,则可能已熟悉这些连接器的用法。If you currently use BizTalk Server, these connectors might seem familiar already.

API 图标
AS2
解码
API icon
AS2
decoding
API 图标
AS2
编码
API icon
AS2
encoding
API 图标
EDIFACT
解码
API icon
EDIFACT
decoding
API 图标
EDIFACT
编码
API icon
EDIFACT
encoding
API 图标
平面文件
解码
API icon
Flat file
decoding
API 图标
平面文件
编码
API icon
Flat file
encoding
API 图标
Integration
帐户
API icon
Integration
account

液体
转换API 图标
API icon
Liquid
transforms
API 图标
X12
解码
API icon
X12
decoding

X12
编码
API 图标
API icon
X12
encoding

XML
转换API 图标
API icon
XML
transforms

XML
验证
API 图标
API icon
XML
validation

企业连接器Enterprise connectors

逻辑应用提供了这些企业连接器用于访问企业系统,例如 SAP 和 IBM MQ:Logic Apps provides these Enterprise connectors for accessing enterprise systems, such as SAP and IBM MQ:

IBM 3270
API 图标
API icon
IBM 3270
IBM MQ
API 图标
API icon
IBM MQ
SAP
API 图标
API icon
SAP

触发器和操作-详细信息Triggers and actions - more info

连接器可以提供触发器和/或操作Connectors can provide triggers, actions, or both. 触发器是任何逻辑应用中的第一步,通常指定触发触发器并开始运行逻辑应用的事件。A trigger is the first step in any logic app, usually specifying the event that fires the trigger and starts running your logic app. 例如,FTP 连接器具有一个触发器,该触发器在添加或修改文件时启动逻辑应用。For example, the FTP connector has a trigger that starts your logic app "when a file is added or modified". 某些触发器会定期检查指定的事件或数据,并在检测到指定的事件或数据时触发。Some triggers regularly check for the specified event or data and then fire when they detect the specified event or data. 当发生特定事件或新数据可用时,其他触发器等待但立即触发。Other triggers wait but fire instantly when a specific event happens or when new data is available. 触发器还会将任何所需的数据传递到逻辑应用。Triggers also pass along any required data to your logic app. 逻辑应用可在整个工作流中读取和使用这些数据。Your logic app can read and use that data throughout the workflow. 例如,Twitter 连接器具有一个触发器,即 "发布新推文时",它会将推文的内容传递到逻辑应用的工作流。For example, the Twitter connector has a trigger, "When a new tweet is posted", that passes the tweet's content into your logic app's workflow.

触发触发器后,Azure 逻辑应用会创建逻辑应用的实例,并开始在逻辑应用的工作流中运行这些操作After a trigger fires, Azure Logic Apps creates an instance of your logic app and starts running the actions in your logic app's workflow. 操作是指在逻辑应用的工作流中执行触发器并执行任务的步骤。Actions are the steps that follow the trigger and perform tasks in your logic app's workflow. 例如,可以创建一个逻辑应用,用于从 SQL 数据库获取客户数据,并在以后的操作中处理该数据。For example, you can create a logic app that gets customer data from a SQL database and process that data in later actions.

下面是 Azure 逻辑应用提供的常见触发器类型:Here are the general kinds of triggers that Azure Logic Apps provides:

  • 定期触发器:此触发器按指定的计划运行,并与特定服务或系统紧密关联。Recurrence trigger: This trigger runs on a specified schedule and isn't tightly associated with a particular service or system.

  • 轮询触发器:此触发器根据指定的计划定期轮询特定服务或系统、检查是否有新数据或是否发生了特定事件。Polling trigger: This trigger regularly polls a specific service or system based on the specified schedule, checking for new data or whether a specific event happened. 如果有新数据可用或发生特定事件,则触发器将创建并运行逻辑应用的新实例,该实例现在可以使用作为输入传递的数据。If new data is available or the specific event happened, the trigger creates and runs a new instance of your logic app, which can now use the data that's passed as input.

  • 推送触发器:此触发器等待并侦听新数据或事件发生。Push trigger: This trigger waits and listens for new data or for an event to happen. 当新数据可用或事件发生时,触发器将创建并运行逻辑应用的新实例,该实例现在可以使用作为输入传递的数据。When new data is available or when the event happens, the trigger creates and runs new instance of your logic app, which can now use the data that's passed as input.

连接器配置Connector configuration

每个连接器的触发器和操作都提供自己的属性供您进行配置。Each connector's triggers and actions provide their own properties for you to configure. 许多连接器还要求首先创建与目标服务或系统的连接,并提供身份验证凭据或其他配置详细信息,然后才能在逻辑应用中使用触发器或操作。Many connectors also require that you first create a connection to the target service or system and provide authentication credentials or other configuration details before you can use a trigger or action in your logic app. 例如,你必须授权到 Twitter 帐户的连接来访问数据或代表你发布。For example, you must authorize a connection to a Twitter account for accessing data or to post on your behalf.

对于使用 Azure Active Directory (Azure AD) OAuth 的连接器,创建连接意味着登录到服务(例如 Office 365、Salesforce 或 GitHub),在此服务中,将对访问令牌进行加密并将其安全地存储在 Azure 密钥存储中。For connectors that use Azure Active Directory (Azure AD) OAuth, creating a connection means signing into the service, such as Office 365, Salesforce, or GitHub, where your access token is encrypted and securely stored in an Azure secret store. 其他连接器(如 FTP 和 SQL)需要具有配置详细信息的连接,如服务器地址、用户名和密码。Other connectors, such as FTP and SQL, require a connection that has configuration details, such as the server address, username, and password. 这些连接配置详细信息同样加密并安全存储。These connection configuration details are also encrypted and securely stored. 详细了解Azure 中的加密Learn more about encryption in Azure.

只要该服务或系统允许,连接就可以访问目标服务或系统。Connections can access the target service or system for as long as that service or system allows. 对于使用 Azure AD OAuth 连接的服务(如 Office 365 和 Dynamics),Azure 逻辑应用会无限期地刷新访问令牌。For services that use Azure AD OAuth connections, such as Office 365 and Dynamics, Azure Logic Apps refreshes access tokens indefinitely. 其他服务可能会限制 Azure 逻辑应用无需刷新即可使用令牌的时间。Other services might have limits on how long Azure Logic Apps can use a token without refreshing. 通常,某些操作会使所有访问令牌(例如更改密码)失效。Generally, some actions invalidate all access tokens, such as changing your password.

自定义 API 和连接器Custom APIs and connectors

若要调用运行自定义代码或者无法作为连接器使用的 API,可以通过创建自定义 API 应用来扩展逻辑应用平台。To call APIs that run custom code or aren't available as connectors, you can extend the Logic Apps platform by creating custom API Apps. 还可以针对任何基于 REST 或 SOAP 的 API 创建自定义连接器,使这些 API 可供 Azure 订阅中的任何逻辑应用使用。You can also create custom connectors for any REST or SOAP-based APIs, which make those APIs available to any logic app in your Azure subscription. 若要使自定义 API 应用或连接器可供任何人在 Azure 中使用,可以提交连接器进行 Microsoft 认证To make custom API Apps or connectors public for anyone to use in Azure, you can submit connectors for Microsoft certification.

备注

集成服务环境(ISE)中的逻辑应用可以直接访问 Azure 虚拟网络中的资源。Logic apps within an integration service environment (ISE) can directly access resources in an Azure virtual network. 如果你有需要本地数据网关的自定义连接器,并且你在 ISE 外部创建了这些连接器,则 ISE 中的逻辑应用还可以使用这些连接器。If you have custom connectors that require the on-premises data gateway, and you created those connectors outside an ISE, logic apps in an ISE can also use those connectors.

在 ISE 中创建的自定义连接器不适用于本地数据网关。Custom connectors created within an ISE don't work with the on-premises data gateway. 但是,这些连接器可以直接访问连接到托管 ISE 的 Azure 虚拟网络的本地数据源。However, these connectors can directly access on-premises data sources that are connected to an Azure virtual network hosting the ISE. 因此,在与这些资源通信时,ISE 中的逻辑应用最有可能不需要数据网关。So, logic apps in an ISE most likely don't need the data gateway when communicating with those resources.

有关创建 ISEs 的详细信息,请参阅从 Azure 逻辑应用连接到 azure 虚拟网络For more information about creating ISEs, see Connect to Azure virtual networks from Azure Logic Apps.

后续步骤Next steps