File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ resource search 'Microsoft.Search/searchServices@2021-04-01-preview' = {
47
47
// The free tier does not support managed identity
48
48
identity : searchIdentityProvider
49
49
properties : {
50
- authOptions : authOptions
50
+ authOptions : disableLocalAuth ? null : authOptions
51
51
disableLocalAuth : disableLocalAuth
52
52
disabledDataExfiltrationOptions : disabledDataExfiltrationOptions
53
53
encryptionWithCmk : encryptionWithCmk
Original file line number Diff line number Diff line change @@ -418,11 +418,7 @@ module searchService 'core/search/search-services.bicep' = {
418
418
name : !empty (searchServiceName ) ? searchServiceName : 'gptkb-${resourceToken }'
419
419
location : !empty (searchServiceLocation ) ? searchServiceLocation : location
420
420
tags : tags
421
- authOptions : {
422
- aadOrApiKey : {
423
- aadAuthFailureMode : 'http401WithBearerChallenge'
424
- }
425
- }
421
+ disableLocalAuth : !useSearchServiceKey
426
422
sku : {
427
423
name : searchServiceSkuName
428
424
}
You can’t perform that action at this time.
0 commit comments