Skip to content

Commit

Permalink
Update Logic App path
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasanker committed Apr 14, 2024
1 parent 984617c commit 5ad602e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions azuredeploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ module actionGroup 'modules/actiongroup.bicep' = {
{
name: alertLogicApp.outputs.logicAppName
resourceId: alertLogicApp.outputs.logicAppResourceId
urlPath: '/triggers/HTTP_Request/paths/invoke'
apiVersion: '2019-05-01'
useCommonAlertSchema: true
}
]
Expand Down
2 changes: 1 addition & 1 deletion modules/actiongroup.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource actiongroup 'Microsoft.Insights/actionGroups@2023-01-01' = {
for app in logicAppReceivers: {
name: app.name
resourceId: app.ResourceId
callbackUrl: listCallbackUrl(app.ResourceId, '2019-05-01').value
callbackUrl: listCallbackUrl('${app.ResourceId}${app.urlPath}', app.apiVersion).value
useCommonAlertSchema: app.UseCommonAlertSchema
}
]
Expand Down
4 changes: 2 additions & 2 deletions modules/alert-logicapp.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ param location string = resourceGroup().location
param organizationPrefix string
param sharedResourcesAbbreviation string

var slackConnectionName = 'AnalogIO'
var slackConnectionName = 'CafeAnalog'

@description('The Slack channel to post to')
param slackChannel string = 'io-alerts'
Expand All @@ -18,7 +18,7 @@ resource slackConnection 'Microsoft.Web/connections@2016-06-01' = {
api: {
id: connectionId
}
displayName: 'CafeAnalog'
displayName: slackConnectionName
}
}

Expand Down

0 comments on commit 5ad602e

Please sign in to comment.