如何将 Azure 应用程序迁移到 IIS?

发布于 2024-10-10 21:57:54 字数 80 浏览 6 评论 0原文

我有一个网络角色,想暂时托管在 IIS 中。

考虑到我仍然希望 IIS 站点的 Azure 存储功能仍然有效,有谁知道这有多复杂?

I have a webrole I'd like to host in IIS for the time being.

Does anyone know how involved this is, considering that I still want Azure Storage functions of the IIS site to still work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

用心笑 2024-10-17 21:57:54

Azure 存储(表、blob、队列)仅在云中的实际 Windows Azure 环境中运行。有一个在本地 SQL Server 数据库上运行传真的模拟开发环境,但这仅用于开发目的,不能用于运行实际站点。

理论上,您可以在本地运行 Web 应用程序并通过 Internet 连接到 Azure 存储(例如,通过使用 REST api),但对于任何交互式站点来说,延迟几乎肯定会太高。

因此,如果您希望能够在自己的 IIS 环境中本地运行站点,则需要删除所有特定的 Azure 平台依赖项并构建非 Azure 替代方案。对于 Azure 存储,您可以使用关系数据库(SQL Server、mySQL)或查看 nosql/文档数据库。

Azure Storage (tables, blobs, queues) only run on the actual Windows Azure environment in the cloud. There is a simulated development environment that runs a facsimile on a local SQL Server database, but that is only meant for development purposes and cannot be used for running an actual site.

Theoretically, you could run your webapp locally and connect to Azure Storage over the internet (e.g. by using the REST api), but latency would almost certainly be too high for any interactive site.

So, if you want to be able to run your site on premise on your own IIS environment, you will need to remove all the specific Azure platform dependencies and build in non-Azure alternatives. For Azure Storage, you could either do a relational database (SQL Server, mySQL) or look at a nosql/document database.

穿透光 2024-10-17 21:57:54

如果您想将其移至 IIS,那么 tijmedvdk 的答案是正确的。

如果您的目标是在数据中心运行它,那么您应该考虑 Azure Appliance http://www.microsoft .com/windowsazure/appliance/ 这允许您在本地运行 Azure 应用程序,而无需进行任何更改。

If you want to move it to IIS then tijmedvdk's answer is correct.

If your goal is to run it in your data center then you should consider Azure Appliance http://www.microsoft.com/windowsazure/appliance/ this allows you to run Azure applications on premise, without making any changes.

Hello爱情风 2024-10-17 21:57:54

这个答案似乎具有误导性。 Windows Azure 是一个提供多种服务的平台,您可以从要使用的服务中进行选择。
本质上,Windows Azure 只是一个虚拟机
*Windows Server 2008 R2
*IIS 7.5

如果您当前在 Azure 中托管一个应用程序并且希望将其托管在 IIS 中,那么也可以,我认为那里没有太大问题。
如果您使用存储,唯一的问题可能是存储帐户设置位于 WebRole 或服务配置文件中,但您可以更改应用程序逻辑以从其他配置文件中获取适当的设置。
我创建了 Windows 桌面应用程序,出于多种原因使用 Azure 存储,我也认为这是云计算的一大优势。

This answers seems misleading. Windows Azure is a platform that provides several services and you can choose from the services that you want to use.
In essence a Windows Azure is just a Virtual Machine with
*Windows Server 2008 R2
*IIS 7.5

So can if you have an application that you are currently hosting in Azure and you want to host it in IIS I don't see much of a problem there.
If you are using Storage, the only problem might be that the Storage account settings were in the WebRole or Service configuration files, but you can change your app logic to take the appropiate settings from other config files.
I have created Windows Desktop applications that for several reasons use Azure Storage and i also think of that as a great advantage of cloud computing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文