Misc/Get-Secret.ps1
function Get-Secret { param( [Parameter(Mandatory = $true)] $secretName ) $settings = Import-Config try { $secret = Get-AzKeyVaultSecret -VaultName $settings.keyVault -Name $secretName Get-SecretValueText $secret } catch { [Console]::ForegroundColor = "Gray" "" } } |