Skip to content

Commit 407b9cb

Browse files
Merge pull request #522 from microsoft/psl-searchserviceissue
fix: enabled the public access for search service
2 parents f262621 + ff1de98 commit 407b9cb

File tree

2 files changed

+52
-36
lines changed

2 files changed

+52
-36
lines changed

infra/main.bicep

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,11 @@ module searchService 'br/public:avm/res/search/search-service:0.11.1' = {
19211921
managedIdentities: {
19221922
systemAssigned: true
19231923
}
1924-
publicNetworkAccess: enablePrivateNetworking ? 'Disabled' : 'Enabled'
1924+
1925+
// Enabled the Public access because other services are not able to connect with search search AVM module when public access is disabled
1926+
1927+
// publicNetworkAccess: enablePrivateNetworking ? 'Disabled' : 'Enabled'
1928+
publicNetworkAccess: 'Enabled'
19251929
networkRuleSet: {
19261930
bypass: 'AzureServices'
19271931
}
@@ -1951,23 +1955,27 @@ module searchService 'br/public:avm/res/search/search-service:0.11.1' = {
19511955
principalType: 'ServicePrincipal'
19521956
}
19531957
]
1954-
privateEndpoints: enablePrivateNetworking
1955-
? [
1956-
{
1957-
name: 'pep-search-${solutionSuffix}'
1958-
customNetworkInterfaceName: 'nic-search-${solutionSuffix}'
1959-
privateDnsZoneGroup: {
1960-
privateDnsZoneGroupConfigs: [
1961-
{
1962-
privateDnsZoneResourceId: avmPrivateDnsZones[dnsZoneIndex.search]!.outputs.resourceId
1963-
}
1964-
]
1965-
}
1966-
subnetResourceId: virtualNetwork!.outputs.subnetResourceIds[0]
1967-
service: 'searchService'
1968-
}
1969-
]
1970-
: []
1958+
1959+
//Removing the Private endpoints as we are facing the issue with connecting to search service while comminicating with agents
1960+
1961+
privateEndpoints:[]
1962+
// privateEndpoints: enablePrivateNetworking
1963+
// ? [
1964+
// {
1965+
// name: 'pep-search-${solutionSuffix}'
1966+
// customNetworkInterfaceName: 'nic-search-${solutionSuffix}'
1967+
// privateDnsZoneGroup: {
1968+
// privateDnsZoneGroupConfigs: [
1969+
// {
1970+
// privateDnsZoneResourceId: avmPrivateDnsZones[dnsZoneIndex.search]!.outputs.resourceId
1971+
// }
1972+
// ]
1973+
// }
1974+
// subnetResourceId: virtualNetwork!.outputs.subnetResourceIds[0]
1975+
// service: 'searchService'
1976+
// }
1977+
// ]
1978+
// : []
19711979
}
19721980
}
19731981

infra/main_custom.bicep

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)