Skip to content

Commit a95b821

Browse files
Merge pull request #1222 from bviglietta/user/benvi/add-microsoft.communication
Add Microsoft.Communication schema
2 parents 791a4e1 + 2456cc5 commit a95b821

File tree

7 files changed

+100
-1
lines changed

7 files changed

+100
-1
lines changed

generator/autogenlist.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ const autogenlist: AutogenlistConfig[] = [
112112
basePath: 'cognitiveservices/resource-manager',
113113
namespace: 'Microsoft.CognitiveServices',
114114
},
115+
{
116+
basePath: 'communication/resource-manager',
117+
namespace: 'Microsoft.Communication',
118+
},
115119
{
116120
basePath: 'containerinstance/resource-manager',
117121
namespace: 'Microsoft.ContainerInstance',

rp-label-to-contact.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This table specifies what GitHub handle our bot is currently configured to notif
1616
| RP:Batch | mksuni, bgklein, mscurrell |
1717
| RP:Blueprint | alex-frankel, filizt |
1818
| RP:BotService | sgellock |
19+
| RP:Communication | bviglietta, usvoyager |
1920
| RP:Compute | viabhav-agar, avirishuv, amjads1 |
2021
| RP:ContainerInstances | dkkapur |
2122
| RP:ContainerRegistry | toddysm, yugangw-MSFT |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,6 +2077,7 @@
20772077
{ "$ref": "https://schema.management.azure.com/schemas/2017-04-19/Microsoft.Advisor.json#/resourceDefinitions/configurations" },
20782078
{ "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Advisor.json#/resourceDefinitions/recommendations_suppressions" },
20792079
{ "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Advisor.json#/resourceDefinitions/configurations" },
2080+
{ "$ref": "https://schema.management.azure.com/schemas/2020-08-20-preview/Microsoft.Communication.json#/resourceDefinitions/communicationServices" },
20802081
{ "$ref": "#/definitions/resourceGeneric" }
20812082
]
20822083
}

schemas/2015-01-01/deploymentTemplate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,8 @@
22092209
{ "$ref": "https://schema.management.azure.com/schemas/2019-06-01-preview/Microsoft.Synapse.json#/resourceDefinitions/workspaces_sqlPools_transparentDataEncryption" },
22102210
{ "$ref": "https://schema.management.azure.com/schemas/2019-06-01-preview/Microsoft.Synapse.json#/resourceDefinitions/workspaces_sqlPools_vulnerabilityAssessments" },
22112211
{ "$ref": "https://schema.management.azure.com/schemas/2019-06-01-preview/Microsoft.Synapse.json#/resourceDefinitions/workspaces_sqlPools_vulnerabilityAssessments_rules_baselines" },
2212-
{ "$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.ResourceGraph.json#/resourceDefinitions/queries" }
2212+
{ "$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.ResourceGraph.json#/resourceDefinitions/queries" },
2213+
{ "$ref": "https://schema.management.azure.com/schemas/2020-08-20-preview/Microsoft.Communication.json#/resourceDefinitions/communicationServices" }
22132214
]
22142215
}
22152216
]
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2020-08-20-preview/Microsoft.Communication.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Communication",
5+
"description": "Microsoft Communication Resource Types",
6+
"resourceDefinitions": {
7+
"communicationServices": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2020-08-20-preview"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The Azure location where the CommunicationService is running."
19+
},
20+
"name": {
21+
"type": "string",
22+
"description": "The name of the CommunicationService resource."
23+
},
24+
"properties": {
25+
"oneOf": [
26+
{
27+
"$ref": "#/definitions/CommunicationServiceProperties"
28+
},
29+
{
30+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
31+
}
32+
],
33+
"description": "A class that describes the properties of the CommunicationService."
34+
},
35+
"tags": {
36+
"oneOf": [
37+
{
38+
"type": "object",
39+
"additionalProperties": {
40+
"type": "string"
41+
},
42+
"properties": {}
43+
},
44+
{
45+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
46+
}
47+
],
48+
"description": "Tags of the service which is a list of key value pairs that describe the resource."
49+
},
50+
"type": {
51+
"type": "string",
52+
"enum": [
53+
"Microsoft.Communication/communicationServices"
54+
]
55+
}
56+
},
57+
"required": [
58+
"apiVersion",
59+
"name",
60+
"properties",
61+
"type"
62+
],
63+
"description": "Microsoft.Communication/communicationServices"
64+
}
65+
},
66+
"definitions": {
67+
"CommunicationServiceProperties": {
68+
"type": "object",
69+
"properties": {
70+
"dataLocation": {
71+
"type": "string",
72+
"description": "The location where the communication service stores its data at rest."
73+
}
74+
},
75+
"required": [
76+
"dataLocation"
77+
],
78+
"description": "A class that describes the properties of the CommunicationService."
79+
}
80+
}
81+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,9 @@
14861486
{
14871487
"$ref": "https://schema.management.azure.com/schemas/2017-04-18/Microsoft.CognitiveServices.json#/resourceDefinitions/accounts_privateEndpointConnections"
14881488
},
1489+
{
1490+
"$ref": "https://schema.management.azure.com/schemas/2020-08-20-preview/Microsoft.Communication.json#/resourceDefinitions/communicationServices"
1491+
},
14891492
{
14901493
"$ref": "https://schema.management.azure.com/schemas/2018-01-31/Microsoft.Consumption.json#/resourceDefinitions/budgets"
14911494
},

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,14 @@
881881
}
882882
}
883883
]
884+
},
885+
{
886+
"name": "myCommunicationService",
887+
"type": "Microsoft.Communication/communicationServices",
888+
"apiVersion": "2020-08-20-preview",
889+
"properties": {
890+
"dataLocation": "United States"
891+
}
884892
}
885893
]
886894
}

0 commit comments

Comments
 (0)