简体   繁体   中英

Can we run azure functions locally in VSCode without admin rights

Whenever I tried to debug the azure functions locally in vscode, a dialog box appears and it asks to install azure function core tools.

After installing, it throws an error as Unable to import azure.functions pylint(import-error).

When I tried to debug one more time without modifying anything, it is asking to install azure function core tools again. I don't understand why it is asking multiple times to install azure function core tools and also also why it is throwing error as could not import azure.functions. Please help on this.

I am trying the above steps as a local user. If I tried to do using admin user, it is working.

Try just type "func" in and see if it works (as local user). If that won't display the Azure Functions logo, try installing it manually with -g parameter:

npm install -g azure-functions-core-tools

I had the same problem, VSCode was trying to install Azure Functions Core Tools each time I started debugging. So installed the latest Azure Functions Core Tools using MSI installer .

  1. I uninstalled azure-functions-core-tools from npm: npm uninstall -g azure-functions-core-tools . Not sure this step is 100% needed.
  2. The latest Azure Functions Core Tools 3.x comes with MSI installer. Visual Studio Code debugging requires 64-bit version. Install the Azure Functions Core Tools

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM