-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
681-CreateUIDefinition-Nested-Defaults (#689)
* Parameters w/o Default Must Exist In CreateUIDef: Excluding innertemplates (Fixes #681) * Adding Test for Nested Parameters (re #681) Co-authored-by: James Brundage <@github.com>
- Loading branch information
1 parent
7bc3cfc
commit 63c6a0c
Showing
3 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...out-Default-Must-Exist-In-CreateUIDefinition/Pass/nestedParameter/CreateUIDefinition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#", | ||
"handler": "Microsoft.Azure.CreateUIDef", | ||
"version": "0.1.2-preview", | ||
"parameters": { | ||
"basics": [ | ||
{} | ||
], | ||
"outputs": { | ||
"mainParameter": "value-from-ui" | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...rs-Without-Default-Must-Exist-In-CreateUIDefinition/Pass/nestedParameter/azureDeploy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.9.1.41621", | ||
"templateHash": "4551264275492999207" | ||
} | ||
}, | ||
"parameters": { | ||
"mainParameter": { | ||
"type": "string", | ||
"defaultValue": "default-value" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2020-10-01", | ||
"name": "Module", | ||
"properties": { | ||
"expressionEvaluationOptions": { | ||
"scope": "inner" | ||
}, | ||
"mode": "Incremental", | ||
"parameters": { | ||
"moduleParameter": { | ||
"value": "[parameters('mainParameter')]" | ||
} | ||
}, | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.9.1.41621", | ||
"templateHash": "15490559216858461434" | ||
} | ||
}, | ||
"parameters": { | ||
"moduleParameter": { | ||
"type": "string" | ||
} | ||
}, | ||
"resources": [] | ||
} | ||
} | ||
} | ||
] | ||
} |