Hello McDonald, Matthew
Greetings!
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution.
Please click "Accept" the answer as original posters help the community find answers faster by identifying the correct answer.
Issue: Error using StorageSasUrl parameter in Get-AzVirtualWanVpnConfiguration command
Resolution:
The Get-AzVirtualWanVpnConfiguration
seemingly needs the SAS URL to contain the filename to be written, which is not included by default when creating the SAS in the portal nor is it specified in the cmdlet. I guess that makes sense.
I had to modify the SAS URL to add a "/" after vpnconfig and add a file name before ?sv=.
It is now $storageSasURL = "https://stewsziatesteus2001.blob.core.windows.net/vpnconfig/vpnexport.config?sv=2023-08-03&se=2025-05-19T21%3A08%3A56Z&sr=c&sp=racwdl&sig=<redactedForSecurity>"
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.