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

Sync tools code from main branch to generation branch #24481

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tools/AzPreview/AzPreview.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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'; },
Expand Down
5 changes: 5 additions & 0 deletions tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 8 additions & 0 deletions tools/StaticAnalysis/Exceptions/Az.Compute/ExampleIssues.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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."