You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set-Secret: Cannot bind parameter 'SecretValue'. Cannot convert the "SomeSecret" value of type "System.String" to type "System.Security.SecureString".
String is part of the [Microsoft.PowerShell.SecretManagement.SecretType] enum types.
There is also a distrinct -SecureStringSecret parameter so I'd expect to be able to set my secret as a string by using the -Secret instead of having to to a ConvertTo-SecureString -AsPlainText -Force first to be able to set it.
Environment data
Module version:
PSVersion 7.1.0-preview.3
PSEdition Core
GitCommitId 7.1.0-preview.3
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
Expected behavior
Secret is set in the vault
Actual behavior
String is part of the [Microsoft.PowerShell.SecretManagement.SecretType] enum types.
There is also a distrinct
-SecureStringSecretparameter so I'd expect to be able to set my secret as a string by using the-Secretinstead of having to to a ConvertTo-SecureString -AsPlainText -Force first to be able to set it.Environment data
Module version: