Bicep 资源定义
可以使用目标操作部署工作流资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.Logic/workflows 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.Logic/workflows@2019-05-01' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
accessControl: {
actions: {
allowedCallerIpAddresses: [
{
addressRange: 'string'
}
]
openAuthenticationPolicies: {
policies: {
{customized property}: {
claims: [
{
name: 'string'
value: 'string'
}
]
type: 'string'
}
}
}
}
contents: {
allowedCallerIpAddresses: [
{
addressRange: 'string'
}
]
openAuthenticationPolicies: {
policies: {
{customized property}: {
claims: [
{
name: 'string'
value: 'string'
}
]
type: 'string'
}
}
}
}
triggers: {
allowedCallerIpAddresses: [
{
addressRange: 'string'
}
]
openAuthenticationPolicies: {
policies: {
{customized property}: {
claims: [
{
name: 'string'
value: 'string'
}
]
type: 'string'
}
}
}
}
workflowManagement: {
allowedCallerIpAddresses: [
{
addressRange: 'string'
}
]
openAuthenticationPolicies: {
policies: {
{customized property}: {
claims: [
{
name: 'string'
value: 'string'
}
]
type: 'string'
}
}
}
}
}
definition: any(...)
endpointsConfiguration: {
connector: {
accessEndpointIpAddresses: [
{
address: 'string'
}
]
outgoingIpAddresses: [
{
address: 'string'
}
]
}
workflow: {
accessEndpointIpAddresses: [
{
address: 'string'
}
]
outgoingIpAddresses: [
{
address: 'string'
}
]
}
}
integrationAccount: {
id: 'string'
}
integrationServiceEnvironment: {
id: 'string'
}
parameters: {
{customized property}: {
description: 'string'
metadata: any(...)
type: 'string'
value: any(...)
}
}
state: 'string'
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.Logic/工作流
FlowAccessControlConfiguration
FlowAccessControlConfigurationPolicy
FlowEndpoints (流端点)
FlowEndpointsConfiguration
IP地址
IpAddressRange (英语)
名字 |
描述 |
价值 |
addressRange 地址范围 |
IP 地址范围。 |
字符串 |
ManagedServiceIdentity
名字 |
描述 |
价值 |
类型 |
托管服务标识的类型。 类型“SystemAssigned”包括隐式创建的标识。 类型“None”将从资源中删除任何标识。 |
“None” “SystemAssigned” “UserAssigned”(必需) |
用户分配的标识 |
与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} |
ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
OpenAuthenticationAccessPolicies
OpenAuthenticationAccessPolicies
OpenAuthenticationAccessPolicy
OpenAuthenticationPolicyClaim
名字 |
描述 |
价值 |
名字 |
声明名称。 |
字符串 |
价值 |
声明的值。 |
字符串 |
资源引用
UserAssignedIdentity
WorkflowParameter 工作流参数
名字 |
描述 |
价值 |
描述 |
说明。 |
字符串 |
元数据 |
元数据。 |
任何 |
类型 |
类型。 |
“Array” “Bool” “Float” “Int” “NotSpecified” “Object” “SecureObject” “SecureString” “String” |
价值 |
值。 |
任何 |
工作流属性
WorkflowProperties参数
用法示例
Azure 验证模块
以下 Azure 验证模块 可用于部署此资源类型。
Azure 快速入门示例
以下 Azure 快速入门模板 包含用于部署此资源类型的 Bicep 示例。
Bicep 文件 |
描述 |
Azure 逻辑应用 - AS2 发送接收 |
为两个合作伙伴 Contoso 和 Fabrikam 创建集成帐户,包括合作伙伴和协议的项目。 该模板还会在 Fabrikam Sales 和 Contoso 之间创建逻辑应用,以演示同步 AS2 发送接收。 该模板还会在 Fabrikam Finance 和 Contoso 之间创建逻辑应用,该应用演示异步 AS2 发送接收。 |
将 FTP 文件复制到 Azure Blob 逻辑应用 |
使用此模板可以在 FTP 服务器中的文件上创建逻辑应用触发器,并将其复制到 Azure Blob 容器。 可以添加其他触发器或操作以根据需要对其进行自定义。 |
创建消耗逻辑应用 |
此模板创建一个可用于定义工作流的空逻辑应用。 |
检索 ARM 模板 中的 Azure 存储访问密钥 |
此模板将创建一个存储帐户,之后它将通过动态检索存储帐户的主密钥来创建 API 连接。 然后,在逻辑应用中使用 API 连接作为 Blob 更改的触发器轮询。 |
ARM 模板资源定义
可以使用目标操作部署工作流资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.Logic/workflows 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.Logic/workflows",
"apiVersion": "2019-05-01",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"accessControl": {
"actions": {
"allowedCallerIpAddresses": [
{
"addressRange": "string"
}
],
"openAuthenticationPolicies": {
"policies": {
"{customized property}": {
"claims": [
{
"name": "string",
"value": "string"
}
],
"type": "string"
}
}
}
},
"contents": {
"allowedCallerIpAddresses": [
{
"addressRange": "string"
}
],
"openAuthenticationPolicies": {
"policies": {
"{customized property}": {
"claims": [
{
"name": "string",
"value": "string"
}
],
"type": "string"
}
}
}
},
"triggers": {
"allowedCallerIpAddresses": [
{
"addressRange": "string"
}
],
"openAuthenticationPolicies": {
"policies": {
"{customized property}": {
"claims": [
{
"name": "string",
"value": "string"
}
],
"type": "string"
}
}
}
},
"workflowManagement": {
"allowedCallerIpAddresses": [
{
"addressRange": "string"
}
],
"openAuthenticationPolicies": {
"policies": {
"{customized property}": {
"claims": [
{
"name": "string",
"value": "string"
}
],
"type": "string"
}
}
}
}
},
"definition": {},
"endpointsConfiguration": {
"connector": {
"accessEndpointIpAddresses": [
{
"address": "string"
}
],
"outgoingIpAddresses": [
{
"address": "string"
}
]
},
"workflow": {
"accessEndpointIpAddresses": [
{
"address": "string"
}
],
"outgoingIpAddresses": [
{
"address": "string"
}
]
}
},
"integrationAccount": {
"id": "string"
},
"integrationServiceEnvironment": {
"id": "string"
},
"parameters": {
"{customized property}": {
"description": "string",
"metadata": {},
"type": "string",
"value": {}
}
},
"state": "string"
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.Logic/工作流
名字 |
描述 |
价值 |
apiVersion |
API 版本 |
'2019-05-01' |
身份 |
托管服务标识属性。 |
ManagedServiceIdentity |
位置 |
资源位置。 |
字符串 |
名字 |
资源名称 |
string (必需) |
性能 |
工作流属性。 |
工作流属性 |
标签 |
资源标记 |
标记名称和值的字典。 请参阅模板 中的 标记 |
类型 |
资源类型 |
“Microsoft.Logic/workflows” |
FlowAccessControlConfiguration
FlowAccessControlConfigurationPolicy
FlowEndpoints (流端点)
FlowEndpointsConfiguration
IP地址
IpAddressRange (英语)
名字 |
描述 |
价值 |
addressRange 地址范围 |
IP 地址范围。 |
字符串 |
ManagedServiceIdentity
名字 |
描述 |
价值 |
类型 |
托管服务标识的类型。 类型“SystemAssigned”包括隐式创建的标识。 类型“None”将从资源中删除任何标识。 |
“None” “SystemAssigned” “UserAssigned”(必需) |
用户分配的标识 |
与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} |
ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
OpenAuthenticationAccessPolicies
OpenAuthenticationAccessPolicies
OpenAuthenticationAccessPolicy
OpenAuthenticationPolicyClaim
名字 |
描述 |
价值 |
名字 |
声明名称。 |
字符串 |
价值 |
声明的值。 |
字符串 |
资源引用
UserAssignedIdentity
WorkflowParameter 工作流参数
名字 |
描述 |
价值 |
描述 |
说明。 |
字符串 |
元数据 |
元数据。 |
任何 |
类型 |
类型。 |
“Array” “Bool” “Float” “Int” “NotSpecified” “Object” “SecureObject” “SecureString” “String” |
价值 |
值。 |
任何 |
工作流属性
WorkflowProperties参数
用法示例
Azure 快速入门模板
以下 Azure 快速入门模板 部署此资源类型。
模板 |
描述 |
使用逻辑应用 警报到队列
|
使用此模板可以创建具有 Webhook 的逻辑应用。 触发逻辑应用时,它将添加传递给指定的 Azure 存储队列的有效负载。 可以将此 Webhook 添加到 Azure 警报,然后每当警报触发时,就会在队列中获取该项。 |
使用逻辑应用 Slack 警报
|
使用此模板可以创建一个逻辑应用,该应用包含要从 Azure 警报使用的 Webhook。 触发警报时,它会将消息发布到指定的 slack 通道。 需要有一个 Slack 帐户才能使用此模板。 |
使用逻辑应用 短信警报
|
使用此模板可以创建一个逻辑应用,该应用包含要从 Azure 警报使用的 Webhook。 触发警报时,它会向你发送一条包含警报详细信息的短信。 它使用 go.gl URL 缩短服务来包含指向门户的链接以查看资源。 |
使用 Function Azure 逻辑应用
|
此模板使用逻辑应用和 Functions 在 Azure 中创建无服务器应用。 逻辑应用在 HTTP POST 上触发,调用 Azure 函数并返回响应。 |
Azure 逻辑应用 - AS2 发送接收
|
为两个合作伙伴 Contoso 和 Fabrikam 创建集成帐户,包括合作伙伴和协议的项目。 该模板还会在 Fabrikam Sales 和 Contoso 之间创建逻辑应用,以演示同步 AS2 发送接收。 该模板还会在 Fabrikam Finance 和 Contoso 之间创建逻辑应用,该应用演示异步 AS2 发送接收。 |
Azure 逻辑应用 - B2B 灾难恢复复制
|
为 AS2 MIC 创建复制逻辑应用,并生成并接收 X12 控制编号。 每个逻辑应用的触发器都指向主站点集成帐户。 每个逻辑应用的操作都指向辅助站点集成帐户。 |
Azure 逻辑应用 - VETER 管道
|
创建集成帐户,将架构/映射添加到其中,创建逻辑应用并将其与集成帐户相关联。 逻辑应用使用 Xml 验证、XPath 提取和转换 Xml 操作实现 VETER 管道。 |
Azure 逻辑应用 - 具有参数的 XSLT
|
创建执行基于 XSLT 的转换的请求响应逻辑应用。 XSLT 映射采用基元(整数、字符串等)作为输入参数,就像在 XML 转换期间使用它们一样。 |
从 Azure 逻辑应用调用自定义 API
|
尽管逻辑应用为各种服务提供了数百个连接器,但你可能想要调用运行自己的代码的 API。 托管自己的 Web API 的最简单且最可缩放的方法之一是使用 Azure 应用服务。 此模板为自定义 API 部署 Web 应用,并使用 Azure Active Directory 身份验证保护该 API。 |
将 FTP 文件复制到 Azure Blob 逻辑应用
|
使用此模板可以在 FTP 服务器中的文件上创建逻辑应用触发器,并将其复制到 Azure Blob 容器。 可以添加其他触发器或操作以根据需要对其进行自定义。 |
使用服务总线 关联逻辑应用的消息
|
其中显示了如何使用 Azure 服务总线将消息与逻辑应用相关联 |
创建消耗逻辑应用
|
此模板创建一个可用于定义工作流的空逻辑应用。 |
使用自定义提供程序为模板创建自定义资源
|
此示例演示如何使用自定义提供程序和逻辑应用将自定义资源添加到资源管理器模板。 |
使用 CloudEvents 自定义 Azure 事件网格主题/订阅
|
创建自定义 Azure 事件网格主题、具有 CloudEvents 架构的 Webhook 订阅和逻辑应用作为事件处理程序。 模板最初由 Justin Yoo 创作。 |
部署示例逻辑应用,以用作权利管理自定义扩展
|
此模板创建一个简单的逻辑应用,其中包含权利管理自定义扩展 API 所需的 http 触发器的所有授权策略设置和架构。 |
部署示例逻辑应用,以用作权利管理自定义扩展
|
此模板创建一个简单的逻辑应用,其中包含所有授权策略设置,服务现在连接,以创建票证和架构到权利管理自定义扩展 API 所需的 http 触发器。 |
使用自定义提供程序扩展现有 Azure 资源
|
此示例将详细介绍如何扩展现有 Azure 资源和资源管理器模板以添加自定义工作负载。 |
集成模式 - 消息路由器 - 逻辑应用
|
显示如何使用逻辑应用设置消息路由器模式的解决方案 |
逻辑应用通过电子邮件发送详细的备份报告
|
创建逻辑应用以通过电子邮件发送有关备份实例、使用情况、作业、策略、策略遵循和优化机会的报告。 |
逻辑应用, 通过电子邮件发送有关备份和还原作业的报告
|
创建逻辑应用,通过电子邮件发送有关备份和还原作业的报告 |
逻辑应用通过电子邮件发送有关备份成本优化 的报告
|
此模板将逻辑应用部署到指定的电子邮件地址集,用于将有关非活动备份资源的定期报告、可能的备份计划优化和可能的备份保留优化。 |
逻辑应用以通过电子邮件发送有关备份实例的报告
|
创建逻辑应用以通过电子邮件发送有关使用 Azure 备份保护的备份实例的报告 |
逻辑应用,以通过电子邮件发送有关备份策略的报告
|
创建逻辑应用以通过电子邮件发送有关备份策略的报告 |
逻辑应用以电子邮件报告备份策略符合性
|
创建逻辑应用,通过电子邮件发送有关备份实例的备份策略符合性的报告 |
逻辑应用以通过电子邮件发送 Azure 备份计费
|
此模板部署一个逻辑应用,用于在计费实体级别将有关密钥备份计费参数(受保护的实例和备份云存储)的定期报告发送到一组指定的电子邮件地址。 |
逻辑应用,以通过电子邮件发送有关备份的摘要报告
|
创建逻辑应用,通过电子邮件发送备份摘要报告。 |
检索 ARM 模板 中的 Azure 存储访问密钥
|
此模板将创建一个存储帐户,之后它将通过动态检索存储帐户的主密钥来创建 API 连接。 然后,在逻辑应用中使用 API 连接作为 Blob 更改的触发器轮询。 |
通过逻辑应用按计划运行 SQL 存储过程
|
使用此模板可以创建一个逻辑应用,该逻辑应用将按计划运行 SQL 存储过程。 该过程的任何参数都可以放入模板的正文部分。 |
使用逻辑应用 按计划执行的计时器作业
|
此模板创建一对逻辑应用,用于创建计划的计时器作业实例。 |
使用逻辑应用 发送电子邮件
|
使用此模板可以创建发送电子邮件的逻辑应用。 可以添加其他触发器或操作以根据需要对其进行自定义。 |
可以使用目标操作部署工作流资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.Logic/workflows 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Logic/workflows@2019-05-01"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
accessControl = {
actions = {
allowedCallerIpAddresses = [
{
addressRange = "string"
}
]
openAuthenticationPolicies = {
policies = {
{customized property} = {
claims = [
{
name = "string"
value = "string"
}
]
type = "string"
}
}
}
}
contents = {
allowedCallerIpAddresses = [
{
addressRange = "string"
}
]
openAuthenticationPolicies = {
policies = {
{customized property} = {
claims = [
{
name = "string"
value = "string"
}
]
type = "string"
}
}
}
}
triggers = {
allowedCallerIpAddresses = [
{
addressRange = "string"
}
]
openAuthenticationPolicies = {
policies = {
{customized property} = {
claims = [
{
name = "string"
value = "string"
}
]
type = "string"
}
}
}
}
workflowManagement = {
allowedCallerIpAddresses = [
{
addressRange = "string"
}
]
openAuthenticationPolicies = {
policies = {
{customized property} = {
claims = [
{
name = "string"
value = "string"
}
]
type = "string"
}
}
}
}
}
definition = ?
endpointsConfiguration = {
connector = {
accessEndpointIpAddresses = [
{
address = "string"
}
]
outgoingIpAddresses = [
{
address = "string"
}
]
}
workflow = {
accessEndpointIpAddresses = [
{
address = "string"
}
]
outgoingIpAddresses = [
{
address = "string"
}
]
}
}
integrationAccount = {
id = "string"
}
integrationServiceEnvironment = {
id = "string"
}
parameters = {
{customized property} = {
description = "string"
metadata = ?
type = "string"
value = ?
}
}
state = "string"
}
}
}
属性值
Microsoft.Logic/工作流
名字 |
描述 |
价值 |
身份 |
托管服务标识属性。 |
ManagedServiceIdentity |
位置 |
资源位置。 |
字符串 |
名字 |
资源名称 |
string (必需) |
性能 |
工作流属性。 |
工作流属性 |
标签 |
资源标记 |
标记名称和值的字典。 |
类型 |
资源类型 |
“Microsoft.Logic/workflows@2019-05-01” |
FlowAccessControlConfiguration
FlowAccessControlConfigurationPolicy
FlowEndpoints (流端点)
FlowEndpointsConfiguration
IP地址
IpAddressRange (英语)
名字 |
描述 |
价值 |
addressRange 地址范围 |
IP 地址范围。 |
字符串 |
ManagedServiceIdentity
名字 |
描述 |
价值 |
类型 |
托管服务标识的类型。 类型“SystemAssigned”包括隐式创建的标识。 类型“None”将从资源中删除任何标识。 |
“None” “SystemAssigned” “UserAssigned”(必需) |
用户分配的标识 |
与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} |
ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
OpenAuthenticationAccessPolicies
OpenAuthenticationAccessPolicies
OpenAuthenticationAccessPolicy
OpenAuthenticationPolicyClaim
名字 |
描述 |
价值 |
名字 |
声明名称。 |
字符串 |
价值 |
声明的值。 |
字符串 |
资源引用
UserAssignedIdentity
WorkflowParameter 工作流参数
名字 |
描述 |
价值 |
描述 |
说明。 |
字符串 |
元数据 |
元数据。 |
任何 |
类型 |
类型。 |
“Array” “Bool” “Float” “Int” “NotSpecified” “Object” “SecureObject” “SecureString” “String” |
价值 |
值。 |
任何 |
工作流属性
WorkflowProperties参数
用法示例
Azure 验证模块
以下 Azure 验证模块 可用于部署此资源类型。