从“更新管理”中删除 VMRemove VMs from Update Management

完成对环境中 VM 的更新管理后,可以停止通过更新管理功能管理 VM。When you're finished managing updates on your VMs in your environment, you can stop managing VMs with the Update Management feature. 若要停止管理 VM,需在关联到自动化帐户的 Log Analytics 工作区中编辑已保存的搜索查询 MicrosoftDefaultComputerGroupTo stop managing them, you will edit the saved search query MicrosoftDefaultComputerGroup in your Log Analytics workspace that is linked to your Automation account.

登录到 Azure 门户Sign into the Azure portal

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

删除 VMTo remove your VMs

  1. 使用以下命令识别希望从管理中删除的计算机的 UUID。Use the following command to identify the UUID of a machine that you want to remove from management.

    az vm show -g MyResourceGroup -n MyVm -d
    
  2. 在 Azure 门户中,导航到 Log Analytics 工作区。In the Azure portal, navigate to Log Analytics workspaces. 从列表中选择你的工作区。Select your workspace from the list.

  3. 在 Log Analytics 工作区中,选择“日志”,然后从顶部的操作菜单中选择“查询资源管理器”。In your Log Analytics workspace, select Logs and then and choose Query explorer from the top actions menu.

  4. 从右侧窗格中的查询资源管理器展开“已保存的查询\更新”,然后选择已保存的搜索查询 MicrosoftDefaultComputerGroup 进行编辑。From Query explorer in the right-hand pane, expand Saved Queries\Updates and select the saved search query MicrosoftDefaultComputerGroup to edit it.

  5. 在查询编辑器中,查看该查询并找到 VM 的 UUID。In the query editor, review the query and find the UUID for the VM. 删除 VM 的 UUID,并对要删除的任何其他 VM 重复这些步骤。Remove the UUID for the VM and repeat the steps for any other VMs you want to remove.

  6. 完成编辑操作后,通过从顶部栏中选择“保存”来保存搜索。Save the saved search when you're finished editing it by selecting Save from the top bar.

备注

取消注册后,系统仍会显示这些计算机,因为我们会报告在过去 24 小时内评估的所有计算机。Machines are still shown after you have unenrolled them because we report on all machines assessed in the last 24 hours. 删除计算机后,需要等待 24 小时,系统才不会再次列出这些计算机。After removing the machine, you need to wait 24 hours before they are no longer listed.

后续步骤Next steps

若要重新启用对虚拟机的管理,请参阅从 Azure VM 启用更新管理To re-enable managing your virtual machine, see Enable Update Management from an Azure VM.