From fdfe972237029b0d153b35d93033f202304d1fbe Mon Sep 17 00:00:00 2001 From: Varun Dhand <110025628+varundhand@users.noreply.github.com> Date: Sun, 5 Nov 2023 16:44:58 +0530 Subject: [PATCH] fix: typo in Enter-AzVM.md file (#23093) * Update Enter-AzVM.md * Create ExampleIssues.csv --------- Co-authored-by: Yabo Hu --- src/Ssh/Ssh/help/Enter-AzVM.md | 2 +- tools/StaticAnalysis/Exceptions/Az.Ssh/ExampleIssues.csv | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tools/StaticAnalysis/Exceptions/Az.Ssh/ExampleIssues.csv diff --git a/src/Ssh/Ssh/help/Enter-AzVM.md b/src/Ssh/Ssh/help/Enter-AzVM.md index 039fba2731c6..354050ab8931 100644 --- a/src/Ssh/Ssh/help/Enter-AzVM.md +++ b/src/Ssh/Ssh/help/Enter-AzVM.md @@ -60,7 +60,7 @@ Enter-AzVM -ResourceGroupName myRg -Name myMachine -LocalUser azureuser -Private Enter-AzVM -ResourceGroupName myRg -Name myMachine -LocalUser azureuser -PrivateKeyFile ./id_rsa ``` -### Example 4: Connect to Local User on Azure Resource using interactive username and password authetication +### Example 4: Connect to Local User on Azure Resource using interactive username and password authentication ```powershell Enter-AzVM -ResourceGroupName myRg -Name myMachine -LocalUser azureuser diff --git a/tools/StaticAnalysis/Exceptions/Az.Ssh/ExampleIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Ssh/ExampleIssues.csv new file mode 100644 index 000000000000..61a77777cb6b --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Ssh/ExampleIssues.csv @@ -0,0 +1,9 @@ +"Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation" +"Az.Ssh","Enter-AzVM","1","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -ResourceGroupName myRg -Name myMachine","Check the spell of Enter-AzVM." +"Az.Ssh","Enter-AzVM","2","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -ResourceGroupName myRg -Name myMachine -LocalUser azureuser -PrivateKeyFile ./id_rsa -CertificateFile ./cert","Check the spell of Enter-AzVM." +"Az.Ssh","Enter-AzVM","3","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -ResourceGroupName myRg -Name myMachine -LocalUser azureuser -PrivateKeyFile ./id_rsa","Check the spell of Enter-AzVM." +"Az.Ssh","Enter-AzVM","4","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -ResourceGroupName myRg -Name myMachine -LocalUser azureuser","Check the spell of Enter-AzVM." +"Az.Ssh","Enter-AzVM","5","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -Ip 1.2.3.4","Check the spell of Enter-AzVM." +"Az.Ssh","Enter-AzVM","6","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -ResourceGroupName myRg -Name myMachine -ResourceType Microsoft.HybridCompute/machines","Check the spell of Enter-AzVM." +"Az.Ssh","Enter-AzVM","7","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -ResourceGroupName myRg -Name myMachine -PrivateKeyFile ./id_rsa -PublicKeyFile ./id_rsa.pub","Check the spell of Enter-AzVM." +"Az.Ssh","Enter-AzVM","8","1","Invalid_Cmdlet","5000","1","Enter-AzVM is not a valid command name.","Enter-AzVM -ResourceGroupName myRg -Name myMachine -LocalUser username -Rdp","Check the spell of Enter-AzVM."