Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

VIDEO – Azure Function running F5 on localhost

Wanted to share brief for creating a new Azure Function 2.0 on localhost.  Followed quick start wizard within Azure for steps.  Initially received error message pressing F5 but able to resolve by navigate down three folders and run command manually.  Root cause was local PowerShell configuration.   Updating “$profile” to remove Change Directory commands (“CD C:\CODE”) resolved the F5 error with Azure function not starting.

Thank you to @nthonyChu and @fiveisprime for help troubleshooting.   Cheers. 

shades_smile

Error

Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.

Resolution

  1. Launch PowerShell
  2. Run “notepad $profile
  3. Remove any “CD” commands with modify working directory
  4. Save and restart

Workaround (Temporary)

  1. Navigate down 3 folders with cd “bin\debug\netcoreapp2.1\”
  2. Run “func start host

Video

Screenshots

image
image
image
image
image

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲