第2階段:上架 Azure 伺服器管理服務Phase 2: Onboarding Azure server management services

在您熟悉 Azure 管理服務的相關 工具規劃 之後,您就可以開始進行第二階段。After you're familiar with the tools and planning involved in Azure management services, you're ready for the second phase. 第2階段提供逐步指導方針,讓您將這些服務上線以搭配您的 Azure 資源使用。Phase 2 provides step-by-step guidance for onboarding these services for use with your Azure resources. 先評估此上執行緒序,再將它廣泛地在您的環境中採用。Start by evaluating this onboarding process before adopting it broadly in your environment.

注意

本指南的後續章節中所討論的自動化方法,適用于尚未將伺服器部署至雲端的部署。The automation approaches discussed in later sections of this guidance are meant for deployments that don't already have servers deployed to the cloud. 他們要求您必須擁有訂用帳戶的「擁有者」角色,才能建立所有必要的資源和原則。They require that you have the Owner role on a subscription to create all the required resources and policies. 如果您已經建立 Log Analytics 工作區和自動化帳戶,我們建議您在啟動範例自動化腳本時,在適當的參數中傳遞這些資源。If you've already created Log Analytics workspaces and Automation accounts, we recommend that you pass these resources in the appropriate parameters when you start the example automation scripts.

上架程式Onboarding processes

本指南的這一節涵蓋了 Azure 和內部部署伺服器中兩部虛擬機器的下列上架程式:This section of the guidance covers the following onboarding processes for both virtual machines in Azure and on-premises servers:

  • 使用入口網站在單一 VM 上啟用管理服務以進行評估。Enable management services on a single VM for evaluation by using the portal. 您可以使用此程式來熟悉 Azure 伺服器管理服務。Use this process to familiarize yourself with the Azure server management services.
  • 使用入口網站設定訂用帳戶的管理服務。Configure management services for a subscription by using the portal. 此程式可協助您設定 Azure 環境,以便任何布建的新 Vm 都會自動使用管理服務。This process helps you configure the Azure environment so that any new VMs that are provisioned will automatically use management services. 如果您偏好使用 Azure 入口網站的腳本和命令列體驗,請使用此方法。Use this approach if you prefer the Azure portal experience to scripts and command lines.
  • 使用 Azure 自動化來設定訂用帳戶的管理服務。Configure management services for a subscription by using Azure Automation. 此程式完全自動化。This process is fully automated. 只要建立訂用帳戶,腳本就會將環境設定為針對任何新布建的 VM 使用管理服務。Just create a subscription, and the scripts will configure the environment to use management services for any newly provisioned VM. 如果您熟悉 PowerShell 腳本和 Azure Resource Manager 範本,或者您想要瞭解如何使用這些範本,請使用此方法。Use this approach if you're familiar with PowerShell scripts and Azure Resource Manager templates, or if you want to learn to use them.

這兩種方法的程式不同。The procedures for each of these approaches are different.

注意

當您使用 Azure 入口網站時,進行中架步驟的順序與自動上線步驟不同。When you use the Azure portal, the sequence of onboarding steps differs from the automated onboarding steps. 入口網站提供更簡單的上線體驗。The portal offers a simpler onboarding experience.

下圖顯示管理服務的建議部署模型:The following diagram shows the recommended deployment model for management services:

建議部署模型的圖表

如上圖所示,Log Analytics 代理程式有兩個適用于內部部署伺服器的設定:As shown in the preceding diagram, the Log Analytics agent has two configurations for on-premises servers:

  • 自動註冊: 在伺服器上安裝 Log Analytics 代理程式,並設定為連線至工作區時,會自動將該工作區上所啟用的解決方案套用至伺服器。Auto-enroll: When the Log Analytics agent is installed on a server and configured to connect to a workspace, the solutions that are enabled on that workspace are applied to the server automatically.
  • 加入宣告: 即使已安裝代理程式並聯機至工作區,仍不會套用解決方案,除非將其新增至工作區中的伺服器範圍設定。Opt-in: Even if the agent is installed and connected to the workspace, the solution isn't applied unless it's added to the server's scope configuration in the workspace.

下一步Next steps

瞭解如何使用入口網站來上架單一 VM,以評估上執行緒序。Learn how to onboard a single VM by using the portal to evaluate the onboarding process.