Skip to content

Commit 9d4fb5a

Browse files
authored
ARM ID Annotations for Redis (#19596)
1 parent a10f4b6 commit 9d4fb5a

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/redis.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,6 +1964,17 @@
19641964
},
19651965
"subnetId": {
19661966
"type": "string",
1967+
"format": "arm-id",
1968+
"x-ms-arm-id-details": {
1969+
"allowedResources": [
1970+
{
1971+
"type": "Microsoft.Network/virtualNetworks/subnets"
1972+
},
1973+
{
1974+
"type": "Microsoft.ClassicNetwork/virtualNetworks/subnets"
1975+
}
1976+
]
1977+
},
19671978
"pattern": "^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$",
19681979
"description": "The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1"
19691980
},
@@ -2548,6 +2559,14 @@
25482559
"properties": {
25492560
"linkedRedisCacheId": {
25502561
"type": "string",
2562+
"format": "arm-id",
2563+
"x-ms-arm-id-details": {
2564+
"allowedResources": [
2565+
{
2566+
"type": "Microsoft.Cache/Redis"
2567+
}
2568+
]
2569+
},
25512570
"description": "Fully qualified resourceId of the linked redis cache."
25522571
},
25532572
"linkedRedisCacheLocation": {

specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/redis.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,17 @@
20192019
},
20202020
"subnetId": {
20212021
"type": "string",
2022+
"format": "arm-id",
2023+
"x-ms-arm-id-details": {
2024+
"allowedResources": [
2025+
{
2026+
"type": "Microsoft.Network/virtualNetworks/subnets"
2027+
},
2028+
{
2029+
"type": "Microsoft.ClassicNetwork/virtualNetworks/subnets"
2030+
}
2031+
]
2032+
},
20222033
"pattern": "^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$",
20232034
"description": "The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1"
20242035
},
@@ -2618,6 +2629,14 @@
26182629
"properties": {
26192630
"linkedRedisCacheId": {
26202631
"type": "string",
2632+
"format": "arm-id",
2633+
"x-ms-arm-id-details": {
2634+
"allowedResources": [
2635+
{
2636+
"type": "Microsoft.Cache/Redis"
2637+
}
2638+
]
2639+
},
26212640
"description": "Fully qualified resourceId of the linked redis cache."
26222641
},
26232642
"linkedRedisCacheLocation": {

0 commit comments

Comments
 (0)