Open joshuabennett-com opened 1 year ago
Get a secret that doesn't exist.
PS C:\Scripts> Get-Secret -Name 'blalba' or PS C:\Scripts> Get-Secret -Name 'blalba' -Vault "impactAutomation"
PS C:\Scripts> Get-Secret -Name 'blalba'
PS C:\Scripts> Get-Secret -Name 'blalba' -Vault "impactAutomation"
Verbose should not report success if the secret doesn't exist.
VERBOSE: Secret information was successfully retrieved from vault ImpactAutomation.
VERBOSE: Secret information was successfully retrieved from vault ImpactAutomation. Get-Secret : The secret blalba was not found. At line:1 char:1 + Get-Secret -Name 'blalba' + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Microsoft.Power...etSecretCommand:GetSecretCommand) [Get-Secret], ItemNotFoundException + FullyQualifiedErrorId : GetSecretNotFound,Microsoft.PowerShell.SecretManagement.GetSecretCommand
Name Value ---- ----- PSVersion 5.1.19041.1320 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.19041.1320 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
None
No response
Prerequisites
Steps to reproduce
Get a secret that doesn't exist.
PS C:\Scripts> Get-Secret -Name 'blalba'
orPS C:\Scripts> Get-Secret -Name 'blalba' -Vault "impactAutomation"
Expected behavior
Actual behavior
Error details
Environment data
Version
None
Visuals
No response