question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[VM] Ability to query/manipulate `Update Management`?

See original GitHub issue

Azure VMs have a preview feature called “Update Management”. This feature offers built-in update management (i.e. Windows Update, apt, etc).

Enabling the feature prompts for a log analytics workspace and an Automation account. Presumably, the automation account is where update management scheduling actually happens.

Is Update Management component query-able via az cli? (I wasn’t able to find it if so, under az vm) Are Azure Automation accounts manageable via az cli?

My goal:

  • Identify Update Management status for a VM.
    (i.e. az vm updatemgmt show -n "MyVM")
  • Secondary Goal: Enable Update Management for a VM
    (i.e. az vm updatemgmt status -n "MyVM" -value enable)
  • Stretch goal: Have a policy that audits VMs and shoots off an email indicating which machines don’t have update management enabled. (side note: Surprised this isn’t a default available policy definition that ships in Azure - is there a board where can post secondary inquiry on this?)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sbondscommented, Jul 27, 2019

Thanks so much! It may seem like a minor thing, but automating these sorts of reports will be quite useful.

1reaction
adewaleocommented, Jul 26, 2019

I will close this as it is not a CLI issue, there isn’t python sdk support for it (as far as I’m aware off) and there is a work around with arm templates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable Azure Automation Update Management for an Azure VM
This article tells how to enable Update Management for an Azure VM. ... Select the VM for which you want to enable Update...
Read more >
How to Enable Update Management on the VM from the Azure ...
Share. Save. Save. 993 views 2 years ago. 993 views • Jun 5, 2020. How to Enable Update Management on the VM from...
Read more >
OS patch management | Compute Engine Documentation
Use OS patch management to apply operating system patches across a set of Compute Engine VM instances (VMs). Long running VMs require periodic...
Read more >
Deploying VM Updates with Azure Update Management
The Azure Update Management solution can be used to manage updates and patches for virtual machines (VMs). Through Azure Update Management, ...
Read more >
How to use and monitor Azure Update Management
Learn how to configure Azure Update Management, Azure Automation Account and Azure Log Analytics. Find out how to add Windows and Linux VMs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found