File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
MSSQL = ' Server=.database.windows.net;Initial Catalog=;Persist Security Info=False;User ID=session_recommender_app;Password=unEno!h5!&*KP420xds&@P901afb$^M;MultipleActiveResultSets=False;Encrypt=True;Connection Timeout=30;'
2
2
OPENAI_URL = ' https://.openai.azure.com'
3
3
OPENAI_KEY = ' '
4
+ OPENAI_MODEL = ' text-embedding-ada-002'
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ static int Main(string[] args)
19
19
var connectionString = Env . GetString ( "MSSQL" ) ;
20
20
21
21
if ( string . IsNullOrEmpty ( connectionString ) ) {
22
- Console . WriteLine ( "ERROR: 'ConnectionString ' enviroment variable not set or empty." ) ;
22
+ Console . WriteLine ( "ERROR: 'MSSQL ' enviroment variable not set or empty." ) ;
23
23
Console . WriteLine ( "You can create an .env file in parent folder that sets the 'MSSQL' environment variable; then run this app again." ) ;
24
24
return 1 ;
25
25
}
@@ -41,6 +41,7 @@ static int Main(string[] args)
41
41
Dictionary < string , string > variables = new ( ) {
42
42
{ "OPENAI_URL" , Env . GetString ( "OPENAI_URL" ) } ,
43
43
{ "OPENAI_KEY" , Env . GetString ( "OPENAI_KEY" ) }
44
+ { "OPENAI_MODEL" , Env . GetString ( "OPENAI_MODEL" ) }
44
45
} ;
45
46
46
47
Console . WriteLine ( "Starting deployment..." ) ;
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ resource createDBScript2 'Microsoft.Resources/deploymentScripts@2023-08-01' = {
102
102
secureValue : appUserPassword
103
103
}
104
104
]
105
- scriptContent : loadTextContent ('../../database/setup-database.ps1' )
106
105
}
107
106
}
108
107
Original file line number Diff line number Diff line change @@ -45,9 +45,11 @@ param logAnalyticsName string = ''
45
45
@description ('Flag to Use keyvault to store and use keys' )
46
46
param useKeyVault bool = true
47
47
48
+ param myTags object = {}
49
+
48
50
var abbrs = loadJsonContent ('./abbreviations.json' )
49
51
var resourceToken = toLower (uniqueString (subscription ().id , environmentName , location ))
50
- var tags = { 'azd-env-name' : environmentName }
52
+ var tags = union ( { 'azd-env-name' : environmentName }, myTags )
51
53
var rgName = 'rg-${environmentName }'
52
54
53
55
// Organize resources in a resource group
@@ -126,7 +128,7 @@ module hostingPlan 'core/host/appserviceplan.bicep' = {
126
128
location : location
127
129
name : !empty (hostingPlanName ) ? hostingPlanName : '${abbrs .webServerFarms }${resourceToken }'
128
130
sku : {
129
- name : 'EP1 '
131
+ name : 'B1 '
130
132
}
131
133
kind : 'linux'
132
134
}
Original file line number Diff line number Diff line change 18
18
"value" : " $(secretOrRandomPassword ${AZURE_KEY_VAULT_NAME} appUserPassword)"
19
19
},
20
20
"useKeyVault" : {
21
- "value" : " ${USE_KEY_VAULT=true}"
21
+ "value" : " ${USE_KEY_VAULT=false}"
22
+ },
23
+ "myTags" : {
24
+ "value" : {}
22
25
}
23
26
}
24
27
}
You can’t perform that action at this time.
0 commit comments