I've launched a Microsoft Windows 2019 Datacenter edition with Containers VM and I'm trying to install ms build tools.
Installing the build is failing with "A product matching the following parameters cannot be found"
after it tries to download 'https://go.microsoft.com/fwlink/?linkid=2066144', which redirects to XML news feed 'https://vsstartpage.blob.core.windows.net/news/vs'.
I download the msbuild tool installer using the latest link from here: https://learn.microsoft.com/en-us/visualstudio/releases/2019/history:
Invoke-WebRequest -UseBasicParsing https://download.visualstudio.microsoft.com/download/pr/12210059/e64d79b40219aea618ce2fe10ebd5f0d/vs_BuildTools.exe -OutFile vs_BuildTools.exe;
Then I run the installer:
`Start-Process vs_BuildTools.exe -ArgumentList '--add', 'Microsoft.VisualStudio.Workload.MSBuildTools', '--add', 'Microsoft.VisualStudio.Workload.VCTools', '--quiet', '--norestart', '--nocache' -NoNewWindow -Wait; ``
When I check the install log I get the download error below and package not found.
[0c8c:000a][2021-07-04T04:32:26] Starting C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.windows.exe with arguments /finalizeinstall 6F320B93-EE3C-4
826-85E0-ADF79F8D4C61 "Visual Studio Installer" "Microsoft Visual Studio Installer" 2.11.13.53049 0 "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe"
[0c8c:000e][2021-07-04T04:32:26] Download requested: https://go.microsoft.com/fwlink/?linkid=2066144
[0c8c:0018][2021-07-04T04:32:26] Attempting download 'https://go.microsoft.com/fwlink/?linkid=2066144' using engine 'WebClient'
[0c8c:0004][2021-07-04T04:32:26] Warning: Shutting down the application with exit code 1
[0c8c:0004][2021-07-04T04:32:26] Warning: A product matching the following parameters cannot be found: \n \nchannelId: VisualStudio.15.Release \nproductId: Microsoft.Vi
sualStudio.Product.BuildTools
[0c8c:0001][2021-07-04T04:32:26] Releasing singleton lock.
[0c8c:0001][2021-07-04T04:32:26] Releasing singleton lock succeed.
[0c8c:0001][2021-07-04T04:32:26] Releasing singleton lock.
[0c8c:0001][2021-07-04T04:32:26] Singleton lock does not exist. Releasing singleton lock skipped.
[0c8c:0001][2021-07-04T04:32:26] Closing the installer with exit code 1
[0c8c:0001][2021-07-04T04:32:26] Exit Code: 1
[0c8c:0001][2021-07-04T04:32:26] Cleared previous session ID.
[0c8c:000a][2021-07-04T04:32:26] Finalizer completed successfully
[0c8c:0018][2021-07-04T04:32:26] Uri 'https://go.microsoft.com/fwlink/?linkid=2066144' redirected to 'https://vsstartpage.blob.core.windows.net/news/vs'
[0c8c:0018][2021-07-04T04:32:26] Download of 'https://go.microsoft.com/fwlink/?linkid=2066144' succeeded using engine 'WebClient'