File tree Expand file tree Collapse file tree
samples/web-app-sql-database/python/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ RUNTIME="python"
2222RUNTIME_VERSION=" 3.13"
2323DEPLOY_APP=1
2424ENVIRONMENT=$( az account show --query environmentName --output tsv)
25- KEYVAULT_NAME =" ${PREFIX} -kv-${SUFFIX} "
25+ KEY_VAULT_NAME =" ${PREFIX} -kv-${SUFFIX} "
2626SECRET_NAME=" SqlConnectionString"
2727
2828# Change the current directory to the script's directory
@@ -330,8 +330,6 @@ $AZ keyvault create \
330330 --name " $KEY_VAULT_NAME " \
331331 --resource-group " $RESOURCE_GROUP_NAME " \
332332 --location " $LOCATION " \
333- --enable-soft-delete true \
334- --retention-days 7 \
335333 --only-show-errors 1> /dev/null
336334
337335if [ $? -eq 0 ]; then
@@ -391,10 +389,7 @@ $AZ webapp config appsettings set \
391389 --settings \
392390 SCM_DO_BUILD_DURING_DEPLOYMENT=' true' \
393391 ENABLE_ORYX_BUILD=' true' \
394- SQL_SERVER=" $SQL_SERVER_FQDN " \
395- SQL_DATABASE=" $SQL_DATABASE_NAME " \
396- SQL_USERNAME=" $DATABASE_USER_NAME " \
397- SQL_PASSWORD=" $DATABASE_USER_PASSWORD " \
392+ SQL_CONNECTION_STRING=" @Microsoft.KeyVault(SecretUri=${SECRET_URI} )" \
398393 LOGIN_NAME=" $LOGIN_NAME " \
399394 --only-show-errors 1> /dev/null
400395
You can’t perform that action at this time.
0 commit comments