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