0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LogicAppsのtriggerのcallbackURLを取得するBicepをかいたメモ

Posted at

概要

日本語の記事があまりなかったので。
listCallbackURLを使うと取得できる。

ソース

// 割愛
var workflowSchema = 'https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#'

resource logicApp 'Microsoft.Logic/workflows@2019-05-01' = {
  name: logicAppName
  // 割愛
      triggers: {
        recurrence: {
  // 割愛
}

resource actionGroup 'Microsoft.Insights/actionGroups@2024-10-01-preview' = {
  location: 'global'
  properties: {
    logicAppReceivers: [
      {
        resourceId: logicApp.id
        callbackUrl: listCallbackURL(resourceId(subscription().subscriptionId, resourceGroup().name, 'Microsoft.Logic/workflows/triggers', logicAppName, 'recurrence'), '2019-05-01').value
// 割愛

参考

bicep-tutorial
Microsoft.Insights actionGroups
Microsoft learn
Bicep のリソース関数 - Azure Resource Manager
Workflow Triggers - List Callback Url

Azure Logic Apps を Bicep でデプロイしてみた

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?