可以将Azure Functions部署到IIS吗? [英] Can Azure Functions be deployed to IIS?

查看:74
本文介绍了可以将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,则应使用

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吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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