从自动化帐户删除更新管理Remove Update Management from Automation account

使用 Azure 自动化更新管理在虚拟机上启用对更新的管理后,你可能会决定停止使用它,并从帐户和关联的 Log Analytics 工作区中删除该配置。After you enable management of updates on your virtual machines using Azure Automation Update Management, you may decide to stop using it and remove the configuration from the account and linked Log Analytics workspace. 本文介绍如何从托管 VM、自动化帐户和 Log Analytics 工作区中完全删除更新管理。This article tells you how to completely remove Update Management from the managed VMs, your Automation account, and Log Analytics workspace.

登录到 Azure 门户Sign into the Azure portal

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

删除 VM 的管理Remove management of VMs

删除更新管理之前,首先需要停止管理 VM。Before removing Update Management, you need to first stop managing your VMs. 若要从功能中取消注册 VM,请参阅从更新管理中删除 VMSee Remove VMs from Update Management to unenroll them from the feature.

删除 UpdateManagement 解决方案Remove UpdateManagement solution

你需要执行以下步骤来完全删除更新管理,然后才能取消自动化帐户与工作区的关联。Before you can unlink the Automation account from the workspace, you need to follow these steps to completely remove Update Management. 你个将从工作区中删除 Updates 解决方案。You'll remove the Updates solution from the workspace.

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

  2. 在 Azure 门户中,选择“所有服务”。In the Azure portal, select All services. 在资源列表中,键入“Log Analytics”。In the list of resources, type Log Analytics. 当你开始键入时,列表中会根据输入筛选建议。As you begin typing, the list filters suggestions based on your input. 选择“Log Analytics”。Select Log Analytics.

  3. 在 Log Analytics 工作区列表中,选择启用更新管理时所选的工作区。In your list of Log Analytics workspaces, select the workspace you chose when you enabled Update Management.

  4. 在左侧选择“解决方案”。On the left, select Solutions.

  5. 在解决方案列表中,选择“Updates (工作区名称)”。In the list of solutions, select Updates(workspace name). 在解决方案的“概述”页上选择“删除”。 On the Overview page for the solution, select Delete. 出现确认提示时,请选择“是”。When prompted to confirm, select Yes.

  1. 在 Azure 门户中选择“自动化帐户”。In the Azure portal, select Automation Accounts.

  2. 请打开自动化帐户,然后选择左侧“相关资源”下的“关联的工作区” 。Open your Automation account and select Linked workspace under Related Resources on the left.

  3. 在“取消关联工作区”页面上,单击“取消关联工作区”,然后根据提示进行响应 。On the Unlink workspace page, select Unlink workspace and respond to prompts.

    “取消链接工作区”页

当它尝试取消关联 Log Analytics 工作区时,你可在菜单中的“通知”下跟踪进度。While it attempts to unlink the Log Analytics workspace, you can track the progress under Notifications from the menu.

或者,你也可在 Log Analytics 工作区内取消该工作区与自动化帐户的关联:Alternatively, you can unlink your Log Analytics workspace from your Automation account from within the workspace:

  1. 在 Azure 门户中,选择“Log Analytics”。In the Azure portal, select Log Analytics.

  2. 在工作区中,选择“相关资源”下的“自动化帐户” 。From the workspace, select Automation Account under Related Resources.

  3. 在“自动化帐户”页上,选择“取消链接帐户”。On the Automation Account page, select Unlink account.

当它尝试取消关联自动化时,你可在菜单中的“通知”下跟踪进度。While it attempts to unlink the Automation account, you can track the progress under Notifications from the menu.

清理自动化帐户Cleanup Automation account

如果更新管理的配置支持 Azure SQL 监视功能的早期版本,则设置该功能时可能已经创建了自动化资产,你应将这些资产删除。If Update Management was configured to support earlier versions of Azure SQL monitoring, setup of the feature might have created Automation assets that you should remove. 对于更新管理,建议删除以下不再需要的项:For Update Management, you might want to remove the following items that are no longer needed:

  • 更新计划 - 每个计划都具有与所创建的更新部署匹配的名称。Update schedules - Each has a name that matches the update deployment you created.
  • 为更新管理创建的混合辅助角色组 - 每个混合辅助角色组的命名都类似于 machine1.contoso.com_9ceb8108-26c9-4051-b6b3-227600d715c8。Hybrid worker groups created for Update Management - Each is named similarly to machine1.contoso.com_9ceb8108-26c9-4051-b6b3-227600d715c8).

后续步骤Next steps

若要重新启用此功能,请参阅从自动化帐户启用更新管理从 Azure VM 启用更新管理To re-enable this feature, see Enable Update Management from an Automation account, or Enable Update Management from an Azure VM.