From df899567a01cb58faaa97c37a049888173cfa217 Mon Sep 17 00:00:00 2001 From: azurepowershell Date: Mon, 25 Mar 2024 09:08:31 +0000 Subject: [PATCH] Sync tools folder from main branch to generation branch --- tools/AzPreview/AzPreview.psd1 | 1 - .../StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv | 5 +++++ .../Exceptions/Az.Compute/ExampleIssues.csv | 8 ++++++++ .../Exceptions/Az.HdInsightOnAks/SignatureIssues.csv | 4 ++-- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv diff --git a/tools/AzPreview/AzPreview.psd1 b/tools/AzPreview/AzPreview.psd1 index 8926c1574a1d..7e4ccf46e528 100644 --- a/tools/AzPreview/AzPreview.psd1 +++ b/tools/AzPreview/AzPreview.psd1 @@ -108,7 +108,6 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.16.0'; }, @{ModuleName = 'Az.DevCenter'; RequiredVersion = '1.1.0'; }, @{ModuleName = 'Az.DeviceProvisioningServices'; RequiredVersion = '0.10.0'; }, @{ModuleName = 'Az.DeviceUpdate'; RequiredVersion = '0.1.0'; }, - @{ModuleName = 'Az.DevSpaces'; RequiredVersion = '0.7.4'; }, @{ModuleName = 'Az.DevTestLabs'; RequiredVersion = '1.0.2'; }, @{ModuleName = 'Az.DigitalTwins'; RequiredVersion = '0.2.0'; }, @{ModuleName = 'Az.DiskPool'; RequiredVersion = '0.3.0'; }, diff --git a/tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv new file mode 100644 index 000000000000..45f0bc9bdf7e --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv @@ -0,0 +1,5 @@ +"Module","Severity","ResourceType","SubResourceType","Command","Description" +"Az.Cdn","1","Microsoft.Cdn","profiles-afdEndpoints","Clear-AzFrontDoorCdnEndpointContent","Cannot find a matched parameter set for example of Clear-AzFrontDoorCdnEndpointContent" +"Az.Cdn","1","Microsoft.Cdn","profiles-endpoints-customDomains","Enable-AzCdnCustomDomainCustomHttps","Cannot find a matched parameter set for example of Enable-AzCdnCustomDomainCustomHttps" +"Az.Cdn","1","Microsoft.Cdn","profiles-endpoints","Clear-AzCdnEndpointContent","Cannot find a matched parameter set for example of Clear-AzCdnEndpointContent" +"Az.Cdn","1","Microsoft.Cdn","profiles-endpoints","Import-AzCdnEndpointContent","Cannot find a matched parameter set for example of Import-AzCdnEndpointContent" diff --git a/tools/StaticAnalysis/Exceptions/Az.Compute/ExampleIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Compute/ExampleIssues.csv index 5b80f33be562..ff610cc25743 100644 --- a/tools/StaticAnalysis/Exceptions/Az.Compute/ExampleIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.Compute/ExampleIssues.csv @@ -21,3 +21,11 @@ "Az.Compute","New-AzVM","6","3","Invalid_Cmdlet","5000","1","New-AzResourceGroup is not a valid command name.","New-AzResourceGroup -Name $resourceGroupName -Location $loc -Force","Check the spell of New-AzResourceGroup." "Az.Compute","New-AzVM","8","10","Invalid_Cmdlet","5000","1","New-AzResourceGroup is not a valid command name.","New-AzResourceGroup -Name $resourceGroupName -Location $loc -Force","Check the spell of New-AzResourceGroup." "Az.Compute","New-AzVM","9","4","Invalid_Cmdlet","5000","1","New-AzResourceGroup is not a valid command name.","New-AzResourceGroup -Name $rgname -Location $loc -Force","Check the spell of New-AzResourceGroup." +"Az.Compute","Set-AzVMBackupExtension","0","0","MissingDescription","5041","1","Description is missing.","D:\a\_work\1\s\src\Compute\Compute\help\Set-AzVMBackupExtension.md","Add Description. Remove any placeholders." +"Az.Compute","Get-AzVMDiskEncryptionStatus","1","1","Capitalization_Conventions_Violated","5101","1","Get-AzVmDiskEncryptionStatus doesn't follow the Capitalization Conventions.","Get-AzVmDiskEncryptionStatus -ResourceGroupName 'MyResourceGroup001' -VMName 'VM001'","Check the Capitalization Conventions. Suggest format: Get-AzVMDiskEncryptionStatus" +"Az.Compute","Invoke-AzVMInstallPatch","1","1","Capitalization_Conventions_Violated","5101","1","Invoke-AzVmInstallPatch doesn't follow the Capitalization Conventions.","Invoke-AzVmInstallPatch -ResourceGroupName 'MyRG' -VmName 'MyVM' -Windows -RebootSetting 'never' -MaximumDuration PT2H -ClassificationToIncludeForWindows Critical","Check the Capitalization Conventions. Suggest format: Invoke-AzVMInstallPatch" +"Az.Compute","Invoke-AzVMInstallPatch","2","2","Capitalization_Conventions_Violated","5101","1","Invoke-AzVmInstallPatch doesn't follow the Capitalization Conventions.","Invoke-AzVmInstallPatch -VM $myVM -MaximumDuration 'PT90M' -RebootSetting 'Always' -Windows -ClassificationToIncludeForWindows 'Security' -KBNumberToInclude 'KB1234567', 'KB123567' -KBNumberToExclude 'KB1234702', 'KB1234802' -ExcludeKBsRequiringReboot","Check the Capitalization Conventions. Suggest format: Invoke-AzVMInstallPatch" +"Az.Compute","New-AzVmssIpConfig","1","1","Capitalization_Conventions_Violated","5101","1","New-AzVmssIPConfig doesn't follow the Capitalization Conventions.","New-AzVmssIPConfig -Name 'ContosoVmssInterface02' -SubnetId $SubnetId","Check the Capitalization Conventions. Suggest format: New-AzVmssIpConfig" +"Az.Compute","New-AzVmssIpConfig","2","1","Capitalization_Conventions_Violated","5101","1","New-AzVmssIPConfig doesn't follow the Capitalization Conventions.","New-AzVmssIPConfig -Name 'ContosoVmssInterface03' -LoadBalancerInboundNatPoolsId $expectedLb.InboundNatPools[0].Id -LoadBalancerBackendAddressPoolsId $expectedLb.BackendAddressPools[0].Id -SubnetId $SubnetId","Check the Capitalization Conventions. Suggest format: New-AzVmssIpConfig" +"Az.Compute","New-AzVmssIpTagConfig","1","2","Capitalization_Conventions_Violated","5101","1","New-AzVmssIPConfig doesn't follow the Capitalization Conventions.","New-AzVmssIPConfig -Name 'test' -SubnetId $subnetId -IpTag $ipTag","Check the Capitalization Conventions. Suggest format: New-AzVmssIpConfig" +"Az.Compute","Set-AzVMBginfoExtension","1","1","Capitalization_Conventions_Violated","5101","1","Set-AzVMBgInfoExtension doesn't follow the Capitalization Conventions.","Set-AzVMBgInfoExtension -ResourceGroupName 'ContosoRG' -VMName 'ContosoVM' -Name 'ExtensionName' -TypeHandlerVersion '2.1' -Location 'West Europe'","Check the Capitalization Conventions. Suggest format: Set-AzVMBginfoExtension" diff --git a/tools/StaticAnalysis/Exceptions/Az.HdInsightOnAks/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.HdInsightOnAks/SignatureIssues.csv index ab0ca00c31a5..4f1f9ef43f5f 100644 --- a/tools/StaticAnalysis/Exceptions/Az.HdInsightOnAks/SignatureIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.HdInsightOnAks/SignatureIssues.csv @@ -3,5 +3,5 @@ Module,ClassName,Target,Severity,ProblemId,Description,Remediation "Az.HdInsightOnAks","New-AzHdInsightOnAksClusterPool","New-AzHdInsightOnAksClusterPool","1","8410","Parameter EnableLogAnalytics of cmdlet New-AzHdInsightOnAksClusterPool does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Az.HdInsightOnAks","Set-AzHdInsightOnAksClusterPool","Set-AzHdInsightOnAksClusterPool","1","8410","Parameter EnableLogAnalytics of cmdlet Set-AzHdInsightOnAksClusterPool does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Az.HdInsightOnAks","New-AzHdInsightOnAksFlinkJobObject","New-AzHdInsightOnAksFlinkJobObject","1","8410","Parameter EntryClass of cmdlet New-AzHdInsightOnAksFlinkJobObject does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." -"Az.HdInsightOnAks","New-AzHdInsightOnAksCluster","New-AzHdInsightOnAksCluster","1","8410","Parameter ClusterAccessProfileEnableInternalIngress of cmdlet New-AzHdInsightOnAksCluster does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."" -"Az.HdInsightOnAks","New-AzHdInsightOnAksCluster","New-AzHdInsightOnAksCluster","1","8410","Parameter JobSpecEntryClass of cmdlet New-AzHdInsightOnAksCluster does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."" +"Az.HdInsightOnAks","New-AzHdInsightOnAksCluster","New-AzHdInsightOnAksCluster","1","8410","Parameter ClusterAccessProfileEnableInternalIngress of cmdlet New-AzHdInsightOnAksCluster does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.HdInsightOnAks","New-AzHdInsightOnAksCluster","New-AzHdInsightOnAksCluster","1","8410","Parameter JobSpecEntryClass of cmdlet New-AzHdInsightOnAksCluster does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."