azure - 发布 Azure 函数

标签 azure azure-functions webdeploy

我在一个不是我自己设置的项目上使用了多个 azure 函数,当我尝试发布包含这些 azure 函数的项目来更新它们时,发布失败并出现以下错误:

Web deployment task failed. (Connected to the remote computer ("demo.scm.azurewebsites.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site.

我在哪里提供凭据?

最佳答案

以下是从 Visual Studio 发布 Azure Function 的步骤。

  1. 转到 Azure 门户
  2. 转到您的函数应用。
  3. 然后,选择“概览”并点击获取发布配置文件并保存文件。

Overview

  • 接下来,转到您的 Visual Studio 项目。
  • 右键单击您的 Azure Function 项目。
  • 选择“发布”,然后选择“导入配置文件”。
  • 最后,点击“发布”。
  • 所需的所有信息(包括您丢失的凭据)都位于该配置文件中。

    关于azure - 发布 Azure 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52441269/

    相关文章:

    cors - Azure 函数 : CORS: How to support "Access-Control-Allow-Credentials" header AND OPTIONS pre-flight?

    visual-studio - Visual Studio 2010 发布/网络部署问题

    visual-studio - 使用 Visual Studio Web 安装项目在两个不同的虚拟目录中安装两个网站

    c# - 通过带有前缀的 yaml 从 keyvault 动态获取多个 secret

    azure - 如何查找我的 Azure 服务主体需要哪些操作/权限

    python - 异步运行 Azure Durable Function

    msbuild - 如何使用 IIS 6 Web Deploy 部署到非默认虚拟路径?

    python - 如何为 Durable Azure Functions 编写单元测试?

    azure - Purview 是否支持 ADF Dataflow 内联数据集的沿袭信息?

    azure - 使用服务总线触发器横向扩展 Function App