Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{KeyVault} Fix #20468: Fix a minor typo #20469

Merged
merged 9 commits into from
Jan 3, 2023
6 changes: 3 additions & 3 deletions src/KeyVault/KeyVault/help/Remove-AzKeyVaultSecret.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Register-SecretVault -Name AzKeyVault -ModuleName Az.KeyVault -VaultParameters @
# Set secret for vault AzKeyVault
$secure = ConvertTo-SecureString -String "Password" -AsPlainText -Force
Set-Secret -Vault AzKeyVault -Name secureSecret -SecureStringSecret $secure
Remove-Secret -Vault AzKeyVault -Name secureSecret
Remove-Secret -Vault AzKeyVault -Name secureSecret
```

```output
Expand All @@ -97,12 +97,12 @@ None
This example removes a secret named `secureSecret` in azure key vault `test-kv` by command `Remove-Secret` in module `Microsoft.PowerShell.SecretManagement`.


### Example 3: Purge deleted secret from the key vault permanently
### Example 4: Purge deleted secret from the key vault permanently
```powershell
Remove-AzKeyVaultSecret -VaultName 'Contoso' -Name 'FinanceSecret' -InRemovedState
```

This command premoves the secret named FinanceSecret from the key vault named Contoso permanently.
This command removes the secret named FinanceSecret from the key vault named Contoso permanently.
Executing this cmdlet requires the 'purge' permission, which must have been previously and explicitly granted to the user for this key vault.

## PARAMETERS
Expand Down
4 changes: 4 additions & 0 deletions tools/StaticAnalysis/Exceptions/Az.KeyVault/ExampleIssues.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation"
"Az.KeyVault","Remove-AzKeyVaultSecret","3","4","Invalid_Cmdlet","5000","1","Register-SecretVault is not a valid command name.","Register-SecretVault -Name AzKeyVault -ModuleName Az.KeyVault -VaultParameters @{ AZKVaultName = 'test-kv'; SubscriptionId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' }","Check the spell of Register-SecretVault."
"Az.KeyVault","Remove-AzKeyVaultSecret","3","7","Invalid_Cmdlet","5000","1","Set-Secret is not a valid command name.","Set-Secret -Vault AzKeyVault -Name secureSecret -SecureStringSecret $secure","Check the spell of Set-Secret."
"Az.KeyVault","Remove-AzKeyVaultSecret","3","8","Invalid_Cmdlet","5000","1","Remove-Secret is not a valid command name.","Remove-Secret -Vault AzKeyVault -Name secureSecret","Check the spell of Remove-Secret."