Azure Stack Hub 上的 Azure App Service 和 Azure Functions 概觀Azure App Service and Azure Functions on Azure Stack Hub overview

Azure Stack Hub 上的 Azure App Service 是 Microsoft Azure 的平台即服務 (PaaS) 供應項目,提供給 Azure Stack Hub 使用。Azure App Service on Azure Stack Hub is a platform-as-a-service (PaaS) offering from Microsoft Azure available on Azure Stack Hub. 服務可讓您的內部或外部客戶為任何平臺或裝置建立 Web 和 Azure Functions 應用程式。The service enables your internal or external customers to create Web and Azure Functions apps for any platform or device. 他們可以將您的應用程式與內部部署應用程式整合,並將其商務程序自動化。They can integrate your apps with on-premises apps and automate their business processes. Azure Stack Hub 雲端操作員可以使用所選的共用 VM 資源或專用的 VM,在完全受控的虛擬機器 (VM) 上執行客戶應用程式。Azure Stack Hub cloud operators can run customer apps on fully managed virtual machines (VMs) with their choice of shared VM resources or dedicated VMs.

Azure App Service 可讓您自動執行商務程序及裝載雲端 API。Azure App Service enables you to automate business processes and host cloud APIs. Azure App Service 是單一的整合式服務,可讓您將各種元件 (例如網站、REST API 和商務程序) 組合成單一解決方案。As a single integrated service, Azure App Service lets you combine various components (like websites, REST APIs, and business processes) into a single solution.

為什麼提供 Azure Stack Hub 上的 Azure App Service?Why offer Azure App Service on Azure Stack Hub?

以下是 Azure App Service 的一些重要功能和能力︰Here are some key features and capabilities of Azure App Service:

  • 多種語言和架構:Azure App Service 提供 ASP.NET、Node.js、Java、PHP 和 Python 的一流支援。Multiple languages and frameworks: Azure App Service has first-class support for ASP.NET, Node.js, Java, PHP, and Python. 您也可以在 App Service VM 上執行 Windows PowerShell 和其他指令碼或可執行檔。You can also run Windows PowerShell and other scripts or executables on App Service VMs.
  • DevOps 最佳化:使用 GitHub、本機 Git 或 BitBucket 來設定連續整合和部署。DevOps optimization: Set up continuous integration and deployment with GitHub, local Git, or BitBucket. 透過測試和預備環境將更新升級,以及使用 Azure PowerShell 或跨平台命令列介面 (CLI),在 App Service 中管理您的應用程式。Promote updates through test and staging environments, and manage your apps in App Service by using Azure PowerShell or the cross-platform command-line interface (CLI).
  • Visual Studio 整合:Visual Studio 中的專用工具可簡化建立和部署應用程式的工作。Visual Studio integration: Dedicated tools in Visual Studio streamline the work of creating and deploying apps.

App Service 中的應用程式類型App types in App Service

App Service 提供數個「應用程式類型」,而每個類型主要裝載特定工作負載:App Service offers several app types, each of which is intended to host a specific workload:

  • 用於裝載網站、Web 應用程式和 REST Api 的Web AppsWeb Apps for hosting websites, web apps and REST APIs.
  • Azure Functions v1 用於託管活動導向的無伺服器工作負載。Azure Functions v1 for hosting event driven, serverless workloads.

「應用程式」 一詞是指專門用來執行工作負載的裝載資源。The word app refers to the hosting resources dedicated to running a workload. 以「Web 應用程式」 為例,您可能已習慣將 Web 應用程式視為可一起提供瀏覽器功能的計算資源和應用程式程式碼。Taking web app as an example, you're probably accustomed to thinking of a web app as both the compute resources and app code that together deliver functionality to a browser. 在 Azure App Service 中,Web 應用程式是 Azure Stack Hub 提供用來裝載應用程式程式碼的計算資源。In Azure App Service, a web app is the compute resource that Azure Stack Hub provides for hosting your app code.

您的應用程式可能是由多個各種不同的 App Service 應用程式所組成。Your app can be composed of multiple App Service apps of different kinds. 例如,如果您的應用程式包含 Web 前端和 REST API 後端,您可以:For example, if your app is composed of a web front end and a REST API back end, you can:

  • 將兩者 (前端和 API) 部署至單一 Web 應用程式。Deploy both (front end and API) to a single web app.

  • 將前端程式碼部署至 Web 應用程式,而將後端程式碼部暑至 API 應用程式。Deploy your front-end code to a web app and your back-end code to an API app.

    使用 App Service 監視資料的概觀App Service overview with monitoring data

什麼是 App Service 方案?What is an App Service plan?

App Service 資源提供者所使用的程式碼與 Azure App Service 使用的一樣,因此會共用一些常見概念。The App Service resource provider uses the same code that Azure App Service uses, and thus shares some common concepts. 在 App Service 中,應用程式的定價容器稱為「App Service 方案」 。In App Service, the pricing container for apps is called the App Service plan. 它代表用來保存您應用程式的專用 VM 集合。It represents the set of dedicated VMs used to hold your apps. 在指定訂用帳戶內,您可以有多個 App Service 方案。Within a given subscription, you can have multiple App Service plans.

在 Azure 中,有共用和專用背景工作。In Azure, there are shared and dedicated workers. 共用背景工作支援裝載高密度的多租用戶應用程式,而且只有一組共用背景工作。A shared worker supports high-density and multi-tenant app hosting, and there's only one set of shared workers. 專用伺服器只可供一個租用戶使用且分成三種大小:小型、中型和大型。Dedicated servers are used by only one tenant and come in three sizes: small, medium, and large. 內部部署客戶的需求永遠無法使用這些詞彙來描述。The needs of on-premises customers can't always be described by using those terms. 在 Azure Stack Hub 上的 App Service 中,資源提供者管理員可以定義他們想要提供的背景工作層。In App Service on Azure Stack Hub, resource provider admins define the worker tiers they want to make available. 您可以根據您的獨特的裝載需求,定義多組共用背景工作或不同的專用背景工作組。Based on your unique hosting needs, you can define multiple sets of shared workers or different sets of dedicated workers. 透過使用這些背景工作層定義,他們接著就能定義自己的定價 SKU。By using those worker-tier definitions, they can then define their own pricing SKUs.

入口網站功能Portal features

Azure Stack Hub 上的 Azure App Service 使用的使用者介面與 Azure App Service 使用的相同。Azure App Service on Azure Stack Hub uses the same user interface that Azure App Service uses. 後端也是如此。The same is true with the back end. 不過,某些功能已在 Azure Stack Hub 中停用。However, some features are disabled in Azure Stack Hub. Azure Stack Hub 中目前未提供那些功能所需的 Azure 特有預期或服務。The Azure-specific expectations or services that those features require aren't currently available in Azure Stack Hub.

後續步驟Next steps

您也可以嘗試其他平台即服務 (PaaS) 服務,例如 SQL Server 資源提供者MySQL 資源提供者You can also try out other platform as a service (PaaS) services, such as the SQL Server resource provider and the MySQL resource provider.