/
LogicApp.yaml
68 lines (68 loc) · 2.09 KB
/
LogicApp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
$schema: https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#
contentVersion: 1.0.0.0
parameters:
location:
type: string
metadata:
description: Location of the Logic App.
defaultValue: "[resourceGroup().location]"
logicAppName:
type: string
metadata:
description: Name of the Logic App.
keyVaultSecretValue:
type: securestring
metadata:
description: Value of the secret from Key Vault.
variables:
logicApp:
name: "[parameters('logicAppName')]"
apiVersion: "[providers('Microsoft.Logic', 'workflows').apiVersions[0]]"
location: "[parameters('location')]"
keyVault:
secrets:
value: "[parameters('keyVaultSecretValue')]"
tags:
author: Justin Yoo
profile: https://twitter.com/justinchronicle
projectUrl: https://github.com/devkimchi/Handling-Secrets-around-ARM-Templates
repositoryUrl: https://github.com/devkimchi/Handling-Secrets-around-ARM-Templates
license: https://raw.githubusercontent.com/devkimchi/Handling-Secrets-around-ARM-Templates/master/LICENSE
resources:
- comments: "### RESOURCE - LOGIC APP ###"
type: Microsoft.Logic/workflows
apiVersion: "[variables('logicApp').apiVersion]"
location: "[variables('logicApp').location]"
name: "[variables('logicApp').name]"
tags: "[variables('tags')]"
properties:
parameters:
keyVault:
value:
secrets:
value: "[variables('keyVault').secrets.value]"
definition:
$schema: https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#
contentVersion: 1.0.0.0
parameters:
keyVault:
type: object
defaultValue: {}
triggers:
manual:
type: Request
kind: Http
inputs:
method: POST
schema: {}
actions:
Compose:
type: Compose
runAfter: {}
inputs:
secretValue: "@parameters('keyVault').secrets.value"
outputs: {}
outputs:
logicAppName:
type: string
value: "[variables('logicApp').name]"