你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
通过 适用于 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 Key Vault
- 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