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
@@ -190,6 +192,13 @@ public class GetAzureKeyVaultSecret : KeyVaultCmdletBase
190
192
HelpMessage="Specifies whether to show the previously deleted secrets in the output.")]
191
193
publicSwitchParameterInRemovedState{get;set;}
192
194
195
+
[Parameter(Mandatory=false,ParameterSetName=BySecretNameParameterSet,HelpMessage="When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output.")]
Copy file name to clipboardExpand all lines: src/KeyVault/KeyVault/Commands/RemoveAzureKeyVaultSecret.cs
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,6 @@
22
22
23
23
namespaceMicrosoft.Azure.Commands.KeyVault
24
24
{
25
-
[GenericBreakingChange("If you have soft-delete protection enabled on this key vault, this secret will be moved to the soft deleted state. "+
26
-
"You will not be able to create a secret with the same name within this key vault until the secret has been purged from the soft-deleted state. Please see the following documentation for additional guidance. "+
These commands get the current version of a secret named ITSecret, and then displays the plain text value of that secret.
197
-
198
-
(Note: use method 3 if you are working in PowerShell [ConstrainedLanguage mode](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-7.1#constrained-language-constrained-language), for example, on secure/privileged access workstations.)
181
+
The cmdlet returns the secret as a string when `-AsPlainText` is applied.
199
182
200
183
### Example 6: Get all the secrets that have been deleted but not purged for this key vault.
201
184
```powershell
@@ -285,6 +268,21 @@ This command gets the current versions of all secrets in the key vault named Con
285
268
286
269
## PARAMETERS
287
270
271
+
### -AsPlainText
272
+
When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output.
0 commit comments