Skip to content

Commit 38ebbd4

Browse files
azure-powershell-botazurepowershell
and
azurepowershell
authored
Sync tools folder from main branch to generation branch (#24832)
Co-authored-by: azurepowershell <azurepowershell@ms.com>
1 parent d5db495 commit 38ebbd4

File tree

3 files changed

+165
-1
lines changed

3 files changed

+165
-1
lines changed

tools/Gen2Master/MoveFromGeneration2Master.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Function Move-Generation2Master {
7171
$Psd1Metadata = Import-LocalizedData -BaseDirectory "$DestPath/$ModuleName$Psd1FolderPostfix" -FileName "Az.$ModuleName.psd1"
7272
}
7373
else {
74+
Copy-Template -SourceName Module.psd1 -DestPath $DestPath\$ModuleName -DestName "Az.$ModuleName.psd1" -ModuleName $ModuleName
7475
$Psd1Metadata = Import-LocalizedData -BaseDirectory "$PSScriptRoot/Templates" -FileName "Module.psd1"
7576
}
7677
foreach ($submoduleDir in $submoduleDirs) {
@@ -91,7 +92,7 @@ Function Move-Generation2Master {
9192
$sourceHelpFolder = Join-Path -Path (Join-Path -Path $SourcePath -ChildPath $submoduleDir.Name) -ChildPath "docs"
9293
$destHelpHolder = Join-Path -Path (Join-Path -Path $DestPath -ChildPath $ModuleName) -ChildPath "help"
9394
Write-Host "Copying help files from $sourceHelpFolder to $destHelpHolder" -ForegroundColor Yellow
94-
Get-ChildItem -Path $sourceHelpFolder -Filter *-*.md | Copy-Item -Destination $destHelpHolder
95+
Get-ChildItem -Path $sourceHelpFolder -Filter *.md | Copy-Item -Destination $destHelpHolder
9596
#Region Clean Local Modules
9697
$LocalModulesPath = Join-Path -Path (Join-Path -Path (Join-Path -Path $DestPath -ChildPath $submoduleDir.Name) -ChildPath 'generated') -ChildPath 'modules'
9798
If (Test-Path $LocalModulesPath) {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"Module","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"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'."
3+
"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'."

0 commit comments

Comments
 (0)