Skip to content

Instantly share code, notes, and snippets.

@julian-wendt
Last active February 18, 2024 19:40
Show Gist options
  • Save julian-wendt/6edc6c0a9f0280e1acb7d44c1d838434 to your computer and use it in GitHub Desktop.
Save julian-wendt/6edc6c0a9f0280e1acb7d44c1d838434 to your computer and use it in GitHub Desktop.
Use Azure KeyVault to host secrets for Get-Secret
Install-Module -Name Microsoft.PowerShell.SecretManagement
Install-Module Az.KeyVault
$VaultParameters = @{
AZKVaultName = <Your-Key-Vault-Name>
SubscriptionId = <Your-SubscriptionId-Hosting-Your-Key-Vault>
}
Register-SecretVault -Module Az.KeyVault -Name 'AzKeyVault' -VaultParameters $VaultParameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment