Skip to content

Commit 1cf6bc8

Browse files
matthchrjnlycklama
authored andcommitted
Use format: arm-id in Redis and RedisEnterprise where appropriate (#25517)
LGTM merging
1 parent 7721fd0 commit 1cf6bc8

File tree

2 files changed

+44
-1
lines changed
  • specification
    • redisenterprise/resource-manager/Microsoft.Cache/stable/2023-07-01
    • redis/resource-manager/Microsoft.Cache/stable/2023-04-01

2 files changed

+44
-1
lines changed

specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/redis.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,6 +2042,17 @@
20422042
},
20432043
"subnetId": {
20442044
"type": "string",
2045+
"format": "arm-id",
2046+
"x-ms-arm-id-details": {
2047+
"allowedResources": [
2048+
{
2049+
"type": "Microsoft.Network/virtualNetworks/subnets"
2050+
},
2051+
{
2052+
"type": "Microsoft.ClassicNetwork/virtualNetworks/subnets"
2053+
}
2054+
]
2055+
},
20452056
"pattern": "^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$",
20462057
"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"
20472058
},
@@ -2601,6 +2612,14 @@
26012612
"id": {
26022613
"readOnly": true,
26032614
"type": "string",
2615+
"format": "arm-id",
2616+
"x-ms-arm-id-details": {
2617+
"allowedResources": [
2618+
{
2619+
"type": "Microsoft.Cache/redis/linkedServers"
2620+
}
2621+
]
2622+
},
26042623
"description": "Linked server Id."
26052624
}
26062625
}
@@ -2657,6 +2676,14 @@
26572676
"properties": {
26582677
"linkedRedisCacheId": {
26592678
"type": "string",
2679+
"format": "arm-id",
2680+
"x-ms-arm-id-details": {
2681+
"allowedResources": [
2682+
{
2683+
"type": "Microsoft.Cache/redis"
2684+
}
2685+
]
2686+
},
26602687
"description": "Fully qualified resourceId of the linked redis cache."
26612688
},
26622689
"linkedRedisCacheLocation": {

specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2023-07-01/redisenterprise.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,14 @@
17001700
"properties": {
17011701
"id": {
17021702
"type": "string",
1703+
"format": "arm-id",
1704+
"x-ms-arm-id-details": {
1705+
"allowedResources": [
1706+
{
1707+
"type": "Microsoft.Cache/redisEnterprise/databases"
1708+
}
1709+
]
1710+
},
17031711
"x-ms-mutability": [
17041712
"read",
17051713
"create"
@@ -1833,7 +1841,15 @@
18331841
"ids": {
18341842
"type": "array",
18351843
"items": {
1836-
"type": "string"
1844+
"type": "string",
1845+
"format": "arm-id",
1846+
"x-ms-arm-id-details": {
1847+
"allowedResources": [
1848+
{
1849+
"type": "Microsoft.Cache/redisEnterprise/databases"
1850+
}
1851+
]
1852+
}
18371853
},
18381854
"description": "The resource IDs of the database resources to be unlinked."
18391855
}

0 commit comments

Comments
 (0)