From 5369d3e0fd5c0361b6d024fb09acf64b91540ced Mon Sep 17 00:00:00 2001 From: Gurpreet Singh Date: Tue, 17 Dec 2024 12:54:15 -0500 Subject: [PATCH] undo changes --- .../modules/Get-GSAExportedConfig/Get-GSAExportedConfig.psm1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GuardrailsSolutionAcceleratorSetup/modules/Get-GSAExportedConfig/Get-GSAExportedConfig.psm1 b/src/GuardrailsSolutionAcceleratorSetup/modules/Get-GSAExportedConfig/Get-GSAExportedConfig.psm1 index 3286cc9e..40cc35a9 100644 --- a/src/GuardrailsSolutionAcceleratorSetup/modules/Get-GSAExportedConfig/Get-GSAExportedConfig.psm1 +++ b/src/GuardrailsSolutionAcceleratorSetup/modules/Get-GSAExportedConfig/Get-GSAExportedConfig.psm1 @@ -45,8 +45,7 @@ Function Get-GSAExportedConfig { } try { - $configValue = Get-AzKeyVaultSecret -VaultName $KeyVaultName -Name 'gsaConfigExportLatest' -AsPlainText -ErrorAction Stop - $configValue = ConvertFrom-SecureString $configValue + [string]$configValue = Get-AzKeyVaultSecret -VaultName $KeyVaultName -Name 'gsaConfigExportLatest' -AsPlainText -ErrorAction Stop } catch { Write-Error -Message "Unable to retrieve the latest configuration from the Key Vault. Please ensure that the Key Vault exists and that the latest configuration has been exported. Message: $_" -ErrorAction Stop