diff --git a/bicep/main.bicep b/bicep/main.bicep index 133b0b258..3ac361f3f 100644 --- a/bicep/main.bicep +++ b/bicep/main.bicep @@ -1208,6 +1208,9 @@ var aks_addons1 = ingressApplicationGateway ? union(aks_addons, deployAppGw ? { @description('Sets the private dns zone id if provided') var aksPrivateDnsZone = privateClusterDnsMethod=='privateDnsZone' ? (!empty(dnsApiPrivateZoneId) ? dnsApiPrivateZoneId : 'system') : privateClusterDnsMethod output aksPrivateDnsZone string = aksPrivateDnsZone +output privateFQDN string = enablePrivateCluster && privateClusterDnsMethod != 'none' ? aks.properties.privateFQDN : '' +// Dropping cluster name at start of privateFQDN to get private dns zone name. +output aksPrivateDnsZoneName string = enablePrivateCluster && privateClusterDnsMethod != 'none' ? join(skip(split(aks.properties.privateFQDN, '.'),1),'.') : '' @description('Needing to seperately declare and union this because of https://github.com/Azure/AKS-Construction/issues/344') var managedNATGatewayProfile = {