Last active
March 24, 2020 08:49
-
-
Save xremix/a7c6e04358f1a6f4ec7e234329638e13 to your computer and use it in GitHub Desktop.
List all Secrets of a Key Vault
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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