Windows setup failures

Hello,

I'm configured a Windows 11 VM running in Parallels Desktop in on macOS.

When following the instructions on Swift.org, I encounter the following error

PS C:\Mac\Home\Documents\git\public\swiftlang\swift-build> winget install --id Microsoft.VisualStudio.2022.Community --exact --force --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22621 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64"
Failed when searching source: msstore
An unexpected error occurred while executing the command:
0x8a15005e : The server certificate did not match any of the expected values.

The following packages were found among the working sources.
Please specify one of them using the --source option to proceed.
Name                         Id                                    Source
-------------------------------------------------------------------------
Visual Studio Community 2022 Microsoft.VisualStudio.2022.Community winget

Is this an issue with my VM, the command on Windows 11, or something else?

Thanks,

Sam

I was able to workaround the issue with

winget settings --enable BypassCertificatePinningForMicrosoftStore