Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

func.ps1 is not digitally signed. You cannot run this script on the current system. #1888

Closed
hdd42 opened this issue Feb 12, 2020 · 1 comment
Labels

Comments

@hdd42
Copy link

hdd42 commented Feb 12, 2020

Hi, I'm trying to run/test my function locally through vs code. I've installed azure function core tools@3 via npm the function I'm trying to test is a timer function.

Both hitting F5 to start debug mode or func host start from terminal failing and getting this error :

func.ps1 cannot be loaded. The file C:\Program Files\nodejs\func.ps1 is not
digitally signed. You cannot run this script on the current system.

looks like it complains about PowerShells Execution_Policies . I've removed azure function core tools and re-install it via choco install azure-functions-core-tools and host is starting without any problems. (since choco is modifying PowerShells Execution_Policies that works. )

I was wondering is there any way to fix this issue without choco (or not modifying PowerShells Execution_Policies) because per company policy I'm not allow to change PowerShells Execution_Policies

Windows 10,
VS Code
1.42.0 ,
Node 12.4

Thanks.

@ejizba
Copy link
Member

ejizba commented Feb 12, 2020

Moved to Azure/azure-functions-core-tools#1821

Also related to #1678

@ejizba ejizba closed this as completed Feb 12, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants