应用服务概述App Service overview

Azure 应用服务是一项基于 HTTP 的服务,用于托管 Web 应用程序、REST API 和移动后端 。Azure App Service is an HTTP based 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 功能,例如包管理、过渡环境、自定义域和 SSL 证书。You can also take advantage of its DevOps capabilities, such as 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.
  • 托管生产环境 - 应用服务会自动修补并维护 OS 和语言框架Managed production environment - App Service automatically patches and maintains the OS and language frameworks for you. 将时间花在编写优秀应用上,让 Azure 来考虑平台问题。Spend time writing great apps and let Azure worry about the platform.
  • 具有高可用性的全局缩放 - 以手动或自动方式进行增大扩大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.
  • 与 SaaS 平台和本地数据建立连接 - 从适用于企业系统(例如 SAP)的 50 多个连接器、SaaS 服务(例如 Salesforce)以及 Internet 服务(例如 Facebook)中进行选择。Connections to SaaS platforms and on-premises data - Choose from more than 50 connectors for enterprise systems (such as SAP), SaaS services (such as Salesforce), and internet services (such as Facebook). 使用混合连接Azure 虚拟网络访问本地数据。Access on-premises data using Hybrid Connections and Azure Virtual Networks.
  • 安全性和合规性 - 应用服务符合 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.
  • 应用程序模板 - 从 Azure 市场的大量应用程序模板列表中进行选择,例如 WordPress、Joomla 和 Drupal。Application templates - Choose from an extensive list of application templates in the Azure Marketplace, such as WordPress, Joomla, and Drupal.
  • 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.

后续步骤Next steps

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