azure-functions-powershell-worker: PowerShell: can't load Microsoft.PowerShell.Utility.

I have the same error as mentioned in this issue.

[Process:4688]: PS C:> The module 'Microsoft.PowerShell.Utility' could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Utility'. At line:0 char:0

[Process:4688]: PS C:> Debug-Runspace : The term 'Debug-Runspace' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

It started somewhere when I installed the latest Core Tools. I use version 2.7.1948 through Chocolatey I have .net Core SDK version 2.1, 2.2 and 3.1

I have two different VSCode environments (regular and insiders), PowerShell preview and regular, PowerShell extension preview and regular, it really doesn’t seem to matter what combination I pick.
(all of these are on the latest versions)

Also tried reinstalling .net Core SDKs and Azure Core Function tools. No luck so far.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

After extensive troubleshooting we have found no way to fix this issue, but also no way to reproduce. I have reinstalled my laptop (while keeping files) and removed all my profile-folders that start with a dot. This has fixed the issue. Thank you everyone for your time and effort. I will close this issue.

Hey @Francisco-Gamino , I’m sorry, something came up, I can’t make it today. I can make 9AM work tomorrow I have just followed you on Twitter, could you send me a private message? That way I don’t have to put my email address on the internet 😃