Azure rendering solution deployment framework

This commit is contained in:
Rick Shahid 2023-09-13 12:52:15 -07:00
Родитель 57f2514f53
Коммит 5bb979cacf
1 изменённых файлов: 1 добавлений и 18 удалений

Просмотреть файл

@ -8,24 +8,7 @@ $binPaths = ""
$binDirectory = "C:\Users\Public\Downloads"
Set-Location -Path $binDirectory
function StartProcess ($filePath, $argumentList, $logFile) {
if ($logFile -eq $null) {
if ($argumentList -eq $null) {
Start-Process -FilePath $filePath -Wait
} else {
Start-Process -FilePath $filePath -ArgumentList $argumentList -Wait
}
} else {
if ($argumentList -eq $null) {
Start-Process -FilePath $filePath -Wait -RedirectStandardError $logFile-err.log -RedirectStandardOutput $logFile-out.log
} else {
Start-Process -FilePath $filePath -ArgumentList $argumentList -Wait -RedirectStandardError $logFile-err.log -RedirectStandardOutput $logFile-out.log
}
Get-Content -Path $logFile-err.log | Tee-Object -FilePath "$logFile.log" -Append
Get-Content -Path $logFile-out.log | Tee-Object -FilePath "$logFile.log" -Append
Remove-Item -Path $logFile-err.log, $logFile-out.log
}
}
. "C:\AzureData\functions.ps1"
Write-Host "Customize (Start): Resize OS Disk"
$osDriveLetter = "C"