Skip to content

Commit 5fc6b95

Browse files
committed
updated /application-workloads
/azure-logic-app 01092024
1 parent 868c804 commit 5fc6b95

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

application-workloads/logic-app-send-mail/azuredeploy.parameters.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"value": "sendgridApp"
77
},
88
"sendgridapiKey": {
9-
"value": "Your-API-Key"
9+
"value": "YOUR-API-KEY-HERE"
1010
},
1111
"sendgridName": {
12-
"value": "sendgridConnection"
12+
"value": "sengrid"
1313
}
1414
}
1515
}

application-workloads/logic-app-send-mail/main.bicep

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resource sendgrid 'Microsoft.Web/connections@2018-07-01-preview' = {
1818
api: {
1919
id: subscriptionResourceId('Microsoft.Web/locations/managedApis', location, 'sendgrid')
2020
}
21-
displayName: 'sendgrid'
21+
displayName: 'sengrid'
2222
parameterValues: {
2323
apiKey: sendgridApiKey
2424
}
@@ -99,11 +99,11 @@ resource logicApp 'Microsoft.Logic/workflows@2019-05-01' = {
9999
'$connections': {
100100
value: {
101101
sendgrid: {
102-
id: subscriptionResourceId('Microsoft.Web/locations/managedApis', location, 'sendgrid')
102+
id: 'subscriptions/${subscription().subscriptionId}/providers/Microsoft.Web/locations/${location}/managedApis/sendgrid'
103103
connectionId: sendgrid.id
104104
}
105105
}
106106
}
107107
}
108108
}
109-
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
# Deploy Azure Logic App using Bicep Language
22

3+
👉 https://www.serverlessnotes.com/docs/azure-bicep-deploy-a-logic-app-to-send-email
4+
5+
payload sample
6+
```
7+
8+
{
9+
"from": "[email protected]",
10+
11+
"subject": "My logic app works",
12+
"emailbody": "Hello world"
13+
}
14+
```
15+
316

azinsider.png

58.4 KB
Loading

0 commit comments

Comments
 (0)