Skip to content

Commit

Permalink
Sync tools folder from main branch to generation branch (Azure#24832)
Browse files Browse the repository at this point in the history
Co-authored-by: azurepowershell <azurepowershell@ms.com>
  • Loading branch information
2 people authored and qinzhouxu committed Jun 5, 2024
1 parent 7468f0a commit 79c1d77
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/Gen2Master/MoveFromGeneration2Master.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Function Move-Generation2Master {
$Psd1Metadata = Import-LocalizedData -BaseDirectory "$DestPath/$ModuleName$Psd1FolderPostfix" -FileName "Az.$ModuleName.psd1"
}
else {
Copy-Template -SourceName Module.psd1 -DestPath $DestPath\$ModuleName -DestName "Az.$ModuleName.psd1" -ModuleName $ModuleName
$Psd1Metadata = Import-LocalizedData -BaseDirectory "$PSScriptRoot/Templates" -FileName "Module.psd1"
}
foreach ($submoduleDir in $submoduleDirs) {
Expand All @@ -91,7 +92,7 @@ Function Move-Generation2Master {
$sourceHelpFolder = Join-Path -Path (Join-Path -Path $SourcePath -ChildPath $submoduleDir.Name) -ChildPath "docs"
$destHelpHolder = Join-Path -Path (Join-Path -Path $DestPath -ChildPath $ModuleName) -ChildPath "help"
Write-Host "Copying help files from $sourceHelpFolder to $destHelpHolder" -ForegroundColor Yellow
Get-ChildItem -Path $sourceHelpFolder -Filter *-*.md | Copy-Item -Destination $destHelpHolder
Get-ChildItem -Path $sourceHelpFolder -Filter *.md | Copy-Item -Destination $destHelpHolder
#Region Clean Local Modules
$LocalModulesPath = Join-Path -Path (Join-Path -Path (Join-Path -Path $DestPath -ChildPath $submoduleDir.Name) -ChildPath 'generated') -ChildPath 'modules'
If (Test-Path $LocalModulesPath) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"Module","ClassName","Target","Severity","ProblemId","Description","Remediation"
"Az.Compute","Microsoft.Azure.Commands.Compute.Automation.GetAzureRmVmss","Get-AzVmss","0","2090","The ValidateNotNullOrEmpty attribute has been added to parameter 'ResourceGroupName' for cmdlet 'Get-AzVmss'.","Remove the ValidateNotNullOrEmpty attribute from parameter 'ResourceGroupName'."
"Az.Compute","Microsoft.Azure.Commands.Compute.Automation.GetAzureRmVmss","Get-AzVmss","0","2090","The ValidateNotNullOrEmpty attribute has been added to parameter 'VMScaleSetName' for cmdlet 'Get-AzVmss'.","Remove the ValidateNotNullOrEmpty attribute from parameter 'VMScaleSetName'."
Loading

0 comments on commit 79c1d77

Please sign in to comment.