@@ -1962,7 +1962,11 @@ module searchService 'br/public:avm/res/search/search-service:0.11.1' = {
19621962 managedIdentities : {
19631963 systemAssigned : true
19641964 }
1965- publicNetworkAccess : enablePrivateNetworking ? 'Disabled' : 'Enabled'
1965+
1966+ // Enabled the Public access because other services are not able to connect with search search AVM module when public access is disabled
1967+
1968+ // publicNetworkAccess: enablePrivateNetworking ? 'Disabled' : 'Enabled'
1969+ publicNetworkAccess : 'Enabled'
19661970 networkRuleSet : {
19671971 bypass : 'AzureServices'
19681972 }
@@ -1992,23 +1996,27 @@ module searchService 'br/public:avm/res/search/search-service:0.11.1' = {
19921996 principalType : 'ServicePrincipal'
19931997 }
19941998 ]
1995- privateEndpoints : enablePrivateNetworking
1996- ? [
1997- {
1998- name : 'pep-search-${solutionSuffix }'
1999- customNetworkInterfaceName : 'nic-search-${solutionSuffix }'
2000- privateDnsZoneGroup : {
2001- privateDnsZoneGroupConfigs : [
2002- {
2003- privateDnsZoneResourceId : avmPrivateDnsZones [dnsZoneIndex .search ]!.outputs .resourceId
2004- }
2005- ]
2006- }
2007- subnetResourceId : virtualNetwork !.outputs .subnetResourceIds [0 ]
2008- service : 'searchService'
2009- }
2010- ]
2011- : []
1999+ privateEndpoints :[]
2000+
2001+ // Removing the Private endpoints as we are facing the issue with connecting to search service while comminicating with agents
2002+
2003+ // privateEndpoints: enablePrivateNetworking
2004+ // ? [
2005+ // {
2006+ // name: 'pep-search-${solutionSuffix}'
2007+ // customNetworkInterfaceName: 'nic-search-${solutionSuffix}'
2008+ // privateDnsZoneGroup: {
2009+ // privateDnsZoneGroupConfigs: [
2010+ // {
2011+ // privateDnsZoneResourceId: avmPrivateDnsZones[dnsZoneIndex.search]!.outputs.resourceId
2012+ // }
2013+ // ]
2014+ // }
2015+ // subnetResourceId: virtualNetwork!.outputs.subnetResourceIds[0]
2016+ // service: 'searchService'
2017+ // }
2018+ // ]
2019+ // : []
20122020 }
20132021}
20142022
0 commit comments