Sitecore download url domain change

Might be old info but I realised it only today: If you are someone like me who uses PS script to download Sitecore artifacts, remember that the download url domain has changed  from https://sitecoredev.azureedge.net to https://scdp.blob.core.windows.net:

PS Script with new Download url:

#####

#####

PS Script with old Download url:

Script with old download url will throw this error:

PS C:\scia> .\SCIA-DownloadandSetupAllXP0SIFPrereqs.ps1

Downloading 'https://sitecoredev.azureedge.net/~/media/F53E9734518E47EF892AD40A333B9426.ashx' to 'C:\scia\.\Sitecore 9.0.2 rev. 180604 (WDP XP0 packages).zip'...

Invoke-WebRequest : The remote server returned an error: (308) Permanent Redirect.

At C:\scia\SCIA-DownloadandSetupAllXP0SIFPrereqs.ps1:38 char:4

+             Invoke-WebRequest -Uri $fileUrl -OutFile $filePath  -UseB ...

+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException

    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand




Comments

Popular Posts