-
Notifications
You must be signed in to change notification settings - Fork 1
/
recursiveVars.json
31 lines (30 loc) · 1.39 KB
/
recursiveVars.json
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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
/* InvalidTemplate - Deployment template validation failed: 'The template resource 'p1' at line '5' and column '15' is not valid: The template function 'variables' is not expected at this location. Please see https://aka.ms/arm-template-expressions for usage details.. Please see https://aka.ms/arm-template-expressions for usage details.'.
"p1": {
"type": "string",
"metadata": {
"description": "description"
},
"defaultValue": "[variables('v2')]"
}*/
},
"functions": [],
"variables": {
// This is fine:
"v2": "[concat(variables('v1'), 'and v2')]",
"v1": "v1"
// InvalidTemplate - Deployment template validation failed: 'The template variable 'v2' is not valid: Circular dependency detected in template language expression: 'v2'. Please see https://aka.ms/arm-template-expressions for usage details.. Please see https://aka.ms/arm-template-expressions for usage details.'.
// "v2": "[concat(variables('v1'), 'and v2')]",
// "v1": "[concat(variables('v2'), 'and v1')]"
},
"resources": [],
"outputs": {
"output1": {
"type": "string",
"value": "[variables('v2')]"
}
}
}