Skip to content

Commit 7ad962a

Browse files
committed
Conditional for SPL
1 parent b16fd31 commit 7ad962a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

infra/core/search/search-services.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ resource search 'Microsoft.Search/searchServices@2023-11-01' = {
5555
}
5656
sku: sku
5757

58+
// https://github.com/Azure/bicep-types-az/issues/2421
5859
resource sharedPrivateLinkResource 'sharedPrivateLinkResources@2023-11-01' = [for (resourceId, i) in sharedPrivateLinkStorageAccounts: {
5960
name: 'search-shared-private-link-${i}'
6061
properties: {

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ module searchService 'core/search/search-services.bicep' = {
701701
publicNetworkAccess: publicNetworkAccess == 'Enabled'
702702
? 'enabled'
703703
: (publicNetworkAccess == 'Disabled' ? 'disabled' : null)
704-
sharedPrivateLinkStorageAccounts: usePrivateEndpoint ? [storage.outputs.id] : []
704+
sharedPrivateLinkStorageAccounts: (usePrivateEndpoint && useIntegratedVectorization) ? [storage.outputs.id] : []
705705
}
706706
}
707707

0 commit comments

Comments
 (0)