使用门户处理计划内维护通知Handling planned maintenance notifications using the portal

本文适用于同时运行 Linux 和 Windows 的虚拟机。This article applies to virtual machines running both Linux and Windows.

安排一次计划内维护后,就可以检查是否有受影响的虚拟机列表。Once a planned maintenance wave is scheduled, you can check for a list of virtual machines that are impacted.

可以使用 Azure 门户,并查找计划进行维护的 VM。You can use the Azure portal and look for VMs scheduled for maintenance.

  1. 登录到 Azure 门户Sign in to the Azure portal.

  2. 在左侧导航栏中,单击“虚拟机”。In the left navigation, click Virtual Machines.

  3. 在“虚拟机”窗格中,选择“编辑列”按钮以打开可用列列表。In the Virtual Machines pane, select Edit columns button to open the list of available columns.

  4. 选择并添加以下列:Select and add the following columns:

    维护状态:显示 VM 的维护状态。Maintenance status: Shows the maintenance status for the VM. 下面是可能的值:The following are the potential values:

    ValueValue 说明Description
    立即启动Start now 虚拟机处于自助维护时段内,用户可以自行启动维护。The VM is in the self-service maintenance window that lets you initiate the maintenance yourself. 请参阅以下内容,了解如何在 VM 上启动维护。See below on how to start maintenance on your VM.
    计划Scheduled 已安排虚拟机进行维护,无需用户启动维护。The VM is scheduled for maintenance with no option for you to initiate maintenance. 若要了解维护时段,可以在此视图中选择“维护 - 计划内”时段,也可以单击 VM。You can learn of the maintenance window by selecting the Maintenance - Scheduled window in this view or by clicking on the VM.
    已经更新Already updated VM 已更新,目前不需进一步操作。Your VM is already updated and no further action is required at this time.
    稍后重试Retry later 已经启动维护,但没有成功。You have initiated maintenance with no success. 可以稍后使用自助式维护选项。You will be able to use the self-service maintenance option at a later time.
    立即重试Retry now 可以重试以前未成功的自行启动的维护。You can retry a previously unsuccessful self-initiated maintenance.
    - 计划内维护流程不处理你的 VM。Your VM is not part of a planned maintenance wave.

    维护 - 自助时段:显示可以自行启动 VM 维护的时间范围。Maintenance - Self-service window: Shows the time window when you can self-start maintenance on your VMs.

    维护 - 计划时段:显示 Azure 将维护 VM 以完成维护的时间范围。Maintenance - Scheduled window: Shows the time window when Azure will maintain your VM in order to complete maintenance.

门户中的通知和警报Notification and alerts in the portal

Azure 通过向订阅所有者和共有者组发送电子邮件来传达计划维护的安排。Azure communicates a schedule for planned maintenance by sending an email to the subscription owner and co-owners group. 可以通过创建 Azure 活动日志警报,为此通信添加其他收件人和频道。You can add additional recipients and channels to this communication by creating Azure activity log alerts. 有关详细信息,请参阅创建有关服务通知的活动日志警报For more information, see Create activity log alerts on service notifications.

请确保将“事件类型”设置为“计划内维护”,将“服务”设置为“虚拟机规模集”和/或“虚拟机”。Make sure you set the Event type as Planned maintenance, and Services as Virtual Machine Scale Sets and/or Virtual Machines.

从门户启动虚拟机维护Start Maintenance on your VM from the portal

在查看虚拟机详细信息时,将能够看到更多维护相关的详细信息。While looking at the VM details, you will be able to see more maintenance-related details.
如果虚拟机包含在计划的大量维护中,则会在在虚拟机详细信息视图的顶部添加新的通知功能区。At the top of the VM details view, a new notification ribbon will be added if your VM is included in a planned maintenance wave. 此外,如有必要,可以添加一个新选项来启动维护。In addition, a new option is added to start maintenance when possible.

单击维护通知以查看维护页面,其中包含计划维护的更多详细信息。Click on the maintenance notification to see the maintenance page with more details on the planned maintenance. 可以从这里开始维护 VM。From there, you will be able to start maintenance on your VM.

开始维护后,就会进行虚拟机维护。维护状态会更新,在几分钟内反映结果。Once you start maintenance, your virtual machine will be maintained and the maintenance status will be updated to reflect the result within few minutes.

如果错过自助时段,则在 VM 将由 Azure 维护时,仍然可以看到该时段。If you missed the self-service window, you will still be able to see the window when your VM will be maintained by Azure.

后续步骤Next steps

还可以使用 Azure CLIPowerShell 处理计划内维护。You can also handle planned maintenance using the Azure CLI or PowerShell.