您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

应用服务概述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. 在基于 Windows 和 Linux 的环境中,应用程序都可以轻松地运行和缩放。Applications run and scale with ease on both Windows and Linux-based environments. 对于基于 Linux 的环境,请参阅 Linux 上的应用服务For Linux-based environments, see App Service on Linux.

应用服务不仅可将 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、BitBucket、Docker 中心或 Azure 容器注册表设置持续集成和部署DevOps optimization - Set up continuous integration and deployment with Azure DevOps, GitHub, BitBucket, Docker Hub, or Azure Container Registry. 通过 测试和过渡环境提升更新。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. 在 Microsoft 全球数据中心基础结构中的任意位置托管应用,并且应用服务 SLA 承诺高可用性。Host your apps anywhere in Microsoft's global 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 Directory 或社交登录名(GoogleFacebookTwitterMicrosoft)对用户进行身份验证。Authenticate users with Azure Active Directory or with social login (Google, Facebook, Twitter, and 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. 有关如何在这些 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.