Illegal character in path when running Azure function

Solution 1:

For anyone experiencing this issue I have finally found a way to fix it

Thank you so much Tsuyoshi Ushio over on medium, follow the steps below to resolve the issue seems to be when the azure function tools files get in a bad state within the %appdata%/local folder

https://medium.com/@tsuyoshiushio/visual-studio-2017-2019-fails-when-i-create-an-azure-functions-project-89e993ef31f

Solution 2:

You need to delete the following folder:

%localappdata%\AzureFunctionsTools