Skip to content

Commit 39baa6e

Browse files
fix: update SQLDB_SERVER output to remove domain suffix and correct gptModelName default value (#493)
1 parent 163562f commit 39baa6e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

infra/bicep/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ output STORAGE_CONTAINER_NAME string = storageAccountModule.outputs.storageConta
334334
output KEY_VAULT_NAME string = keyvaultModule.outputs.keyvaultName
335335
output COSMOSDB_ACCOUNT_NAME string = cosmosDBModule.outputs.cosmosAccountName
336336
output RESOURCE_GROUP_NAME string = resourceGroup().name
337-
output SQLDB_SERVER string = sqlDBModule.outputs.sqlServerName
337+
output SQLDB_SERVER string = replace(sqlDBModule.outputs.sqlServerName, '.database.windows.net','')
338338
output SQLDB_DATABASE string = sqlDBModule.outputs.sqlDbName
339339
output MANAGEDINDENTITY_FNAPP_NAME string = managedIdentityModule.outputs.managedIdentityFnAppOutput.name
340340
output MANAGEDINDENTITY_FNAPP_CLIENTID string = managedIdentityModule.outputs.managedIdentityFnAppOutput.clientId

infra/bicep/main.bicepparam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using './main.bicep'
33
param environmentName = readEnvironmentVariable('AZURE_ENV_NAME', 'env_name')
44
param cosmosLocation = readEnvironmentVariable('AZURE_ENV_COSMOS_LOCATION', 'eastus2')
55
param deploymentType = readEnvironmentVariable('AZURE_ENV_MODEL_DEPLOYMENT_TYPE', 'GlobalStandard')
6-
param gptModelName = readEnvironmentVariable('AZURE_ENV_MODEL_NAME', 'gpt-4o')
6+
param gptModelName = readEnvironmentVariable('AZURE_ENV_MODEL_NAME', 'gpt-4o-mini')
77
param gptDeploymentCapacity = int(readEnvironmentVariable('AZURE_ENV_MODEL_CAPACITY', '30'))
88

99
param embeddingDeploymentCapacity = int(readEnvironmentVariable('AZURE_ENV_EMBEDDING_MODEL_CAPACITY', '80'))

infra/bicep/main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.34.44.8038",
8-
"templateHash": "13074623986840466778"
8+
"templateHash": "5725756876467977390"
99
}
1010
},
1111
"parameters": {
@@ -3326,7 +3326,7 @@
33263326
},
33273327
"SQLDB_SERVER": {
33283328
"type": "string",
3329-
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value]"
3329+
"value": "[replace(reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value, '.database.windows.net', '')]"
33303330
},
33313331
"SQLDB_DATABASE": {
33323332
"type": "string",

0 commit comments

Comments
 (0)