使用自愿性迁移工具迁移经典警报规则Use the voluntary migration tool to migrate your classic alert rules
如以前所公告的那样，Azure Monitor 中的经典警报已对公有云用户停用，但仍可有限制地用于那些尚不支持新警报的资源。As previously announced, classic alerts in Azure Monitor are retired for public cloud users, though still in limited use for resources that do not yet support the new alerts. Azure 门户中为使用经典警报规则并想要自行触发迁移的客户提供了一个迁移工具。A migration tool was available in the Azure portal to customers who used classic alert rules and who want to trigger migration themselves. 本文介绍了如何使用该迁移工具。在进一步的公告发布之前，该工具也将用于剩余的警报。This article explains how to use the that migration tool, which will also be used to remaining alerts pending further announcement.
新警报的优势Benefits of new alerts
经典警报即将被 Azure Monitor 中的全新统一警报取代。Classic alerts are being replaced by new, unified alerting in Azure Monitor. 新的警报平台具有以下优势：The new alerts platform has the following benefits:
- 可以针对更多 Azure 服务中的各种多维指标发出警报。You can alert on a variety of multidimensional metrics for many more Azure services.
- 新的指标警报支持多资源警报规则，这可以大幅减少管理多个规则所造成的开销。The new metric alerts support multi-resource alert rules that greatly reduce the overhead of managing many rules.
- 统一的通知机制，支持：The unified notification mechanism, which supports:
- 统一警报体验将针对不同信号（指标、日志和活动日志）发出的所有警报归并到一个位置。The unified alert experience brings all the alerts on different signals (metric, log, and activity log) into one place.
迁移之前Before you migrate
迁移过程会将经典警报规则转换为新的等效警报规则，并创建操作组。The migration process converts classic alert rules to new, equivalent alert rules, and creates action groups. 在准备期间，请注意以下几点：In preparation, be aware of the following points:
通知有效负载格式以及用于创建和管理新警报规则的 API 不同于经典警报规则，因为它们支持更多的功能。Both the notification payload format and the APIs to create and manage new alert rules are different from those of the classic alert rules because they support more features. 了解如何准备迁移。Learn how to prepare for the migration.
使用该工具无法迁移某些经典警报规则。Some classic alert rules cannot be migrated by using the tool. 了解无法迁移哪些规则及其解决方法。Learn which rules cannot be migrated and what to do with them.
迁移过程不会影响经典警报规则的评估。The migration process won't impact the evaluation of your classic alert rules. 在完成迁移并且新的警报规则生效之前，这些经典规则会继续运行并发送警报。They'll continue to run and send alerts until they're migrated and the new alert rules take effect.
如何使用迁移工具How to use the migration tool
若要在 Azure 门户中触发经典警报规则的迁移，请执行以下步骤：To trigger the migration of your classic alert rules in the Azure portal, follow these steps:
选择“警报”，然后选择“管理警报规则”或“查看经典警报”。Select Alerts, and then select Manage alert rules or View classic alerts.
选择“迁移到新规则”转到迁移登陆页。Select Migrate to new rules to go to the migration landing page. 此页显示所有订阅的列表及其迁移状态：This page shows a list of all your subscriptions and their migration status:
可以使用该工具迁移的所有订阅已标记为“准备好迁移”。All subscriptions that can be migrated by using the tool are marked as Ready to migrate.
迁移工具将分阶段推出到使用经典警报规则的所有订阅。The migration tool is rolling out in phases to all the subscriptions that use classic alert rules. 在推出的早期阶段，可能会看到某些订阅标记为未准备好迁移。In the early phases of the rollout, you might see some subscriptions marked as not ready for migration.
选择一个或多个订阅，然后选择“预览迁移”。Select one or more subscriptions, and then select Preview migration.
生成的页将显示每次要为一个订阅迁移的经典警报规则的详细信息。The resulting page shows the details of classic alert rules that will be migrated for one subscription at a time. 还可以选择“下载此订阅的迁移详细信息”，以获取 CSV 格式的详细信息。You can also select Download the migration details for this subscription to get the details in a CSV format.
指定用于接收迁移状态通知的一个或多个电子邮件地址。Specify one or more email addresses to be notified of migration status. 迁移完成或者需要你采取任何措施时，你会收到电子邮件。You'll receive email when the migration is complete or if any action is needed from you.
选择“开始迁移”。Select Start Migration. 阅读确认对话框中显示的信息，并确认已准备好开始迁移。Read the information shown in the confirmation dialog box and confirm that you're ready to start the migration process.
启动订阅迁移后，无法编辑或创建该订阅的经典警报规则。After you initiate migration for a subscription, you won't be able to edit or create classic alert rules for that subscription. 这种限制可以确保在迁移到新规则期间，不会丢失对经典警报规则所做的任何更改。This restriction ensures that no changes to your classic alert rules are lost during migration to the new rules. 尽管无法更改经典警报规则，但在完成迁移之前，这些规则仍会继续运行并提供警报。Although you won't be able to change your classic alert rules, they'll still continue to run and to provide alerts until they've been migrated. 完成订阅的迁移后，不再可以使用经典警报规则。After the migration is complete for your subscription, you can't use classic alert rules anymore.
迁移完成或者需要你采取措施时，前面提供的地址会收到电子邮件。When migration is complete, or if action is required from you, you'll receive an email at the addresses that you provided earlier. 也可以在门户中的迁移登陆页上定期检查状态。You can also periodically check the status at the migration landing page in the portal.
常见问题Frequently asked questions
我的订阅为何列为未准备好迁移？Why is my subscription listed as not ready for migration?
迁移工具分阶段向客户推出。The migration tool is rolling out to customers in phases. 在早期阶段，你的大部分或所有订阅可能标记为“尚未准备好迁移”。In the early phases, most or all of your subscriptions might be marked as Not ready for migration.
当某个订阅已准备好迁移时，订阅所有者会收到一封电子邮件，指出该工具可用。When a subscription becomes ready for migration, the subscription owner will receive an email message stating that the tool is available. 请密切关注此邮件。Keep an eye out for this message.
谁可以触发迁移？Who can trigger the migration?
在订阅级别拥有“监视参与者”角色的用户可以触发迁移。Users who have the Monitoring Contributor role assigned to them at the subscription level are able to trigger the migration. 详细了解迁移过程的 Azure 基于角色的访问控制。Learn more about Azure role-based access control for the migration process.
迁移需要多长时间？How long will the migration take?
大多数订阅在一小时内即可完成迁移。Migration is completed for most subscriptions in under an hour. 可以在迁移登陆页上跟踪迁移进度。You can keep track of the migration progress on the migration landing page. 在迁移期间，请确保警报仍在经典警报系统或新的系统中运行。During the migration, be assured that your alerts are still running either in the classic alerts system or in the new one.
如果在迁移期间遇到问题，该怎么办？What can I do if I run into a problem during migration?
请参阅故障排除指南来解决迁移期间可能遇到的问题。See the troubleshooting guide for help with problems you might face during migration. 如果需要你采取某种措施才能完成迁移，设置该工具时提供的电子邮件地址会收到相关的通知。If any action is needed from you to complete the migration, you'll be notified at the email addresses you provided when you set up the tool.