Last active
November 4, 2018 18:32
-
-
Save bdanse/0bd342c16f4cea02a5150c8226b12644 to your computer and use it in GitHub Desktop.
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
# Standard method of retrieving credentials | |
Get-AutomationPSCredential -Name Name1 | |
# Alternative method with keyvault specified | |
Get-KeyvaultPSCredential -name Name1 -VaultName mykeyvault | |
# Alternative method without keyvault specified | |
# Make sure there is an Automation variable created named PSCredentialKeyVault | |
Get-KeyvaultPSCredential -name Name1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment