简体   繁体   English

Azure 更新管理 - 自动化 VM 载入

[英]Azure Update Management - Automated VMs onboarding

I am trying to automate VMs onboarding process for Azure Update Management.我正在尝试自动化 Azure 更新管理的 VM 载入过程。 I am wondering if it possible, I didnt find solution which I can use to full onboard VM to Update Management, from AZ.我想知道是否可能,我没有找到可用于从 AZ 将整个板载 VM 用于更新管理的解决方案。 I mean I need MMA agent installation (i have script prepared, for installing mma vm extension with workspace ID and Key).我的意思是我需要安装 MMA 代理(我准备了脚本,用于安装带有工作区 ID 和密钥的 mma vm 扩展)。 Problem is that thare I didn't find a way to perform rest of the steps.问题是我没有找到执行其余步骤的方法。 Did anyone try to do this, I know that Ms give the runbook form this but I am not sure if its working as expected, link here --> https://docs.microsoft.com/en-us/azure/automation/update-management/enable-from-runbook有没有人尝试过这样做,我知道 Ms 给了 Runbook 表格,但我不确定它是否按预期工作,请在此处链接 --> https://docs.microsoft.com/en-us/azure/automation/更新管理/从运行手册启用

You can automate it by configuring UM to automatically enable for all existing and future VMs using this method - Enable Machine in the workspace您可以通过将 UM 配置为使用此方法自动启用所有现有和未来的 VM 来实现自动化 - 在工作区中启用机器

But keep in mind that using this method doesn't allow you to have the control an enterprise customer would want.但请记住,使用此方法并不能让您拥有企业客户想要的控制权。

We don't have an out of the box method to configure from the VM, onboarding it to UM in an automated manner.我们没有开箱即用的方法来从 VM 进行配置,并以自动方式将其载入 UM。 Based on how it is designed, the only way out of the box is from the portal, or runbook as described in docs.根据它的设计方式,开箱即用的唯一方法是从门户或文档中描述的运行手册。

Programatically to work around this (and I'm thinking out loud here) you could update the saved search query - MicrosoftDefaultComputerGroup in the workspace with the UUID of the VM and that would automate onboarding it to the feature.以编程方式解决此问题(我在这里大声思考)您可以使用 VM 的 UUID 更新工作区中保存的搜索查询 - MicrosoftDefaultComputerGroup ,这将自动将其载入该功能。 I don't have a working example to share but I think the approach is sound and can be included in the workflow to onboard it.我没有可以分享的工作示例,但我认为该方法是合理的,可以包含在工作流程中以进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM