Skip to content

Instantly share code, notes, and snippets.

@xremix
Last active March 24, 2020 08:49
Show Gist options
  • Save xremix/a7c6e04358f1a6f4ec7e234329638e13 to your computer and use it in GitHub Desktop.
Save xremix/a7c6e04358f1a6f4ec7e234329638e13 to your computer and use it in GitHub Desktop.
List all Secrets of a Key Vault
# Run & ./List-All-Secrets-Key-Vault.ps1 my-vault-name
param([string]$KeyVaultName)
$secrets = Get-AzureKeyVaultSecret -VaultName $KeyVaultName
$secrets.foreach{ Get-AzureKeyVaultSecret -VaultName $_.VaultName -Name $_.Name } | Select-Object Name,SecretValueText
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment