@@ -301,7 +301,7 @@ module backend 'core/host/appservice.bicep' = {
301
301
AZURE_SEARCH_QUERY_LANGUAGE : searchQueryLanguage
302
302
AZURE_SEARCH_QUERY_SPELLER : searchQuerySpeller
303
303
APPLICATIONINSIGHTS_CONNECTION_STRING : useApplicationInsights ? monitoring .outputs .applicationInsightsConnectionString : ''
304
- AZURE_SPEECH_SERVICE_ID : useSpeechOutputAzure ? speech .outputs .id : ''
304
+ AZURE_SPEECH_SERVICE_ID : useSpeechOutputAzure ? speech .outputs .resourceId : ''
305
305
AZURE_SPEECH_SERVICE_LOCATION : useSpeechOutputAzure ? speech .outputs .location : ''
306
306
USE_SPEECH_INPUT_BROWSER : useSpeechInputBrowser
307
307
USE_SPEECH_OUTPUT_BROWSER : useSpeechOutputBrowser
@@ -391,69 +391,79 @@ var openAiDeployments = concat(defaultOpenAiDeployments, useGPT4V ? [
391
391
}
392
392
] : [])
393
393
394
- module openAi 'core/ai/cognitiveservices.bicep ' = if (isAzureOpenAiHost && deployAzureOpenAi ) {
394
+ module openAi 'br/public:avm/res/cognitive-services/account:0.5.4 ' = if (isAzureOpenAiHost && deployAzureOpenAi ) {
395
395
name : 'openai'
396
396
scope : openAiResourceGroup
397
397
params : {
398
398
name : !empty (openAiServiceName ) ? openAiServiceName : '${abbrs .cognitiveServicesAccounts }${resourceToken }'
399
399
location : openAiResourceGroupLocation
400
400
tags : tags
401
+ kind : 'OpenAI'
402
+ customSubDomainName : !empty (openAiServiceName ) ? openAiServiceName : '${abbrs .cognitiveServicesAccounts }${resourceToken }'
401
403
publicNetworkAccess : publicNetworkAccess
402
- bypass : bypass
403
- sku : {
404
- name : openAiSkuName
404
+ networkAcls : {
405
+ defaultAction : 'Allow'
406
+ bypass : bypass
405
407
}
408
+ sku : openAiSkuName
406
409
deployments : openAiDeployments
407
410
disableLocalAuth : true
408
411
}
409
412
}
410
413
411
414
// Formerly known as Form Recognizer
412
415
// Does not support bypass
413
- module documentIntelligence 'core/ai/cognitiveservices.bicep ' = {
416
+ module documentIntelligence 'br/public:avm/res/cognitive-services/account:0.5.4 ' = {
414
417
name : 'documentintelligence'
415
418
scope : documentIntelligenceResourceGroup
416
419
params : {
417
420
name : !empty (documentIntelligenceServiceName ) ? documentIntelligenceServiceName : '${abbrs .cognitiveServicesDocumentIntelligence }${resourceToken }'
418
421
kind : 'FormRecognizer'
422
+ customSubDomainName : !empty (documentIntelligenceServiceName ) ? documentIntelligenceServiceName : '${abbrs .cognitiveServicesDocumentIntelligence }${resourceToken }'
419
423
publicNetworkAccess : publicNetworkAccess
424
+ networkAcls : {
425
+ defaultAction : 'Allow'
426
+ }
420
427
location : documentIntelligenceResourceGroupLocation
421
428
disableLocalAuth : true
422
429
tags : tags
423
- sku : {
424
- name : documentIntelligenceSkuName
425
- }
430
+ sku : documentIntelligenceSkuName
426
431
}
427
432
}
428
433
429
- module computerVision 'core/ai/cognitiveservices.bicep ' = if (useGPT4V ) {
434
+ module computerVision 'br/public:avm/res/cognitive-services/account:0.5.4 ' = if (useGPT4V ) {
430
435
name : 'computerVision'
431
436
scope : computerVisionResourceGroup
432
437
params : {
433
438
name : !empty (computerVisionServiceName )
434
439
? computerVisionServiceName
435
440
: '${abbrs .cognitiveServicesComputerVision }${resourceToken }'
436
441
kind : 'ComputerVision'
442
+ networkAcls : {
443
+ defaultAction : 'Allow'
444
+ }
445
+ customSubDomainName : !empty (computerVisionServiceName )
446
+ ? computerVisionServiceName
447
+ : '${abbrs .cognitiveServicesComputerVision }${resourceToken }'
437
448
location : computerVisionResourceGroupLocation
438
449
tags : tags
439
- bypass : bypass
440
- sku : {
441
- name : computerVisionSkuName
442
- }
450
+ sku : computerVisionSkuName
443
451
}
444
452
}
445
453
446
- module speech 'core/ai/cognitiveservices.bicep ' = if (useSpeechOutputAzure ) {
454
+ module speech 'br/public:avm/res/cognitive-services/account:0.5.4 ' = if (useSpeechOutputAzure ) {
447
455
name : 'speech-service'
448
456
scope : speechResourceGroup
449
457
params : {
450
458
name : !empty (speechServiceName ) ? speechServiceName : '${abbrs .cognitiveServicesSpeech }${resourceToken }'
451
459
kind : 'SpeechServices'
460
+ networkAcls : {
461
+ defaultAction : 'Allow'
462
+ }
463
+ customSubDomainName : !empty (speechServiceName ) ? speechServiceName : '${abbrs .cognitiveServicesSpeech }${resourceToken }'
452
464
location : !empty (speechServiceLocation ) ? speechServiceLocation : location
453
465
tags : tags
454
- sku : {
455
- name : speechServiceSkuName
456
- }
466
+ sku : speechServiceSkuName
457
467
}
458
468
}
459
469
module searchService 'core/search/search-services.bicep' = {
@@ -720,9 +730,9 @@ var openAiPrivateEndpointConnection = (isAzureOpenAiHost && deployAzureOpenAi) ?
720
730
groupId : 'account'
721
731
dnsZoneName : 'privatelink.openai.azure.com'
722
732
resourceIds : concat (
723
- [ openAi .outputs .id ],
724
- useGPT4V ? [ computerVision .outputs .id ] : [],
725
- !useLocalPdfParser ? [ documentIntelligence .outputs .id ] : []
733
+ [ openAi .outputs .resourceId ],
734
+ useGPT4V ? [ computerVision .outputs .resourceId ] : [],
735
+ !useLocalPdfParser ? [ documentIntelligence .outputs .resourceId ] : []
726
736
)
727
737
}] : []
728
738
var otherPrivateEndpointConnections = usePrivateEndpoint ? [
@@ -844,7 +854,7 @@ output AZURE_OPENAI_CHATGPT_DEPLOYMENT string = isAzureOpenAiHost ? chatGpt.depl
844
854
output AZURE_OPENAI_EMB_DEPLOYMENT string = isAzureOpenAiHost ? embedding .deploymentName : ''
845
855
output AZURE_OPENAI_GPT4V_DEPLOYMENT string = isAzureOpenAiHost ? gpt4vDeploymentName : ''
846
856
847
- output AZURE_SPEECH_SERVICE_ID string = useSpeechOutputAzure ? speech .outputs .id : ''
857
+ output AZURE_SPEECH_SERVICE_ID string = useSpeechOutputAzure ? speech .outputs .resourceId : ''
848
858
output AZURE_SPEECH_SERVICE_LOCATION string = useSpeechOutputAzure ? speech .outputs .location : ''
849
859
850
860
output AZURE_VISION_ENDPOINT string = useGPT4V ? computerVision .outputs .endpoint : ''
0 commit comments