如何将网站从Azure Wep应用程序下载到本地服务器

如何将网站从Azure Wep应用程序下载到本地服务器

问题描述:

    • How can you download the website and its database to on-premises servers ,  In case i want to role back and use my on-premises servers again 
    • Website check if the connection internal or external based on IPs to use SQL authentication for external users, how can i do it on azure
    • The website use the local storage to save Documents and files like PDF , excel , word and Images , so how can i handle it on azure

    • Note:
      I would like to use PaaS 


    Azure提供了几种托管网站的方式:&nbsp ; Azure App Service WebApps ,虚拟机,Service Fabric和Cloud Services.

    Firstly, I wish to highlight that Azure offers several ways to host websites: Azure App Service WebApps, Virtual Machines, Service Fabric, and Cloud Services.

    Azure应用服务(PAAS )是大多数网络应用程序的最佳选择.部署和管理已集成到平台,站点中 可以快速扩展以处理高流量负载,并且内置的负载平衡和流量管理器可提供高可用性.

    Azure App Service (PAAS) is the best choice for most web apps. Deployment and management are integrated into the platform, sites can scale quickly to handle high traffic loads, and the built-in load balancing and traffic manager provide high availability.

    请参阅文档 有关此主题的更多详细信息,并根据您的要求,您可以选择最佳平台.
    1.在Azure App Service WebApp上,您可以只在本地下载文件/文件夹.  文件夹, 并点击 &nbold, 您将获得实时网站的全部内容.您可以使用

    Refer the documentation Azure App Service, Virtual Machines, Service Fabric, and Cloud Services comparison for more details on this topic and based on your requirement you may choose the best platform.
    1.On Azure App Service WebApp, you could just download the files/folders locally. For example, if you go to the Site folder, and click the download icon for the wwwroot folder, you will get the full contents of your live site. You could use Kudu Console for this purpose.

    2.如果您的要求适合,则可以使用托管标识来确保对SQL DB的访问.为此,您可以 看一下该教程: 使用托管身份从App Service保护Azure SQL数据库连接安全.

    2.If your requirement fits, you could use managed identify for securing access to SQL DB . To do this, you may take a look at the tutorial: Secure Azure SQL Database connection from App Service using a managed identity.

    在 它的核心应用服务是在Azure PaaS(平台即服务)基础架构上运行的服务.结果,连接"的本地驱动器被连接"到本地驱动器.虚拟机使用的驱动器类型与Azure中运行的任何辅助角色可用的驱动器类型相同. 这包括:

    3. At its core, App Service is a service running on top of the Azure PaaS (platform as a service) infrastructure. As a result, the local drives that are "attached" to a virtual machine are the same drive types available to any worker role running in Azure. This includes:

    • 操作系统驱动器(D:\驱动器)
    • 一个应用程序驱动器,其中包含App Service专用的Azure Package cspkg文件(无法访问)
    • 用户";驱动器(C:\驱动器),其大小取决于VM的大小.

    请参阅文档

    Refer the document Operating system functionality on Azure App Service for more details. Do let us know if the above helps or you need further assistance.