From 50a1ea76f75daeb66be924eb3f04068e7d1a505c Mon Sep 17 00:00:00 2001 From: joelhulen Date: Wed, 30 Aug 2023 12:28:57 -0400 Subject: [PATCH] Update config generation --- deploy/powershell/Generate-Config.ps1 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/deploy/powershell/Generate-Config.ps1 b/deploy/powershell/Generate-Config.ps1 index 364b8e8..4d3802a 100644 --- a/deploy/powershell/Generate-Config.ps1 +++ b/deploy/powershell/Generate-Config.ps1 @@ -123,12 +123,20 @@ $publisherSettingsPath=$(./Join-Path-Recursively -pathParts $publisherSettings.S & ./Token-Replace.ps1 -inputFile $publisherSettingsTemplatePath -outputFile $publisherSettingsPath -tokens $tokens Pop-Location -$functionappSettingsTemplate="..,..,src,CoreClaims.FunctionApp,local.settings.template.json" -$functionappSettings="..,..,src,CoreClaims.FunctionApp,local.settings.json" +$webapiSettingsTemplate="..,..,src,CoreClaims.WebAPI,appsettings.Development.template.json" +$webapiSettings="..,..,src,CoreClaims.WebAPI,appsettings.Development.json" Push-Location $($MyInvocation.InvocationName | Split-Path) -$functionappSettingsTemplatePath=$(./Join-Path-Recursively -pathParts $functionappSettingsTemplate.Split(",")) -$functionappSettingsPath=$(./Join-Path-Recursively -pathParts $functionappSettings.Split(",")) -& ./Token-Replace.ps1 -inputFile $functionappSettingsTemplatePath -outputFile $functionappSettingsPath -tokens $tokens +$webapiSettingsTemplatePath=$(./Join-Path-Recursively -pathParts $webapiSettingsTemplate.Split(",")) +$webapiSettingsPath=$(./Join-Path-Recursively -pathParts $webapiSettings.Split(",")) +& ./Token-Replace.ps1 -inputFile $webapiSettingsTemplatePath -outputFile $webapiSettingsPath -tokens $tokens +Pop-Location + +$workerserviceSettingsTemplate="..,..,src,CoreClaims.WorkerService,appsettings.Development.template.json" +$workerserviceSettings="..,..,src,CoreClaims.WorkerService,appsettings.Development.json" +Push-Location $($MyInvocation.InvocationName | Split-Path) +$workerserviceSettingsTemplatePath=$(./Join-Path-Recursively -pathParts $workerserviceSettingsTemplate.Split(",")) +$workerserviceSettingsPath=$(./Join-Path-Recursively -pathParts $workerserviceSettings.Split(",")) +& ./Token-Replace.ps1 -inputFile $workerserviceSettingsTemplatePath -outputFile $workerserviceSettingsPath -tokens $tokens Pop-Location $coreClaimsDatalakeTemplate="..,..,synapse,linkedService,CoreClaimsDataLake.template.json"