Skip to content

Commit cdcdc28

Browse files
authored
ARM ID annotations for Cosmos DB (#19593)
1 parent abe8b05 commit cdcdc28

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-05-15/cosmos-db.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6136,7 +6136,8 @@
61366136
"type": "array",
61376137
"description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.",
61386138
"items": {
6139-
"type": "string"
6139+
"type": "string",
6140+
"format": "arm-id"
61406141
}
61416142
}
61426143
}
@@ -7847,6 +7848,14 @@
78477848
"properties": {
78487849
"id": {
78497850
"type": "string",
7851+
"format": "arm-id",
7852+
"x-ms-arm-id-details": {
7853+
"allowedResources": [
7854+
{
7855+
"type": "Microsoft.Network/virtualNetworks/subnets"
7856+
}
7857+
]
7858+
},
78507859
"description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}."
78517860
},
78527861
"ignoreMissingVNetServiceEndpoint": {

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-06-15/cosmos-db.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6160,7 +6160,8 @@
61606160
"type": "array",
61616161
"description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.",
61626162
"items": {
6163-
"type": "string"
6163+
"type": "string",
6164+
"format": "arm-id"
61646165
}
61656166
},
61666167
"disableLocalAuth": {
@@ -7894,6 +7895,14 @@
78947895
"properties": {
78957896
"id": {
78967897
"type": "string",
7898+
"format": "arm-id",
7899+
"x-ms-arm-id-details": {
7900+
"allowedResources": [
7901+
{
7902+
"type": "Microsoft.Network/virtualNetworks/subnets"
7903+
}
7904+
]
7905+
},
78977906
"description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}."
78987907
},
78997908
"ignoreMissingVNetServiceEndpoint": {

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6232,7 +6232,8 @@
62326232
"type": "array",
62336233
"description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.",
62346234
"items": {
6235-
"type": "string"
6235+
"type": "string",
6236+
"format": "arm-id"
62366237
}
62376238
},
62386239
"disableLocalAuth": {
@@ -7993,6 +7994,14 @@
79937994
"properties": {
79947995
"id": {
79957996
"type": "string",
7997+
"format": "arm-id",
7998+
"x-ms-arm-id-details": {
7999+
"allowedResources": [
8000+
{
8001+
"type": "Microsoft.Network/virtualNetworks/subnets"
8002+
}
8003+
]
8004+
},
79968005
"description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}."
79978006
},
79988007
"ignoreMissingVNetServiceEndpoint": {

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-05-15/cosmos-db.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6232,7 +6232,8 @@
62326232
"type": "array",
62336233
"description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.",
62346234
"items": {
6235-
"type": "string"
6235+
"type": "string",
6236+
"format": "arm-id"
62366237
}
62376238
},
62386239
"disableLocalAuth": {
@@ -7998,6 +7999,14 @@
79987999
"properties": {
79998000
"id": {
80008001
"type": "string",
8002+
"format": "arm-id",
8003+
"x-ms-arm-id-details": {
8004+
"allowedResources": [
8005+
{
8006+
"type": "Microsoft.Network/virtualNetworks/subnets"
8007+
}
8008+
]
8009+
},
80018010
"description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}."
80028011
},
80038012
"ignoreMissingVNetServiceEndpoint": {

0 commit comments

Comments
 (0)