Skip to content

Cannot store secret with Set-Secret #32

@JonathanPitre

Description

@JonathanPitre

Hi, I'm new to SecretManagement and I'm unsure if I'm doing something wrong but I can't save a new secret in my vault.

Here's what I did.

I have installed the 1Password Cli and authenticated with my account and then I ran the following commands:

Install-Module -Name Microsoft.PowerShell.SecretManagement, SecretManagement.1Password -Force
Import-Module -Name Microsoft.PowerShell.SecretManagement, SecretManagement.1Password -Force
Register-SecretVault -Name '1Password: SecretVault' `
    -ModuleName 'SecretManagement.1Password' `
    -VaultParameters @{AccountName = 'myaccount.1password.com'; OPVault = 'SecretVault' } `
    -AllowClobber
Set-Secret -Name 'Autopilot' -Vault "1Password: SecretVault" -SecureStringSecret "MySecureString"

All commands ran without errors but when I'm trying to retrieve the secret I just saved, I get an error saying the secret was not found.

Image

Thanks in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions