azure - Configure Action Group to call Logic App workflow using Bicep - Stack Overflow

I am trying to configure an Azure Action Group to call a workflow in a standard Logic App using Bicep.

I am trying to configure an Azure Action Group to call a workflow in a standard Logic App using Bicep.

When I configure the Action Group in the portal, it appears like

ie the value contains {logic app name} / {workflow name} and in the portal JSON, the resourceId is given as /subscriptions/{subscription id}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{logic app name}/workflows/{workflow}

I want to use this in the resourceId of a logicAppReceiver in the action group

logicAppReceivers: [
  {
    name: 'LogicAppReceiverAlerting'
    resourceId: resourceId // <- set this 
    callbackUrl: logicAppCallbackUrl
    useCommonAlertSchema: true
  }]

How do I construct the resource ID of the workflow in this format?

Using

resourceId('Microsoft.Logic/workflows', workflowName)

gives just the workflow ID /subscriptions/{subscription id}/resourceGroups/{resourcegroup name}/providers/Microsoft.Logic/workflows/{workflow name}

Using

resourceId('Microsoft.Web/sites', logicAppName)

gives just the logic app ID /subscriptions/{subscription id}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{logic app name}

Using

resourceId('Microsoft.Web/sites', logicAppName, workflowName)

is invalid.

I am trying to configure an Azure Action Group to call a workflow in a standard Logic App using Bicep.

When I configure the Action Group in the portal, it appears like

ie the value contains {logic app name} / {workflow name} and in the portal JSON, the resourceId is given as /subscriptions/{subscription id}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{logic app name}/workflows/{workflow}

I want to use this in the resourceId of a logicAppReceiver in the action group

logicAppReceivers: [
  {
    name: 'LogicAppReceiverAlerting'
    resourceId: resourceId // <- set this 
    callbackUrl: logicAppCallbackUrl
    useCommonAlertSchema: true
  }]

How do I construct the resource ID of the workflow in this format?

Using

resourceId('Microsoft.Logic/workflows', workflowName)

gives just the workflow ID /subscriptions/{subscription id}/resourceGroups/{resourcegroup name}/providers/Microsoft.Logic/workflows/{workflow name}

Using

resourceId('Microsoft.Web/sites', logicAppName)

gives just the logic app ID /subscriptions/{subscription id}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{logic app name}

Using

resourceId('Microsoft.Web/sites', logicAppName, workflowName)

is invalid.

Share Improve this question edited 13 hours ago Thomas 30k6 gold badges98 silver badges141 bronze badges Recognized by Microsoft Azure Collective asked 14 hours ago DaveM_77DaveM_77 355 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Looking at the documentation, you need to specify the sub-resource type:

resourceId('Microsoft.Web/sites/workflows', logicAppName, workflowName)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743755943a4501761.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信