使用 Windows 服务器虚拟机将 Django 应用程序部署到 Azure

Deploy Django App to Azure with Windows Server VM

我有一个 VM Windows Server 2012 R2,我想用它向 Azure 部署一个 Django 应用程序。我远程连接到此 VM 并安装了 IIS。

有人可以在这里写下必须在 VM 上远程安装哪些包或功能(带步骤)以及如何连接到 Azure 吗?

要在 Windows IIS 服务器上部署 Python Django Web 应用程序,您可以参考此 blog.

根据你的评论,你想从应用服务上的 Web 应用程序访问 Azure VM 上的 Django 应用程序。您可以查看应用服务计划的 networking 功能。您可以参考这些文档:integrate your app with an Azure Virtual Network or Tutorial: integrate Functions with an Azure virtual network。 vNet 集成允许您在虚拟网络中私下访问 Azure VM 上的应用程序。

VNet Integration gives your web app access to resources in your virtual network but doesn't grant inbound private access to your web app from the virtual network. Private site access refers to making your app only accessible from a private network such as from within an Azure virtual network. VNet Integration is only for making outbound calls from your app into your VNet.

最后我找到了这个 post,它告诉了一切如何部署它: https://www.mattwoodward.com/2016/07/23/running-a-django-application-on-windows-server-2012-with-iis/