Skip to content

Commit f9b9fd9

Browse files
authored
Merge pull request #11734 from Azure/optional-parameter-for-createSolutionV3
Optional parameter SolutionDataFolderPath to createSolutionV3 file
2 parents 792f13a + 64503e4 commit f9b9fd9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Tools/Create-Azure-Sentinel-Solution/V3/createSolutionV3.ps1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
2+
param(
3+
[string]$SolutionDataFolderPath = $null
4+
)
5+
16
Write-Host '=======Starting Package Creation using V3 tool========='
2-
$path = Read-Host "Enter solution data file path "
7+
if ($null -eq $SolutionDataFolderPath -or $SolutionDataFolderPath -eq '') {
8+
$path = Read-Host "Enter solution data folder path "
9+
} else {
10+
$path = $SolutionDataFolderPath
11+
Write-Host "Solution Data folder path specified is : $path"
12+
}
13+
314
$defaultPackageVersion = "3.0.0" # for templateSpec this will be 2.0.0
415
Write-Host "Path $path, DefaultPackageVersion is $defaultPackageVersion"
516

0 commit comments

Comments
 (0)