Skip to content

Commit 5b8ce6d

Browse files
Merge pull request #1532 from Azure/antmarti/add_metadata
Add metadata field to JSON schema
2 parents ec60385 + dad3f5a commit 5b8ce6d

21 files changed

+96
-0
lines changed

schemas/2014-04-01-preview/deploymentTemplate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"description": "Additional unstructured metadata to include with the template deployment.",
15+
"additionalProperties": true
16+
},
1217
"contentVersion": {
1318
"type": "string",
1419
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",

schemas/2015-01-01/deploymentTemplate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"description": "Additional unstructured metadata to include with the template deployment.",
15+
"additionalProperties": true
16+
},
1217
"apiProfile": {
1318
"type": "string",
1419
"enum": [

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"description": "Additional unstructured metadata to include with the template deployment.",
15+
"additionalProperties": true
16+
},
1217
"apiProfile": {
1318
"type": "string",
1419
"enum": [

schemas/2019-03-01-hybrid/deploymentTemplate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
"type": "string",
1212
"description": "JSON schema reference"
1313
},
14+
"metadata": {
15+
"type": "object",
16+
"description": "Additional unstructured metadata to include with the template deployment.",
17+
"additionalProperties": true
18+
},
1419
"contentVersion": {
1520
"type": "string",
1621
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",
@@ -126,6 +131,11 @@
126131
"type": "string",
127132
"description": "JSON schema reference"
128133
},
134+
"metadata": {
135+
"type": "object",
136+
"description": "Additional unstructured metadata to include with the template deployment.",
137+
"additionalProperties": true
138+
},
129139
"contentVersion": {
130140
"type": "string",
131141
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",

schemas/2019-04-01/deploymentTemplate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"description": "Additional unstructured metadata to include with the template deployment.",
15+
"additionalProperties": true
16+
},
1217
"apiProfile": {
1318
"type": "string",
1419
"enum": [

schemas/2019-08-01/managementGroupDeploymentTemplate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"description": "Additional unstructured metadata to include with the template deployment.",
15+
"additionalProperties": true
16+
},
1217
"apiProfile": {
1318
"type": "string",
1419
"enum": [

schemas/2019-08-01/tenantDeploymentTemplate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"description": "Additional unstructured metadata to include with the template deployment.",
15+
"additionalProperties": true
16+
},
1217
"apiProfile": {
1318
"type": "string",
1419
"enum": [

tools/templateTests/ManagementGroupTemplate.2019-08-01.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
3+
"metadata": {
4+
"comments": "This template was developed for schema validation purposes.",
5+
"author": "Azure Deployments"
6+
},
37
"contentVersion": "1.0.0.0",
48
"parameters": {
59
"siteName": {

tools/templateTests/SubscriptionTemplate.2018-05-01.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
3+
"metadata": {
4+
"comments": "This template was developed for schema validation purposes.",
5+
"author": "Azure Deployments"
6+
},
37
"contentVersion": "1.0.0.0",
48
"parameters": {
59
"siteName": {

tools/templateTests/Template_1.2014-01-01-preview.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"$schema": "https://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
3+
"metadata": {
4+
"comments": "This template was developed for schema validation purposes.",
5+
"author": "Azure Deployments"
6+
},
37
"contentVersion": "1.0.0.0",
48
"parameters": {
59
"siteName": {

0 commit comments

Comments
 (0)