简体   繁体   English

Azure function 运行时集成不起作用

[英]Azure function runtime integration doesn't work

I work on azure synapse and I want to use an Azure function to call python code (I search to list all sheet names from excel files).我在 azure 突触上工作,我想使用 Azure function 调用 python 代码(我搜索以列出 excel 文件中的所有工作表名称)。

However I don't understand how to run an azure function, I tried to follow some tutorials but none of them is precise enough when creating and integrating the function to use it in an azure synapse pipeline thereafter.但是我不明白如何运行 azure function,我尝试按照一些教程进行操作,但是在创建和集成 function 以便随后在 azure 突触管道中使用它时,它们都不够精确。

On my side I am blocked because it is impossible to run only one of my functions because of a runtime error message:在我这边,我被阻止了,因为由于运行时错误消息,不可能只运行我的一个函数:

当我在 Azure 门户中看不到我的功能时的消息

当我继续我的功能应用程序时的消息

I tried to change the default runtime but it's been stuck on this message for last week.我试图更改默认运行时,但上周它一直停留在这条消息上。

更改默认运行时时的另一条消息

Thank you so much for your help and time!非常感谢您的帮助和时间!

Please check if the below steps helps to work around:请检查以下步骤是否有助于解决问题:

-The function runtime is unable to start.
- Unsupported runtime version: Your custom runtime version is not supported. As a result, runtime is being used.
- Cannot Upgrade with Existing Functions: Major version upgrades can introduce breaking changes to languages and bindings. When upgrading major versions of the runtime. consider a new function app and migrate your function to this new app.

1. Make Sure you set your function runtime version to correct version number. 1. 确保将 function 运行时版本设置为正确的版本号。

2. When migrating (upgrading/downgrading) the FUNCTIONS_EXTENSION_VERSION ( Functions Runtime Version ), please check the code as it breaks the logic (syntax errors) because runtime versions are specific to the programming language versions also. 2. 迁移(升级/降级) FUNCTIONS_EXTENSION_VERSIONFunctions Runtime Version )时,请检查代码,因为它破坏了逻辑(语法错误),因为运行时版本也特定于编程语言版本。

For example, Azure Functions runtime 4.0 supports the following programming language versions:例如, Azure Functions runtime 4.0 支持以下编程语言版本:

  • .NET 6.0 (in-process and isolated process) .NET 6.0(进程内和隔离进程)
  • Node.js 14 Node.js 14
  • Python 3.7, 3.8, 3.9 Python 3.7, 3.8, 3.9
  • Java 8, 11 Java 8, 11
  • PowerShell 7.0 PowerShell 7.0
  • Custom handlers自定义处理程序

Visit the Azure Functions runtime versions documentation to know what changes have to made when migrating the Functions Runtime Version .请访问Azure Functions 运行时版本文档,了解在迁移Functions Runtime Version时必须进行哪些更改。

3. As discussed regarding this kind of error in the GitHub-Azure-functions-host issues , make sure you update the supporting language environments and their SDKs along with the code validation. 3. 正如在GitHub-Azure-functions-host 问题中讨论的关于此类错误,请确保更新支持语言环境及其 SDK 以及代码验证。

4. Check the Storage account is not deleted and exists for the associated function app. 4. 检查关联的 function 应用程序的存储帐户没有被删除并且存在。


Your app is currently in the read mode because you're running from a package file.您的应用程序当前处于读取模式,因为您正在从 package 文件运行。 To make any changes update the content in your zip file and webiste_run_from_package app setting.要进行任何更改,请更新 zip 文件和 webiste_run_from_package 应用程序设置中的内容。

For the above error, please refer to one of my previous workaround SO Thread and also the below step:对于上述错误,请参考我之前的解决方法之一 SO Thread以及以下步骤:

5. While publishing/deploying the function app to the Azure, unselect/uncheck the Run from package (file) option as shown below: 5. 在将 function 应用程序发布/部署到 Azure 时,取消选择/取消选中从 package(文件)运行选项,如下所示:

在此处输入图像描述

Also there is One of my other practical workaround that shows you how to change the folder structure of the function app after publishing to the Azure Portal.还有我的其他实用解决方法之一,它向您展示了如何在发布到 Azure 门户后更改 function 应用程序的文件夹结构。

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

相关问题 Busboy 在 azure function 中不能与异步/等待一起使用 - Busboy doesn't work with async/await in azure function 无法注册 Azure 集成运行时 - Cannot register Azure Integration Runtime Azure 数据工厂 (ADF) 中的动态集成运行时 - Dynamic Integration Runtime in Azure Data Factory (ADF) Azure 通知中心不适用于企业版 - Azure Notification Hub doesn't work with enterprise release Azure Function HttpClient 没有任何响应,不断重试 - Azure Function HttpClient doesn't give any response and keeps retrying 我可以在 Azure Integration Runtime 警报中设置时间范围吗? - Can I put a time range in the Azure Integration Runtime alert? Azure Function 如果 Content-Type application/json 不响应 - Azure Function doesn't respond if Content-Type application/json Azure Purview & 自托管集成运行时 - Java 未找到错误 - Azure Purview & Self-hosted integration runtime - Java not found error 如何使用 Integration Runtime 提高 Azure 数据工厂管道的性能 - How to increase performance of Azure Data Factory Pipeline with Integration Runtime 用于 Python 的雪花连接器 - 在 Lambda 中不起作用 Function - Snowflake Connector for Python - Doesn't work in Lambda Function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM