From 9e821608a1071460796a6e2989bd713e860e75f7 Mon Sep 17 00:00:00 2001 From: zedy Date: Wed, 14 Dec 2022 15:58:45 +0800 Subject: [PATCH] fix some bug --- infra/main.bicep | 6 +++--- src/Infrastructure/Dependencies.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index bdf877a..d1187f7 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -56,9 +56,9 @@ module web './core/host/appservice.bicep' = { runtimeVersion: '6.0' tags: union(tags, { 'azd-service-name': 'web' }) appSettings: { - CATALOG_CONNECTION_STRING_KEY: 'AZURE-SQL-CATALOG-CONNECTION-STRING' - IDENTITY_CONNECTION_STRING_KEY: 'AZURE-SQL-IDENTITY-CONNECTION-STRING' - KEY_VAULT_ENDPOINT: keyVault.outputs.endpoint + AZURE_CATALOG_CONNECTION_STRING_KEY: 'AZURE-SQL-CATALOG-CONNECTION-STRING' + AZURE_IDENTITY_CONNECTION_STRING_KEY: 'AZURE-SQL-IDENTITY-CONNECTION-STRING' + AZURE_KEY_VAULT_ENDPOINT: keyVault.outputs.endpoint } } } diff --git a/src/Infrastructure/Dependencies.cs b/src/Infrastructure/Dependencies.cs index ac319d2..7218310 100644 --- a/src/Infrastructure/Dependencies.cs +++ b/src/Infrastructure/Dependencies.cs @@ -14,9 +14,9 @@ public static class Dependencies public static void ConfigureServices(IConfiguration configuration, IServiceCollection services) { var useOnlyInMemoryDatabase = false; - string keyVaultUri = configuration["KEY_VAULT_ENDPOINT"]; - string catalogConnectionStringKey = configuration["AZURE-SQL-CATALOG-CONNECTION-STRING"]; - string identityConnectionStringKey = configuration["AZURE-SQL-IDENTITY-CONNECTION-STRING"]; + string keyVaultUri = configuration["AZURE_KEY_VAULT_ENDPOINT"]; + string catalogConnectionStringKey = configuration["AZURE_CATALOG_CONNECTION_STRING_KEY"]; + string identityConnectionStringKey = configuration["AZURE_IDENTITY_CONNECTION_STRING_KEY"]; string catalogConnectionStringValue = GetSqlConnectString(keyVaultUri, catalogConnectionStringKey); string identityConnectionStringValue = GetSqlConnectString(keyVaultUri, identityConnectionStringKey);