简体   繁体   English

从 VS2022 发布到 Azure Function 没有明显原因失败

[英]Publishing to Azure Function from VS2022 failing without apparent reason

When trying to publish to an Azure function through Visual Studio 2022, I keep getting this, regardless of what I've tried:尝试通过 Visual Studio 2022 发布到 Azure function 时,无论我尝试过什么,我都会收到此消息:

在此处输入图像描述

Here's what I've done:这是我所做的:

  1. Tried to publish from imported publish profile.试图从导入的发布配置文件发布。
  2. Tried to publish directly to the resource group / function app试过直接发布到资源组/function app
  3. Checked my Azure credentials in VS在 VS 中检查了我的 Azure 凭据
  4. Deleted function app and started a new one删除 function 应用程序并启动一个新应用程序
  5. Started a new project in VS在 VS 中开始一个新项目
  6. 4 and 5 simultaneously 4和5同时
  7. Checked VS for updates/missing files检查 VS 是否有更新/丢失的文件

I'm trying to deploy to a function app that's set to .NET 6, Consumption (serverless), on Linux. The "output log" and tmp file say nothing that helps at all.我正在尝试部署到 function 应用程序,该应用程序设置为 .NET 6,消耗(无服务器),在 Linux 上。“输出日志”和 tmp 文件没有提供任何帮助。

had this issue with an older version of VS 2022. Updating to the latest versions seemed to resolved.旧版本的 VS 2022 有此问题。更新到最新版本似乎已解决。 Also - check you're signed into your Microsoft account correctly.此外 - 检查您是否已正确登录到您的 Microsoft 帐户。 If you click the account logo top right in VS 2022, make sure there are no prompts to re-enter credentials or similar.如果您在 VS 2022 中单击右上角的帐户徽标,请确保没有提示重新输入凭据或类似内容。

So:所以:

  1. Make sure your VS 2022 is updated and确保您的 VS 2022 已更新并且
  2. Make sure you're signed in properly确保您已正确登录
  3. if you've recently made any account changes - try restarting all VS 2022 instances.如果您最近更改了任何帐户 - 尝试重新启动所有 VS 2022 实例。

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

相关问题 Azure 功能核心工具-使VS2022使用特定版本 - Azure Functions Core Tools - Make VS2022 use specific version VS2022 中的 AWS 工具包导致系统无法使用 - AWS Toolkit in VS2022 Renders System Unusable Azure Function v1 使用 VS 2022 与 Azurite 与 AzureStorageEmulator 发生冲突 - Azure Function v1 using VS 2022 Conflict with Azurite vs AzureStorageEmulator 从 Visual Studio 2022 调试 Azure Function 应用程序 - Debug Azure Function App from Visual Studio 2022 429 无明显原因超出响应率 - 429 Rate exceeded responses for no apparent reason 如何将 app.config 转换添加到 VS 2022 中的 4.8 Azure WebJob (.NET Framework)? - How to add app.config transform to a 4.8 Azure WebJob (.NET Framework) in VS 2022? Azure Function 工人与实例 - Azure Function workers vs instances 使用 Api 管理服务发布 Azure function 应用程序 -- 无法在 Azure 中更新您的 API(状态代码:BadRequest) - Publishing Azure function app with Api Management service -- Failed to update your API in Azure (Status code: BadRequest) 无法使用 Visual Studio 发布 Azure Function:禁用创建按钮 - Publishing Azure Function using Visual Studio not possible: Create button disabled 通过 Function Azure VS Code 发送 RestClient - Send RestClient through Function Azure VS Code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM