Skip to content

Commit

Permalink
[Modules] Configure privateDnsZoneGroups on redisCache (#1927)
Browse files Browse the repository at this point in the history
* privateDNSResourceIds

* readme
  • Loading branch information
eriqua authored Sep 6, 2022
1 parent 7830317 commit a203401
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 65 deletions.
12 changes: 6 additions & 6 deletions modules/Microsoft.Cache/redis/.test/min.parameters.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "<<namePrefix>>-az-redis-min-001"
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "<<namePrefix>>-az-redis-min-001"
}
}
}
}
123 changes: 64 additions & 59 deletions modules/Microsoft.Cache/redis/.test/parameters.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,68 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "<<namePrefix>>-az-redis-full-001"
},
"capacity": {
"value": 2
},
"diagnosticLogCategoriesToEnable": {
"value": [
"ApplicationGatewayAccessLog",
"ApplicationGatewayFirewallLog"
]
},
"diagnosticMetricsToEnable": {
"value": [
"AllMetrics"
]
},
"enableNonSslPort": {
"value": true
},
"lock": {
"value": "CanNotDelete"
},
"minimumTlsVersion": {
"value": "1.2"
},
"diagnosticSettingsName": {
"value": "redisdiagnostics"
},
"publicNetworkAccess": {
"value": "Enabled"
},
"redisVersion": {
"value": "6"
},
"skuName": {
"value": "Premium"
},
"systemAssignedIdentity": {
"value": true
},
"shardCount": {
"value": 1
},
"tags": {
"value": {
"resourceType": "Redis Cache"
}
},
"privateEndpoints": {
"value": [
{
"subnetResourceId": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-005-privateEndpoints",
"service": "redisCache"
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "<<namePrefix>>-az-redis-full-001"
},
"capacity": {
"value": 2
},
"diagnosticLogCategoriesToEnable": {
"value": [
"ApplicationGatewayAccessLog",
"ApplicationGatewayFirewallLog"
]
},
"diagnosticMetricsToEnable": {
"value": [
"AllMetrics"
]
},
"enableNonSslPort": {
"value": true
},
"lock": {
"value": "CanNotDelete"
},
"minimumTlsVersion": {
"value": "1.2"
},
"diagnosticSettingsName": {
"value": "redisdiagnostics"
},
"publicNetworkAccess": {
"value": "Enabled"
},
"redisVersion": {
"value": "6"
},
"skuName": {
"value": "Premium"
},
"systemAssignedIdentity": {
"value": true
},
"shardCount": {
"value": 1
},
"tags": {
"value": {
"resourceType": "Redis Cache"
}
},
"privateEndpoints": {
"value": [
{
"subnetResourceId": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-005-privateEndpoints",
"service": "redisCache",
"privateDnsZoneGroup": {
"privateDNSResourceIds": [
"/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.redis.cache.windows.net"
]
}
}
]
}
]
}
}
}
10 changes: 10 additions & 0 deletions modules/Microsoft.Cache/redis/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ module redis './Microsoft.Cache/redis/deploy.bicep' = {
minimumTlsVersion: '1.2'
privateEndpoints: [
{
privateDnsZoneGroup: {
privateDNSResourceIds: [
'/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.redis.cache.windows.net'
]
}
service: 'redisCache'
subnetResourceId: '/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-005-privateEndpoints'
}
Expand Down Expand Up @@ -461,6 +466,11 @@ module redis './Microsoft.Cache/redis/deploy.bicep' = {
"privateEndpoints": {
"value": [
{
"privateDnsZoneGroup": {
"privateDNSResourceIds": [
"/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.redis.cache.windows.net"
]
},
"service": "redisCache",
"subnetResourceId": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<<namePrefix>>-az-vnet-x-001/subnets/<<namePrefix>>-az-subnet-x-005-privateEndpoints"
}
Expand Down

0 comments on commit a203401

Please sign in to comment.