Azure functionapp 发布在 'Syncing triggers...' 上失败

标签 azure azure-functions azure-functions-core-tools

我正在尝试使用 Azure Function Core Tools CLI 发布 Azure 函数。

func azure functionapp publish "<FUNCTION APP NAME>"

该过程快速完成构建和部署,但需要 2-3 分钟“同步触发器...”才会失败。

这是结果:

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.85


Getting site publishing info...
Creating archive for current directory...
Uploading 4.25 MB [###############################################################################]
Upload completed successfully.
Deployment completed successfully.
Syncing triggers...
Syncing triggers...
Syncing triggers...
Syncing triggers...
Syncing triggers...
Syncing triggers...
Error calling sync triggers (BadRequest). Request ID = '<REQUEST ID GUID>'.
func --version

3.0.3904

该函数已部署到 Azure(在门户中检查),但“获取函数 URL”按钮被禁用。

非常感谢您提供的任何帮助。

最佳答案

AzureWebJobsStorage设置在local.settings.json仍配置为 UseDevelopmentStorage=true .

我认为,当我之前使用 -i -y 发布本地设置时,这会覆盖 Azure 中的值。开关。

当我将值更新为 Azure 存储连接字符串并推送此设置后,发布就开始工作:

DefaultEndpointsProtocol=https;AccountName=<ACCOUNT NAME>;AccountKey=<ACCOUNT KEY>;EndpointSuffix=core.windows.net

关于Azure functionapp 发布在 'Syncing triggers...' 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70212651/

相关文章:

c# - 将内容流式传输为 Azure 函数输出

pandas - 在 Azure 函数上使用 Pandas 库

python - "func azure functionapp publish"返回错误代码 400

azure - 连接到 Service Fabric 应用程序终结点

Azure日志摄取TimeGenerate问题

azure - Azure Functions 与 App Insights 中的错误报告

azure - 如何将 Azure SQL 数据库中的函数应用程序列入白名单

azure - 无法调试 Azure Function - Visual Studio 2017

azure - 将 Oracle 数据近实时 ETL 传输到 Azure SQL

c# - 使用 URI 中的 api_key 查询字符串将公共(public)镜像复制到 Azure 存储