简体   繁体   English

我们可以在没有管理员权限的情况下在 VSCode 中本地运行 azure 函数吗

[英]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.每当我尝试在 vscode 中本地调试 azure 函数时,都会出现一个对话框,它要求安装 azure 函数核心工具。

After installing, it throws an error as Unable to import azure.functions pylint(import-error).安装后,它会抛出错误 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.当我尝试在不修改任何内容的情况下再次调试时,它要求再次安装 azure 函数核心工具。 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.我不明白为什么它多次要求安装 azure 函数核心工具,也不明白为什么它会抛出无法导入 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).尝试只输入“func”,看看它是否有效(作为本地用户)。 If that won't display the Azure Functions logo, try installing it manually with -g parameter:如果这不会显示 Azure Functions 徽标,请尝试使用 -g 参数手动安装它:

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.我遇到了同样的问题,每次我开始调试时,VSCode 都试图安装 Azure Functions Core Tools。 So installed the latest Azure Functions Core Tools using MSI installer .因此使用 MSI 安装程序安装了最新的 Azure Functions Core Tools。

  1. I uninstalled azure-functions-core-tools from npm: npm uninstall -g azure-functions-core-tools .我从 npm 中卸载了 azure-functions-core-tools: npm uninstall -g azure-functions-core-tools Not sure this step is 100% needed.不确定是否 100% 需要此步骤。
  2. The latest Azure Functions Core Tools 3.x comes with MSI installer.最新的 Azure Functions Core Tools 3.x 附带 MSI 安装程序。 Visual Studio Code debugging requires 64-bit version. Visual Studio Code 调试需要 64 位版本。 Install the Azure Functions Core Tools 安装 Azure Functions 核心工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我们可以使用本地 SQL Server 作为 AzureWebJobsStorage 运行容器化的 Azure Functions 吗? - Can we run containerized Azure Functions with local SQL Server as the AzureWebJobsStorage? docker-compose 在本地运行 Azure 功能 - docker-compose to run Azure Functions locally 我的Azure移动服务可以在本地运行吗? - Can my Azure Mobile Service run locally? 如何在 Mac 本地运行 Timer-triggered Azure 函数? - How to run Timer-triggered Azure Functions locally on Mac? 我无法在本地运行Azure函数核心工具 - I cannot run azure functions core tools locally 在本地开发 Azure 函数 - Developing Azure functions locally 在本地运行 Azure Functions - Running Azure Functions Locally 我们可以将 azure 函数日志保存到文件中吗? - Can we save azure functions logs to a file? 如何通过 Azure 函数在本地使用 Application Insights? - How can I use Application Insights locally with Azure Functions? 当我们为 Azure SQL 服务器定义 Active Directory Admin 时,我们可以删除 Server Admin 吗? - Can we remove Server Admin when we define Active Directory Admin for Azure SQL Server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM