-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy patharmsnippets.jsonc
189 lines (187 loc) · 6.72 KB
/
armsnippets.jsonc
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
/*
Known contexts (see KnownContexts.ts)
empty-document (also works for plain JSON files)
parameter-definitions
parameter-values
userfunc-parameter-definitions
resource-body
If a location in a template document does not match one of the above, then it will
be set to the name of the property containing the current array or object (e.g. "resources" or "outputs"),
if any.
*/
"$schema": "./snippets.schema.json",
"Azure Resource Manager (ARM) Template": {
"prefix": "arm!",
"body": [
"{",
"\t\"\\$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",",
"\t\"contentVersion\": \"1.0.0.0\",",
"\t\"parameters\": {},",
"\t\"functions\": [],",
"\t\"variables\": {},",
"\t\"resources\": [],",
"\t\"outputs\": {}",
"}"
],
"description": "Resource Group Template",
"context": "empty-document"
},
"Azure Resource Manager (ARM) Template Subscription": {
"prefix": "arm!s",
"body": [
"{",
"\t\"\\$schema\": \"https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#\",",
"\t\"contentVersion\": \"1.0.0.0\",",
"\t\"parameters\": {},",
"\t\"functions\": [],",
"\t\"variables\": {},",
"\t\"resources\": [],",
"\t\"outputs\": {}",
"}"
],
"description": "Subscription Template",
"context": "empty-document"
},
"Azure Resource Manager (ARM) Template Management Group": {
"prefix": "arm!mg",
"body": [
"{",
"\t\"\\$schema\": \"https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#\",",
"\t\"contentVersion\": \"1.0.0.0\",",
"\t\"parameters\": {},",
"\t\"functions\": [],",
"\t\"variables\": {},",
"\t\"resources\": [],",
"\t\"outputs\": {}",
"}"
],
"description": "Management Group Template",
"context": "empty-document"
},
"Azure Resource Manager (ARM) Template Tenant": {
"prefix": "arm!t",
"body": [
"{",
"\t\"\\$schema\": \"https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#\",",
"\t\"contentVersion\": \"1.0.0.0\",",
"\t\"parameters\": {},",
"\t\"functions\": [],",
"\t\"variables\": {},",
"\t\"resources\": [],",
"\t\"outputs\": {}",
"}"
],
"description": "Tenant Template",
"context": "empty-document"
},
"Azure Resource Manager (ARM) Parameters Template": {
"prefix": "armp!",
"body": [
"{",
"\t\"\\$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#\",",
"\t\"contentVersion\": \"1.0.0.0\",",
"\t\"parameters\": {",
"\t}",
"}"
],
"description": "Parameters Template",
"context": "empty-document"
},
"Variable": {
"prefix": "new-variable",
"body": [
"\"${1:variable1}\": \"${2:value}\""
],
"description": "ARM Template Variable Definition",
"context": "variables"
},
"Parameter": {
"prefix": "new-parameter",
"body": [
"\"${1:parameter1}\": {",
"\t\"type\": \"${2|string,securestring,int,bool,object,secureobject,array|}\",",
"\t\"metadata\": {",
"\t\t\"description\": \"${3:description}\"",
"\t}",
"}"
],
"description": "ARM Template Parameter Definition",
"context": "parameter-definitions"
},
"Output": {
"prefix": "new-output",
"body": [
"\"${1:output1}\": {",
"\t\"type\": \"${2|string,securestring,int,bool,object,secureobject,array|}\",",
"\t\"value\": \"${3:value}\"",
"}"
],
"description": "ARM Template Output",
"context": "outputs"
},
"Tag Section": {
"prefix": "arm-tags",
"body": [
"\"tags\": {",
"\t\"${1:tagName}\": \"${2:tagValue}\"",
"}"
],
"description": "Tag Section",
"context": "resource-body"
},
"User Function": {
"prefix": "new-user-function",
"body": [
"\"${1:functionname}\": {",
"\t\"parameters\": [",
"\t\t{",
"\t\t\t\"name\": \"${2:parametername}\",",
"\t\t\t\"type\": \"${3|string,securestring,int,bool,object,secureobject,array|}\"",
"\t\t}",
"\t],",
"\t\"output\": {",
"\t\t\"value\": \"${4:function-return-value}\",",
"\t\t\"type\": \"${5|string,securestring,int,bool,object,secureobject,array|}\"",
"\t}",
"}"
],
"description": "User-defined namespace and member function, should be placed inside a \"members\" object inside \"functions\"",
"context": "members"
},
"User Function Namespace": {
"prefix": "new-userfunc-namespace",
"body": [
"{",
"\t\"namespace\": \"${1:namespacename}\",",
"\t\"members\": {",
"\t\t\"${2:functionname}\": {",
"\t\t\t\"parameters\": [",
"\t\t\t\t{",
"\t\t\t\t\t\"name\": \"${3:parametername}\",",
"\t\t\t\t\t\"type\": \"${4|string,securestring,int,bool,object,secureobject,array|}\"",
"\t\t\t\t}",
"\t\t\t],",
"\t\t\t\"output\": {",
"\t\t\t\t\"value\": \"${5:function-return-value}\",",
"\t\t\t\t\"type\": \"${6|string,securestring,int,bool,object,secureobject,array|}\"",
"\t\t\t}",
"\t\t}",
"\t}",
"}"
],
"description": "User-defined namespace and member function",
"context": "functions"
},
"User Function Parameter Definition": {
"prefix": "new-userfunc-parameter",
"body": [
"{",
"\t\"name\": \"${1:parameter1}\",",
"\t\"type\": \"${2|string,securestring,int,bool,object,secureobject,array|}\"",
"}"
],
"description": "ARM Template Parameter Definition",
"context": "userfunc-parameter-definitions"
}
}