Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Modules] Configure privateDnsZoneGroups on app config #1689

Merged
merged 14 commits into from
Jul 18, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "<<namePrefix>>-az-appcs-min-001"
"value": "<<namePrefix>>-az-appc-min-001"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "<<namePrefix>>-az-appcs-x-001"
"value": "<<namePrefix>>-az-appc-x-001"
},
"lock": {
"value": "CanNotDelete"
Expand Down Expand Up @@ -72,7 +72,12 @@
"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": "configurationStores"
"service": "configurationStores",
"privateDnsZoneGroup": {
"privateDNSResourceIds": [
"/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.azconfig.io"
]
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ resource configurationStore 'Microsoft.AppConfiguration/configurationStores@2021
}

module configurationStore_keyValues 'keyValues/deploy.bicep' = [for (keyValue, index) in keyValues: {
name: '${uniqueString(deployment().name, location)}-appConfig-KeyValues-${index}'
name: '${uniqueString(deployment().name, location)}-AppConfig-KeyValues-${index}'
params: {
appConfigurationName: configurationStore.name
name: keyValue.name
Expand Down Expand Up @@ -207,7 +207,7 @@ module configurationStore_roleAssignments '.bicep/nested_roleAssignments.bicep'
}]

module configurationStore_privateEndpoints '../../Microsoft.Network/privateEndpoints/deploy.bicep' = [for (privateEndpoint, index) in privateEndpoints: {
name: '${uniqueString(deployment().name, location)}-configurationStore-PrivateEndpoint-${index}'
name: '${uniqueString(deployment().name, location)}-AppConfig-PrivateEndpoint-${index}'
params: {
groupIds: [
privateEndpoint.service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ The following module usage examples are retrieved from the content of the files
module configurationStores './Microsoft.AppConfiguration/configurationStores/deploy.bicep' = {
name: '${uniqueString(deployment().name)}-configurationStores'
params: {
name: '<<namePrefix>>-az-appcs-min-001'
name: '<<namePrefix>>-az-appc-min-001'
}
}
```
Expand All @@ -310,7 +310,7 @@ module configurationStores './Microsoft.AppConfiguration/configurationStores/dep
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "<<namePrefix>>-az-appcs-min-001"
"value": "<<namePrefix>>-az-appc-min-001"
}
}
}
Expand All @@ -330,7 +330,7 @@ module configurationStores './Microsoft.AppConfiguration/configurationStores/dep
name: '${uniqueString(deployment().name)}-configurationStores'
params: {
// Required parameters
name: '<<namePrefix>>-az-appcs-x-001'
name: '<<namePrefix>>-az-appc-x-001'
// Non-required parameters
createMode: 'Default'
diagnosticEventHubAuthorizationRuleId: '/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.EventHub/namespaces/adp-<<namePrefix>>-az-evhns-x-001/AuthorizationRules/RootManageSharedAccessKey'
Expand Down Expand Up @@ -358,6 +358,11 @@ module configurationStores './Microsoft.AppConfiguration/configurationStores/dep
lock: 'CanNotDelete'
privateEndpoints: [
{
privateDnsZoneGroup: {
privateDNSResourceIds: [
'/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.azconfig.io'
]
}
service: 'configurationStores'
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 @@ -391,7 +396,7 @@ module configurationStores './Microsoft.AppConfiguration/configurationStores/dep
"parameters": {
// Required parameters
"name": {
"value": "<<namePrefix>>-az-appcs-x-001"
"value": "<<namePrefix>>-az-appc-x-001"
},
// Non-required parameters
"createMode": {
Expand Down Expand Up @@ -441,6 +446,11 @@ module configurationStores './Microsoft.AppConfiguration/configurationStores/dep
"privateEndpoints": {
"value": [
{
"privateDnsZoneGroup": {
"privateDNSResourceIds": [
"/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.azconfig.io"
]
},
"service": "configurationStores",
"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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.2"
"version": "0.3"
}