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

[Key Vault] Add Secret URI Parameter to Key Vault Secret Cmdlets #26222

Merged
merged 13 commits into from
Nov 11, 2024
Prev Previous commit
Next Next commit
Error Suppression
  • Loading branch information
notyashhh committed Oct 29, 2024
commit 9bca90d342ccc6b5eade8c8c121ffcfdeb8647ef
16 changes: 8 additions & 8 deletions tools/StaticAnalysis/Exceptions/Az.KeyVault/ExampleIssues.csv
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"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."
"Az.KeyVault","Get-AzKeyVaultSecret","9","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","Get-AzKeyVaultSecret","9","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","Get-AzKeyVaultSecret","9","8","Invalid_Cmdlet","5000","1","Get-Secret is not a valid command name.","Get-Secret -Vault AzKeyVault -Name secureSecret -AsPlainText","Check the spell of Get-Secret."
"Az.KeyVault","Set-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","Set-AzKeyVaultSecret","3","7","Invalid_Cmdlet","5000","1","Set-Secret is not a valid command name.","Set-Secret -Name secureSecret -SecureStringSecret $secure -Vault AzKeyVault","Check the spell of Set-Secret."
"Az.KeyVault","Get-AzKeyVaultSecret","12","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","Get-AzKeyVaultSecret","12","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","Get-AzKeyVaultSecret","12","8","Invalid_Cmdlet","5000","1","Get-Secret is not a valid command name.","Get-Secret -Vault AzKeyVault -Name secureSecret -AsPlainText","Check the spell of Get-Secret."
"Az.KeyVault","Remove-AzKeyVaultSecret","4","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","4","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","4","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."
"Az.KeyVault","Set-AzKeyVaultSecret","4","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","Set-AzKeyVaultSecret","4","7","Invalid_Cmdlet","5000","1","Set-Secret is not a valid command name.","Set-Secret -Name secureSecret -SecureStringSecret $secure -Vault AzKeyVault","Check the spell of Set-Secret."
Loading