可以将Azure Functions部署到IIS吗?

编程入门 行业动态 更新时间:2024-10-22 07:24:38
本文介绍了可以将Azure Functions部署到IIS吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在尝试Azure功能,并将其成功部署到Azure.顾名思义,Azure功能旨在部署到Azure.但是,现在我需要将这些功能部署到本地IIS. 我知道我可以改编代码,而是创建一个常规的WebAPI项目,但是想知道Azure Function项目是否可以按原样或以最小的更改部署到IIS. 在Visual Studio中,似乎没有发布到本地IIS的选项.我尝试了将选项发布到文件夹(bin/发布).我试图将这些文件部署到IIS,但似乎不起作用.

I've been trying out Azure Functions and have deployed them successfully to Azure. As their name suggests, Azure Functions are intended to be deployed to Azure. However, now I have the need to deploy those functions to local IIS. I'm aware that I can adapt the code and create a regular WebAPI project instead, but was wondering if the Azure Function project can be deployed to IIS as-is or with minimal changes. In Visual Studio there doesn't seem to be an option to publish to local IIS. I tried the option to publish to a Folder (bin/Release). I tried to deploy those files to IIS but it doesn't seem to work.

推荐答案

如果需要在自己的基础结构上运行Functions,则应使用 Azure函数运行时.

If you need to run Functions on your own infrastructure, you should use Azure Functions Runtime.

它已部署到Windows容器(而不是IIS),但将为您提供与Azure托管的功能应用类似的体验.

It is deployed to Windows Containers (not IIS), but it will give you a similar experience to Azure-hosted Function Apps.

更多推荐

可以将Azure Functions部署到IIS吗?

本文发布于:2023-11-26 00:00:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631861.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Azure   Functions   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!