Last active
February 18, 2024 19:40
-
-
Save julian-wendt/6edc6c0a9f0280e1acb7d44c1d838434 to your computer and use it in GitHub Desktop.
Use Azure KeyVault to host secrets for Get-Secret
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
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