Unable to download azcopy using invoke-webrequest

I am unable to download azcopy from the internet using packer json.

azure-arm: invoke-webrequest : Unable to connect to the remote server
==> azure-arm: At C:\Windows\Temp\script-66fad8d8-5473-ecc0-1340-ca65622596a4.ps1:2 char:1
==> azure-arm: + invoke-webrequest -uri ‘https://aka.ms/downloadazcopy-v10-windows’ -O …
==> azure-arm: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm: + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
==> azure-arm: eption
==> azure-arm: + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand