@@ -157,7 +157,7 @@ resource cachePrivateEndpoint 'Microsoft.Network/privateEndpoints@2023-05-01' =
157157 }
158158}
159159
160- resource web 'Microsoft.Web/sites@2022-03 -01' = {
160+ resource web 'Microsoft.Web/sites@2024-11 -01' = {
161161 name : '${prefix }-app-service'
162162 location : location
163163 tags : union (tags , { 'azd-service-name' : 'web' })
@@ -180,11 +180,11 @@ resource web 'Microsoft.Web/sites@2022-03-01' = {
180180 resource appSettings 'config' = {
181181 name : 'appsettings'
182182 properties : {
183- SCM_DO_BUILD_DURING_DEPLOYMENT : 'true'
184- AZURE_POSTGRESQL_CONNECTIONSTRING : 'dbname=${pythonAppDatabase .name } host=${postgresServer .name }.postgres.database.azure.com port=5432 sslmode=require user=${postgresServer .properties .administratorLogin } password=${databasePassword }'
185- SECRET_KEY : secretKey
186- AZURE_REDIS_CONNECTIONSTRING : 'rediss://:${redisCache .listKeys ().primaryKey }@${redisCache .name }.redis.cache.windows.net:6380/0'
187- }
183+ SCM_DO_BUILD_DURING_DEPLOYMENT : 'true'
184+ AZURE_POSTGRESQL_CONNECTIONSTRING : 'dbname=${pythonAppDatabase .name } host=${postgresServer .name }.postgres.database.azure.com port=5432 sslmode=require user=${postgresServer .properties .administratorLogin } password=${databasePassword }'
185+ SECRET_KEY : secretKey
186+ AZURE_REDIS_CONNECTIONSTRING : 'rediss://:${redisCache .listKeys ().primaryKey }@${redisCache .name }.redis.cache.windows.net:6380/0'
187+ }
188188 }
189189
190190 resource logs 'config' = {
@@ -362,14 +362,6 @@ resource redisCache 'Microsoft.Cache/redis@2023-04-01' = {
362362
363363output WEB_URI string = 'https://${web .properties .defaultHostName }'
364364output APPLICATIONINSIGHTS_CONNECTION_STRING string = applicationInsightsResources .outputs .APPLICATIONINSIGHTS_CONNECTION_STRING
365-
366- resource webAppSettings 'Microsoft.Web/sites/config@2022-03-01' existing = {
367- name : web ::appSettings .name
368- parent : web
369- }
370-
371- var webAppSettingsKeys = map (items (webAppSettings .list ().properties ), setting => setting .key )
372- output WEB_APP_SETTINGS array = webAppSettingsKeys
373365output WEB_APP_LOG_STREAM string = format ('https://portal.azure.com/#@/resource{0}/logStream' , web .id )
374366output WEB_APP_SSH string = format ('https://{0}.scm.azurewebsites.net/webssh/host' , web .name )
375367output WEB_APP_CONFIG string = format ('https://portal.azure.com/#@/resource{0}/configuration' , web .id )
0 commit comments