File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -147,12 +147,15 @@ $Marketitems|Out-GridView -Title 'Azure Marketplace Items' -PassThru|foreach{
147147 # download vhd
148148 $vhdName = $productDetails.properties.galleryItemIdentity
149149 $vhdSource = $downloadDetails.properties.osDiskImage.sourceBlobSasUri
150+ If ([string ]::IsNullOrEmpty($vhdsource )) {exit } else {
150151 $FileExists = Test-Path " $destination \$productid .vhd"
151152 If ($FileExists -eq $true ) {Remove-Item " $destination \$productid .vhd" - force} else {
152153 New-Item " $destination \$productid .vhd" }
153154 $vhdDestination = " $destination \$productid .vhd"
155+
154156 Start-BitsTransfer - source $vhdSource - destination $vhdDestination - Priority High
155157}
158+ }
156159
157160else {
158161 $a.popup (" Legal Terms not accpeted, canceling" )
You can’t perform that action at this time.
0 commit comments