用于Azure消费计划的Linux容器 [英] Linux container for Azure Function on Consumption plan

查看:87
本文介绍了用于Azure消费计划的Linux容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对本文中的特定行提出了一个问题:  https://zure.microsoft.com/en-us/updates/azure-functions-consumption-plan-for-linux-preview/  它显示:

I have a question about a particular line from this article: https://azure.microsoft.com/en-us/updates/azure-functions-consumption-plan-for-linux-preview/ It reads:

"这一最新增强功能可以使用按操作付费模式(消费模式)部署基于Linux操作系统构建的功能,从而实现无服务器架构想要将他们的代码资产或他们的
预构建容器带到Linux并将它们用于函数的开发人员。"

"This latest enhancement makes possible to deploy Functions built on top of Linux OS using the pay-per-execution model (consumption mode), thereby enabling serverless architectures for developers who want to bring their code assets or their pre-built containers to Linux and use them for Functions."

现在,我有没有找到关于如何使用容器在消费模式下部署功能的文档。与使用容器功能相关的所有文档都是指使用应用服务模式,而不是消费模式。这篇文章给了我错误的希望吗?
如果没有,如何在消费模式下将预建容器部署到功能?

Now, I have found no documentation on how to deploy a function in consumption mode with a container. All documentation relating to using a function with a container refers to using app service mode, not consumption mode. Did this article give me false hope? If not, how would one go about deploying a pre-built container to a function in consumption mode?

推荐答案

Azure函数允许您在无服务器的Linux环境中执行代码,而无需先创建VM或发布Web应用程序。 Linux托管需要Functions 2.0运行时。支持在无服务器消费
计划中在Linux上运行功能应用程序目前处于预览状态。

Azure Functions lets you execute your code in a serverless Linux environment without having to first create a VM or publish a web application. Linux-hosting requires the Functions 2.0 runtime. Support to run a function app on Linux in the serverless Consumption plan is currently in preview.

使用Core Tools和Azure CLI(预览)创建您在Linux上托管的第一个函数

根据
文档
,Azure Functions允许您在自己的自定义容器中托管Linux上的功能,目前消费计划不支持该容器。您必须在Linux App Service计划中托管Linux容器应用程序。

As per the document, Azure Functions lets you host your functions on Linux in your own custom container which is currently not supported on consumption plans. You have to host Linux container apps in a Linux App Service plan.

使用自定义图像在Linux上创建一个函数


这篇关于用于Azure消费计划的Linux容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆