通過 適用於 SAP 的 Azure Monitor 簡化了對 Azure 上 SAP 系統的性能和可用性的監視。 它從應用程式、資料庫、作系統和 Azure 資源中收集和分析指標和日誌。 客戶使用適用於 SAP 的 Azure Monitor 來可視化和排查問題、設置警報和通知,以及優化 Azure 上的 SAP 工作負載。
通過集成適用於 SAP 的 Azure Monitor 和 SAP 部署自動化框架,可以在 Azure 上更快、更輕鬆、更可靠地部署和作 SAP 系統。 可以使用自動化框架來預配和配置 SAP 系統,並使用適用於 SAP 的 Azure Monitor 來監視和優化這些 SAP 系統的性能和可用性。
通過與 Azure 上的 SAP 部署自動化框架 的這種整合,你可以通過幫助自動監視 SAP 環境的不同元件,來降低在 Azure 上運行 SAP 環境的複雜性和部署成本。
概觀
如 概述文件中所述,自動化框架有兩個主要元件:
- 部署基礎結構(控制平面,通常部署在中樞中)
- SAP 基礎架構(SAP 工作負載區域,通常部署在分支中)
可以從 SAP 部署自動化框架 (SDAF) 自動部署適用於 SAP 的 Azure Monitor (AMS) 和 提供程式 ,以簡化監視過程。 在此體系結構中,每個 工作負載區域中部署了一個 Azure Monitor for SAP 資源,它表示環境。 此資源負責監視該環境中 SAP 系統的不同元件的性能和可用性。
為了監視每個 SAP 系統的不同元件,有相應的提供程式,所有這些提供程式都部署在該環境的 Azure Monitor for SAP 資源中。 此設置允許對 SAP 系統進行高效監視和管理,因為特定系統的所有提供程式都位於同一適用於 SAP 的 Azure Monitor 資源中。 自動化框架自動執行以下步驟:
- 在工作負載區域中創建適用於 SAP 的 Azure Monitor 資源。
- 執行啟用監控所需的先決條件步驟。
- 為創建的 Azure Monitor for SAP 資源中的 SAP 佈局的每個元件創建提供程式。
備註
此自動化框架目前支援適用於 SAP 資源的 Azure Monitor 的部署自動化、用於監視 Azure VM 的 OS (Linux) 提供者 ,以及用於監視 SAP 系統中的高可用性群集的 HA Pacemaker 群集提供程式 。
在工作負載區域資源組中創建的適用於 SAP 資源的 Azure Monitor 的關鍵元件 包括:
- 適用於 SAP 資源的 Azure Monitor
- 適用於 SAP 的 Azure Monitor 中的託管資源組,其中包括:
- Azure Functions 資源
- Azure 金鑰保管庫
- Log Analytics 工作區(可選)
- 記憶體帳戶
用於 SAP 資源的 Azure Monitor 的工作負載區域配置
該示例顯示了在工作負載區域中部署適用於 SAP 的 Azure Monitor 資源所需的參數。 (可選)可以選擇使用與工作負載區域位於同一訂閱中的現有Log Analytics工作區。
#########################################################################################
# AMS Subnet variables #
#########################################################################################
# If defined these parameters control the subnet name and the subnet prefix
# ams_subnet_name is an optional parameter and should only be used if the default naming is not acceptable
# ams_subnet_name = ""
# ams_subnet_address_prefix is a mandatory parameter if the subnets are not defined in the workload or if existing subnets are not used
ams_subnet_address_prefix = "10.242.25.0/24"
# ams_subnet_arm_id is an optional parameter that if provided specifies Azure resource identifier for the existing subnet to use
#ams_subnet_arm_id = ""
# ams_subnet_nsg_name is an optional parameter and should only be used if the default naming is not acceptable for the network security group name
# ams_subnet_nsg_name = ""
# ams_subnet_nsg_arm_id is an optional parameter that if provided specifies Azure resource identifier for the existing network security group to use
# ams_subnet_nsg_arm_id = ""
#########################################################################################
# AMS instance variables #
#########################################################################################
# If defined these parameters control the ams instance (Azure monitor for SAP)
# create_ams_instance is an optional parameter, and should be set true is the AMS instance is to be created.
create_ams_instance = true
# ams_instance_name is an optional parameter and should only be used if the default naming is not acceptable
ams_instance_name = "AMS-RESOURCE"
# ams_laws_arm_id is a optional parameter to use an existing log analytics for the AMS instance
ams_laws_arm_id = "/subscriptions/0000000-000000-0000000-0000000000/resourcegroups/rg-name/providers/microsoft.operationalinsights/workspaces/workspacename"
AMS 提供程式的系統配置
以下示例顯示了在適用於 SAP 的 Azure Monitor 中自動執行提供程式先決條件和提供程式創建所需的參數。
# enable_os_monitoring is an optional parameter and should be set to true if you want to monitor the Azure VMs of your SAP system.
enable_os_monitoring = true
# enable_ha_monitoring is an optional parameter and should be set to true if you want to monitor the HA clusters of your SAP system.
enable_ha_monitoring = true