Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split nested snippet into inner/outer #1157

Merged
merged 2 commits into from
Feb 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions assets/armsnippets.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,41 @@
"context": "resources"
},
"Nested Deployment": {
"prefix": "arm-nested-template",
"prefix": "arm-nested-template-outer",
"body": [
"{",
"\t\"name\": \"${1:nestedDeployment1}\",",
"\t\"type\": \"Microsoft.Resources/deployments\",",
"\t\"apiVersion\": \"2020-06-01\",",
"\t\"properties\": {",
"\t\t\"mode\": \"Incremental\",",
"\t\t\"template\": {",
"\t\t\t\"\\$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",",
"\t\t\t\"contentVersion\": \"1.0.0.0\",",
"\t\t\t\"variables\": {},",
"\t\t\t\"resources\": [],",
"\t\t\t\"outputs\": {}",
"\t\t}",
"\t}",
"}"
],
"description": "Nested (inline) Outer-Scoped Deployment. Expressions reference the parameters of the parent scope.",
"context": "resources"
},
"Nested Deployment With Inner Scope": {
"prefix": "arm-nested-template-inner",
"body": [
"{",
"\t\"name\": \"${1:nestedDeployment1}\",",
"\t\"type\": \"Microsoft.Resources/deployments\",",
"\t\"apiVersion\": \"2020-06-01\",",
"\t\"properties\": {",
"\t\t\"expressionEvaluationOptions\": {",
"\t\t\t\"scope\": \"${2|outer,inner|}\"",
"\t\t\t\"scope\": \"inner\"",
"\t\t},",
"\t\t\"mode\": \"Incremental\",",
"\t\t\"parameters\": {",
"\t\t},",
"\t\t\"template\": {",
"\t\t\t\"\\$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",",
"\t\t\t\"contentVersion\": \"1.0.0.0\",",
Expand All @@ -176,7 +200,7 @@
"\t}",
"}"
],
"description": "Nested (inline) Deployment",
"description": "Nested (inline) Inner-Scoped Deployment. Defines its own local parameters.",
"context": "resources"
},
"App Service Plan (Server Farm)": {
Expand Down