fix templatepath and image variables (#2230)

This commit is contained in:
Mikhail Timofeev
2020-12-10 13:25:37 +03:00
committed by GitHub
parent 7775dfb021
commit 52a29b9213

View File

@@ -16,10 +16,11 @@ param(
if (-not (Test-Path $TemplatePath))
{
Write-Error "'-Image' parameter is not valid. You have to specify correct image type."
Write-Error "'-TemplatePath' parameter is not valid. You have to specify correct Template Path"
exit 1
}
$Image = [io.path]::GetFileNameWithoutExtension($TemplatePath)
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()