应用服务概述App Service overview

Azure 应用服务是用于托管 Web 应用程序、REST API 和移动后端的服务。Azure App Service is a service for hosting web applications, REST APIs, and mobile back ends. 可以使用 .NET、NET Core、Java、Ruby、Node.js、PHP 或 Python 等偏好的语言进行开发。You can develop in your favorite language, be it .NET, .NET Core, Java, Ruby, Node.js, PHP, or Python.

应用服务不仅可将 Microsoft Azure 的强大功能(例如安全性、负载均衡、自动缩放和自动管理)添加到应用程序。App Service not only adds the power of Microsoft Azure to your application, such as security, load balancing, autoscaling, and automated management. 还可以利用其 DevOps 功能,例如从 Azure DevOps、GitHub、Docker 中心和其他源持续部署,以及包管理、过渡环境、自定义域和 SSL 证书。You can also take advantage of its DevOps capabilities, such as continuous deployment from Azure DevOps, GitHub, Docker Hub, and other sources, package management, staging environments, custom domain, and SSL certificates.

使用应用服务时,需要支付 Azure 计算资源的使用费。With App Service, you pay for the Azure compute resources you use. 使用的计算资源量由运行应用的应用服务计划确定。The compute resources you use is determined by the App Service plan that you run your apps on. 有关详细信息,请参阅 Azure 应用服务计划概述For more information, see Azure App Service plans overview.

为何使用应用服务?Why use App Service?

下面是应用服务的一些主要功能:Here are some key features of App Service:

  • 多个语言和框架 - 应用服务针对 ASP.NET、ASP.NET Core、Java、Ruby、Node.js、PHP 或 Python 提供一流支持。Multiple languages and frameworks - App Service has first-class support for ASP.NET, ASP.NET Core, Java, Ruby, Node.js, PHP, or Python. 我们还能以后台服务的形式运行 PowerShell 和其他脚本或可执行文件You can also run PowerShell and other scripts or executables as background services.

  • DevOps 优化 - 使用 Azure DevOps、GitHub 设置持续集成和部署DevOps optimization - Set up continuous integration and deployment with Azure DevOps, GitHub. 通过 测试和过渡环境提升更新。Promote updates through test and staging environments. 在应用服务中,利用 Azure PowerShell跨平台命令行接口 (CLI) 来管理应用。Manage your apps in App Service by using Azure PowerShell or the cross-platform command-line interface (CLI).

  • 具有高可用性的全局缩放 - 以手动或自动方式进行增大扩大Global scale with high availability - Scale up or out manually or automatically. 在 Azure.cn 的全国数据中心基础结构中的任意位置托管应用,并且应用服务 SLA 承诺高可用性。Host your apps anywhere in Azure.cn's national datacenter infrastructure, and the App Service SLA promises high availability.

  • 安全性和合规性 - 应用服务符合 ISO、SOC 和 PCI的要求。Security and compliance - App Service is ISO, SOC, and PCI compliant. 使用 Azure Active DirectoryMicrosoft) 对用户进行身份验证。Authenticate users with Azure Active Directory or Microsoft). 创建 IP 地址限制管理服务标识Create IP address restrictions and manage service identities.

  • Visual Studio 集成 — Visual Studio 中的专用工具可简化创建、部署和调试工作。Visual Studio integration - Dedicated tools in Visual Studio streamline the work of creating, deploying, and debugging.

  • API 和移动功能 - 应用服务针对 RESTful API 方案提供统包式 CORS 支持,通过启用身份验证、脱机数据同步、推送通知等功能简化移动应用方案。API and mobile features - App Service provides turn-key CORS support for RESTful API scenarios, and simplifies mobile app scenarios by enabling authentication, offline data sync, push notifications, and more.

  • 无服务器代码 - 按需运行代码片段或脚本,无需显式预配或管理基础结构,并且只需为代码实际使用的计算时间付费(请参阅 Azure Functions)。Serverless code - Run a code snippet or script on-demand without having to explicitly provision or manage infrastructure, and pay only for the compute time your code actually uses (see Azure Functions).

除了应用服务,Azure 还提供可用来托管网站和 Web 应用程序的其他服务。Besides App Service, Azure offers other services that can be used for hosting websites and web applications. 大多数情况下,应用服务是最佳选择。For most scenarios, App Service is the best choice. 对于微服务体系结构,请考虑使用 Service FabricFor microservice architecture, consider Service Fabric. 如果需要更好地控制运行代码的 VM,请考虑使用 Azure 虚拟机If you need more control over the VMs that your code runs on, consider Azure Virtual Machines. 有关如何在这些 Azure 服务之间做出选择的详细信息,请参阅 Azure 应用服务、虚拟机、Service Fabric 和云服务的比较For more information about how to choose between these Azure services, see Azure App Service, Virtual Machines, Service Fabric, and Cloud Services comparison.

后续步骤Next steps

创建第一个 Web 应用。Create your first web app.