diff --git a/infra/main.bicep b/infra/main.bicep index 82bc1df8a..30add0dad 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -36,6 +36,7 @@ param searchServiceSkuName string = 'standard' param searchServiceAPIVersion string = '2023-07-01-Preview' param deployFormRecognizer bool = true +param deploySpeechServices bool = true param resourceGroupName string = '' @@ -72,6 +73,7 @@ module resources 'resources.bicep' = { searchServiceAPIVersion: searchServiceAPIVersion location: location deployFormRecognizer: deployFormRecognizer + deploySpeechServices: deploySpeechServices } } diff --git a/infra/main.json b/infra/main.json index ecf26de05..cf103781f 100644 --- a/infra/main.json +++ b/infra/main.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.24.24.22086", - "templateHash": "11478787983207948460" + "templateHash": "18294787554343767545" } }, "parameters": { @@ -97,6 +97,10 @@ "type": "bool", "defaultValue": true }, + "deploySpeechServices": { + "type": "bool", + "defaultValue": true + }, "resourceGroupName": { "type": "string", "defaultValue": "" @@ -183,6 +187,9 @@ }, "deployFormRecognizer": { "value": "[parameters('deployFormRecognizer')]" + }, + "deploySpeechServices": { + "value": "[parameters('deploySpeechServices')]" } }, "template": { @@ -192,7 +199,7 @@ "_generator": { "name": "bicep", "version": "0.24.24.22086", - "templateHash": "16531905642071466007" + "templateHash": "6778722095658367123" } }, "parameters": { @@ -265,6 +272,10 @@ "type": "bool", "defaultValue": true }, + "deploySpeechServices": { + "type": "bool", + "defaultValue": true + }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]" @@ -693,6 +704,7 @@ ] }, { + "condition": "[parameters('deploySpeechServices')]", "type": "Microsoft.CognitiveServices/accounts", "apiVersion": "2023-05-01", "name": "[variables('speech_service_name')]", diff --git a/infra/resources.bicep b/infra/resources.bicep index 679ffb3da..ef779e8a1 100644 --- a/infra/resources.bicep +++ b/infra/resources.bicep @@ -20,7 +20,7 @@ param searchServiceIndexName string = 'azure-chat' param searchServiceAPIVersion string = '2023-07-01-Preview' param deployFormRecognizer bool = true - +param deploySpeechServices bool = true param location string = resourceGroup().location @secure() @@ -371,7 +371,7 @@ resource deployment 'Microsoft.CognitiveServices/accounts/deployments@2023-05-01 } }] -resource speechService 'Microsoft.CognitiveServices/accounts@2023-05-01' = { +resource speechService 'Microsoft.CognitiveServices/accounts@2023-05-01' = if (deploySpeechServices) { name: speech_service_name location: location tags: tags