Skip to content

Commit

Permalink
Parameter Rename (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Merola authored Sep 18, 2024
1 parent 91c732b commit c950db4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tools/3_wara_reports_generator.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2

Param(
[switch] $Help,
[switch] $csvExport,
[switch] $GenerateCSV,
[switch] $includeLow,
[switch] $byPassValidationStatus,
[switch] $Debugging,
Expand All @@ -62,7 +62,7 @@ https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2
Exit
}

if ($Heavy.IsPresent -or $csvExport.IsPresent) { $Global:Heavy = $true } else { $Global:Heavy = $false }
if ($Heavy.IsPresent -or $GenerateCSV.IsPresent) { $Global:Heavy = $true } else { $Global:Heavy = $false }

if ($Debugging.IsPresent) { $Global:CoreDebugging = $true } else { $Global:CoreDebugging = $false }

Expand Down Expand Up @@ -105,8 +105,8 @@ https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2
Write-Host " -WorkloadName : Optional; specifies the Name of the Workload of the analyses to be added to the PPTx and DOCx files. "
Write-Host " -PPTTemplateFile : Optional; specifies the PPTx template file to be used as source. If not specified the script will look for the file in the same path as the script. "
Write-Host " -WordTemplateFile : Optional; specifies the DOCx template file to be used as source. If not specified the script will look for the file in the same path as the script. "
Write-Host " -csvExport : Optional; when used will trigger the creation of a CSV File with the exported Impacted Resources. "
Write-Host " -includeLow : Optional; only used in with -csvExport to also include Low recommendations in the CSV File. "
Write-Host " -GenerateCSV : Optional; when used will trigger the creation of a CSV File with the exported Impacted Resources. "
Write-Host " -includeLow : Optional; only used in with -GenerateCSV to also include Low recommendations in the CSV File. "
Write-Host " -byPassValidationStatus : Optional; used to skip the High and Medium Resource Validation. "

byPassValidationStatus
Expand Down Expand Up @@ -2126,8 +2126,11 @@ https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2
'Recommendation Guid' = $Recommendation.recommendationId
'Recommendation Title' = $Recommendation.recommendationTitle
'Priority' = $Recommendation.impact
'Potential Benefits' = ''
'Description' = $Description.'Best Practices Guidance'
'Resource ID' = $Recommendation.id
'Customer-facing annotation'= ''
'Internal-facing note' = ''
}
$tmp
}
Expand Down Expand Up @@ -2227,9 +2230,9 @@ https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2
Write-Progress -Id 1 -activity "Processing Office Apps" -Status "90% Complete." -PercentComplete 90
}

if($csvExport.IsPresent)
if($GenerateCSV.IsPresent)
{
$WorkloadRecommendationTemplate = Build-SummaryActionPlan -ExcelContent $ExcelContent -ExcelRecommendations $ExcelRecommendations
$WorkloadRecommendationTemplate = Build-SummaryActionPlan -ExcelContent $ExcelContent -ExcelRecommendations $ExcelRecommendations -includeLow $includeLow

$CSVFile = ($PSScriptRoot + '\Impacted Resources and Recommendations Template ' + (get-date -Format "yyyy-MM-dd-HH-mm") + '.csv')

Expand All @@ -2253,7 +2256,7 @@ https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2
Write-Host 'Word File Saved As: ' -NoNewline
Write-Host $WordFinalFile -ForegroundColor Cyan
}
if ($csvExport.IsPresent)
if ($GenerateCSV.IsPresent)
{
Write-Host 'CSV File Saved as: ' -NoNewline
Write-Host $CSVFile -ForegroundColor Cyan
Expand Down

0 comments on commit c950db4

Please sign in to comment.