Skip to content

Instantly share code, notes, and snippets.

@bdanse
Last active November 4, 2018 18:32
Show Gist options
  • Save bdanse/0bd342c16f4cea02a5150c8226b12644 to your computer and use it in GitHub Desktop.
Save bdanse/0bd342c16f4cea02a5150c8226b12644 to your computer and use it in GitHub Desktop.
# 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