When setting up Hyper-V exports to a path with a folder containing a apostrophe it will fail with the below error. This character in the folder path name is not accepted as a valid character when naming your Virtual Export target location.
Example stack trace error received:
Exception chain:
• The string is missing the terminator: '.
• The remote HyperV operation has failed
• Call to service method http://10.9.75.4:8010/apprecovery/api/hypervagent/hypervagent/b1994e6f-8226-478a-bf44-1541263e9330/disks/E%253a~|~VM%2527s~|~BRDC02~|~disk0.vhdx/Ide PUT failed: The remote HyperV operation has failed
• The operation with VHD virtual disk failed
• One or more errors occurred.
Replay.Common.Contracts.Virtualization.HyperVException: The operation with VHD virtual disk failed ---> WCFClientBase.ClientServerErrorException: Call to service method http://10.9.75.4:8010/apprecovery/api/hypervagent/hypervagent/b1994e6f-8226-478a-bf44-1541263e9330/disks/E%253a~|~VM%2527s~|~BRDC02~|~disk0.vhdx/Ide PUT failed: The remote HyperV operation has failed ---> Replay.Common.Contracts.Virtualization.RemoteHyperVException: The remote HyperV operation has failed ---> System.Management.Automation.IncompleteParseException: The string is missing the terminator: '.
Export path cannot have apostrophe in the folder name - location.
Example:
SOLUTION: