从连接监视器(经典版)迁移到连接监视器Migrate to Connection Monitor from Connection Monitor (Classic)

重要

自 2021 年 7 月 1 日起,你将无法在连接监视器(经典版)中添加新的连接监视器,但可以继续使用在 2021 年 7 月 1 日之前创建的现有连接监视器。Starting 1 July 2021, you will not be able to add new connection monitors in Connection Monitor (classic) but you can continue to use existing connection monitors created prior to 1 July 2021. 为了最大程度地减少当前工作负载的服务中断,请于 2024 年 2 月 29 日之前,在 Azure 网络观察程序中从连接监视器(经典版)迁移到新连接监视器To minimize service disruption to your current workloads, migrate from Connection Monitor (classic) to the new Connection Monitor in Azure Network Watcher before 29 February 2024.

只需点击几下鼠标,就能将现有连接监视器迁移到经过改进的新连接监视器,并且无需停机。You can migrate existing connection monitors to new, improved Connection Monitor with only a few clicks and with zero downtime. 要了解有关这些优势的详细信息,请参阅连接监视器To learn more about the benefits, see Connection Monitor.

需要注意的要点Key points to note

迁移将有助于生成以下结果:The migration helps produce the following results:

  • 代理和防火墙设置按原样工作。Agents and firewall settings work as is. 不需要进行任何更改。No changes are required.
  • 现有的连接监视器已映射到“连接监视器”>“测试组”>“测试格式”。Existing connection monitors are mapped to Connection Monitor > Test Group > Test format. 通过选择“编辑”,可以查看和修改新连接监视器的属性,下载模板以对连接监视器进行更改,然后通过 Azure 资源管理器提交。By selecting Edit, you can view and modify the properties of the new Connection Monitor, download a template to make changes to Connection Monitor, and submit it via Azure Resource Manager.
  • 具有网络观察程序扩展的 Azure 虚拟机将数据发送到工作区和指标。Azure virtual machines with the Network Watcher extension send data to both the workspace and the metrics. 连接监视器通过新指标(ChecksFailedPercent 和 RoundTripTimeMs)而不是旧指标(ProbesFailedPercent 和 AverageRoundtripMs)提供数据。Connection Monitor makes the data available through the new metrics (ChecksFailedPercent and RoundTripTimeMs) instead of the old metrics (ProbesFailedPercent and AverageRoundtripMs). 旧指标将迁移到新指标,如 > ProbesFailedPercent -> ChecksFailedPercent 和 AverageRoundtripMs -> RoundTripTimeMs。The old metrics will get migrated to new metrics as ProbesFailedPercent -> ChecksFailedPercent and AverageRoundtripMs -> RoundTripTimeMs.
  • 数据监视:Data monitoring:
    • 警报:自动迁移到新指标。Alerts: Migrated automatically to the new metrics.
    • 仪表板和集成:需要手动编辑指标集。Dashboards and integrations: Require manually editing of the metrics set.

先决条件Prerequisites

如果使用自定义工作区,请确保在订阅中和 Log Analytics 工作区的区域中启用了网络观察程序。If you're using a custom workspace, ensure that Network Watcher is enabled in your subscription and in the region of your Log Analytics workspace.

迁移连接监视器Migrate the connection monitors

  1. 要将旧连接监视器迁移到新连接监视器,请选择“连接监视器”,然后选择“迁移连接监视器” 。To migrate the older connection monitors to the newer one, select Connection Monitor, and then select Migrate Connection Monitors.

    屏幕截图显示了如何从连接监视器迁移到连接监视器。

  2. 选择你的订阅和要迁移的连接监视器,然后选择“迁移所选内容”。Select your subscription and the connection monitors you want to migrate, and then select Migrate selected.

只需点击几下,就可以将现有的连接监视器迁移到连接监视器。With only a few clicks, you've migrated the existing connection monitors to Connection Monitor. 一旦从 CM(经典)迁移到 CM,你将无法查看 CM(经典)下的监视器Once migrated from CM (Classic) to CM, you will not be able to see the monitor under CM (Classic)

现在,可以自定义连接监视器属性、更改默认工作区、下载模板并检查迁移状态。You can now customize Connection Monitor properties, change the default workspace, download templates, and check the migration status.

迁移开始后,将进行以下更改:After the migration begins, the following changes take place:

  • Azure 资源管理器资源会更改为新的连接监视器。The Azure Resource Manager resource changes to the newer connection monitor.
    • 连接监视器的名称、区域和订阅保持不变。The name, region, and subscription of the connection monitor remain unchanged. 资源 ID 不受影响。The resource ID is unaffected.
    • 除非自定义连接监视器,否则将在订阅和连接监视器的区域中创建默认 Log Analytics 工作区。Unless the connection monitor is customized, a default Log Analytics workspace is created in the subscription and in the region of the connection monitor. 此工作区是监视数据的存储位置。This workspace is where monitoring data is stored. 测试结果数据也存储在指标中。The test result data is also stored in the metrics.
    • 每个测试都将迁移到名为 defaultTestGroup 的测试组。Each test is migrated to a test group called defaultTestGroup.
    • 新测试组中创建并使用了源终结点和目标终结点。Source and destination endpoints are created and used in the new test group. 默认名称是 defaultSourceEndpoint 和 defaultDestinationEndpoint 。The default names are defaultSourceEndpoint and defaultDestinationEndpoint.
    • 目标端口和探测间隔已移至名为 defaultTestConfiguration 的测试配置。The destination port and probing interval are moved to a test configuration called defaultTestConfiguration. 协议基于端口值设置。The protocol is set based on the port values. 成功阈值和其他可选属性将留空。Success thresholds and other optional properties are left blank.
  • 指标警报已迁移到连接监视器指标警报。Metrics alerts are migrated to Connection Monitor metrics alerts. 指标不同,因此有所变化。The metrics are different, hence the change. 有关详细信息,请参阅使用连接监视器进行网络连接监视For more information, see Network connectivity monitoring with Connection Monitor.
  • 已迁移的连接监视器不再显示为旧的连接监视器解决方案。The migrated connection monitors are no longer displayed as the older connection monitor solution. 它们现在仅可用于连接监视器。They're now available for use only in Connection Monitor.
  • 必须手动迁移所有外部集成,例如 Power BI 和 Grafana 中的面板,以及与安全信息和事件管理 (SIEM) 系统的集成。Any external integrations, such as dashboards in Power BI and Grafana, and integrations with Security Information and Event Management (SIEM) systems, must be migrated manually. 这是迁移安装程序所需执行的唯一手动步骤。This is the only manual step you need to perform to migrate your setup.

后续步骤Next steps

若要详细了解连接监视器,请参阅:To learn more about Connection Monitor, see: