We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7879fa commit c471ba1Copy full SHA for c471ba1
images/ubuntu/scripts/helpers/Common.Helpers.psm1
@@ -129,7 +129,7 @@ function Invoke-DownloadWithRetry {
129
for ($retries = 20; $retries -gt 0; $retries--) {
130
try {
131
$attemptStartTime = Get-Date
132
- (New-Object System.Net.WebClient).DownloadFile($Url, $DestinationPath)
+ Invoke-WebRequest -Uri $Url -Outfile $DestinationPath
133
$attemptSeconds = [math]::Round(($(Get-Date) - $attemptStartTime).TotalSeconds, 2)
134
Write-Host "Package downloaded in $attemptSeconds seconds"
135
break
0 commit comments