Receiving error, "A parameter cannot be found that matches parameter name 'AsPlainText'." when running Get-AzKeyVaultSecret for a specific version #24829
Labels
customer-reported
KeyVault
needs-author-feedback
More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
$oldVersion.Version = anAlphaNumericVersion
$oldVersionSecret = Get-AzKeyVaultSecret -VaultName vaultName -Name secretName -Version $oldVersion.Version -AsPlainText
Above PowerShell script returns the below error:
Get-AzKeyVaultSecret : A parameter cannot be found that matches parameter name 'AsPlainText'.
At line:1 char:109
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: