-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Receiving execution policy error with Azure Functions Core Tools (2) #52772
Comments
Actually, the package v3 exists on choco but is currently unmoderated. Please retrieve the version number from https://chocolatey.org/packages/azure-functions-core-tools-3 Please update the azure docs with the correct method to use (even if there is a temporary method to use). Thank you, |
@usgvja Apologies for the experience but looks like this is an issue that cascades up to Since the issue seems to be specific to the powershell script, I believe changing the default shell in VS Code to CMD should do the trick, though I haven't tried this out. As for the official v3 version of the core tools in chocolatey, there is another issue that tracks this - Azure/azure-functions-core-tools#1859 Another workaround in the meantime could be to manually install the CLI by downloading the latest version from its GitHub Releases Page. And while I believe not official maintained, the main bucket for |
@usgvja Just following up here... Hope my previous comment clears things up. |
Hi, thank you for your comment and reminder. This proposal did not do the trick:
These options actually didn't work neither:
This option worked:
As you have said I guess the problem comes from the npm package (and not from the fact you use CMD or Powershell, even if I have not tested all the combinations). |
@usgvja Thanks for confirming that! Once the issue linked is fixed, I believe it should work as expected. I had thought the CMD solution should work since I see that calling And yes, the fix in The issues linked in my previous comment are better places to track this and since there is no doc update required here, we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue. |
Hi,
Same issue as #41771
following https://docs.microsoft.com/bs-latn-ba/azure/azure-functions/functions-create-first-function-vs-code?view=azurermps-4.2.0&pivots=programming-language-python from scratch.
The doc doesn't work from this step
Visual Studio Code installs automatically func core and I get the same issue.
"func : Impossible de charger le fichier C:\Users\USER\AppData\Roaming\npm\func.ps1. Le fichier
C:\Users\USER\AppData\Roaming\npm\func.ps1 n’est pas signé numériquement. Vous ne pouvez pas exécuter ce script sur le système actuel. Pour plus d’informations sur l’exécution de scripts et la définition de stratégies d’exécution, voir la rubrique about_Execution_Policies à l’adresse https://go.microsoft.com/fwlink/?LinkID=135170"
As suggested by @1scscott it is possible to npm uninstall the package from the terminal but not possible to install the V3 package with choco since this version doesnt exists https://chocolatey.org/packages?q=functions+core+tools&moderatorQueue=&moderationStatus=all-statuses&prerelease=true&sortOrder=relevance
I think you can update the doc if you have a workaround or update your packages if it solves the issue.
Thank you, best regards
JA
Originally posted by @KetanChawda-MSFT in #41771 (comment)
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: