SOLVED

OMS UPdate management not working at all

%3CLINGO-SUB%20id%3D%22lingo-sub-64996%22%20slang%3D%22en-US%22%3EOMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64996%22%20slang%3D%22en-US%22%3E%3CP%3EI%20got%20two%20seperate%20azure%20environments%20and%20I%20am%20trying%20to%20use%20oms%20update%20management%20(free%20tier).%3C%2FP%3E%3CP%3EBoth%20environments%20seem%20to%20be%20unable%20to%20patch%20any%20server%20they%20always%20fail%20with%20the%20most%20helpful%20error%20message%20of%20all%20time%20%22Exception%20from%20HRESULT%3A%200x80240007%22%20and%20the%20completed%20patch%20management%20task%20only%20shows%20%22no%20data%22%20nothing%20unsucessful%20nothing%20successfull.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20580px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F13745iA5C33B81EC895334%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22OMSerror.PNG%22%20title%3D%22OMSerror.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20what%20might%20cause%20this%20issue%3F%3C%2FP%3E%3CP%3EThe%20documentation%20does%20not%20really%20help%20at%20all%20and%20I%20can't%20find%20anything%20about%20this%20error%20in%20azure.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3ECarsten%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-64996%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-76569%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-76569%22%20slang%3D%22en-US%22%3E%3CP%3EThrough%20a%20Microsoft%20support%20call%20we%20found%20out%20that%20the%20new%20problem%20is%20caused%20by%20a%20parameter%20error%20in%20a%20function%20call%20inside%20the%20oms%20patch%20script%20and%20an%20updated%20for%20a%20default%20printer%20driver%20from%202006%20(on%20windows%20Server%202016).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20moment%20when%20an%20update%20fails%20the%20script%20will%20try%20to%20add%20it%20to%20a%20failed%20list%20using%20this%20line%20of%20code%3A%3C%2FP%3E%3CPRE%3EAddUpdateToFailList%20GetUpdateKbID(%24update.KBArticleIDs)%20%24update.Title%20%24update.Identity.UpdateID%20%20%24null%20%22Install%20Failed%22%20%24baseException.HResult%20%3C%2FPRE%3E%3CP%3EThe%20problem%20is%20that%20GetUpdateKbID%20and%20%24update.KBArtcileIDs%20are%20treated%20as%20two%20seperate%20parameters.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20june%20the%2015th%20a%20new%20version%20of%20the%20script%20should%20be%20rolled%20out%20to%20all%20azure%20datacenters.%3C%2FP%3E%3CP%3EThe%20script%20contains%20a%20fixed%20function%20call.%3C%2FP%3E%3CPRE%3EAddUpdateToFailList%20%24(GetUpdateKbID(%24update.KBArticleIDs))%20%24update.Title%20%24update.Identity.UpdateID%20%20%24null%20%22Install%20Failed%22%20%24baseException.HResult%20%20%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-67840%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-67840%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Kent%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eall%20machines%20are%20based%20on%20the%20default%20azure%20Windows%20Server%202016%20image%20from%20the%20azure%20portal.%3C%2FP%3E%3CP%3EThe%20funny%20thing%20is%20that%20I%20get%20this%20error%20in%20two%20different%20subscriptions%20in%20completly%20differnt%20tenants%20and%20one%20of%20the%20OMS%20worklplaces%20was%20even%20setup%20by%20another%20colleage.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20meantime%20I%20opened%20a%20Microsoft%20support%20case%20and%20we%20are%20now%20trying%20to%20find%20the%20cause%20of%20the%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETrying%20an%20update%20from%20your%20OMS%20is%20not%20necessary%20at%20the%20time%20but%20thanks%20for%20the%20offer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20update%20as%20soon%20as%20I%20know%20what%20happens%20here.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-67010%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-67010%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20i%20booted%20up%20a%20VM%20in%20azure%20and%20connected%20to%20my%20OMS.%3C%2FP%3E%3CP%3EUnfortunately%20i%20did%20not%20encounter%20any%20issues.%3C%2FP%3E%3CP%3Ethe%20last%20screen%20dump%20you%20provided%20indicates%20issues%20downloading%20the%20update.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20all%20you%20VM's%20are%20based%20on%20the%20same%20MSDN%20image%20could%20you%20perhaps%20try%20a%20VM%20from%20the%20gallery%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eim%20sorry%20i%20could%20not%20provide%20you%20with%20a%20better%20answer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehave%20you%20tried%20the%20following%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Finstantanswers%2F512a5183-ffab-40c5-8a68-021e32467565%2Fwindows-update-troubleshooter%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20update%20troubleshooter%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F971058%2Fhow-do-i-reset-windows-update-components%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EReset%20Windows%20update%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20how%20it%20goes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlternativly%20we%20could%20try%20to%20use%20my%20OMS%20against%20one%20of%20your%20machines%20if%20you%20like.%3C%2FP%3E%3CP%3EThis%20way%20we%20could%20confirm%20if%20your%20Client%20target%20is%20at%20fault.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66645%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66645%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20tried%20another%20update%20and%20checked%20the%20Job%20History%20of%20the%20Runbooks%20in%20the%20production%20environment%20and%20it%20seems%20as%20if%20the%20error%20has%20changed%20now.%20I%20didn't%20change%20the%20configuration%20but%20now%20it%20looks%20as%20seen%20below%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14068i7424F33E1CD1B4C5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22OMS_CircularError.PNG%22%20title%3D%22OMS_CircularError.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20the%20runbooks%20are%20protected%20and%20I%20cannot%20see%20what%20happens%20inside%20it%20is%20really%20annoying.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66642%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66642%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%2C%20I%20really%20appreciate%20your%20help.%20I%20checked%20one%20of%20my%20Windows%202016%20Servers%20and%20could%20see%20both%20the%203000%20and%20the%205002%20events.%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20930px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14066iCDB992CEA87A0049%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22OMS_Eventlog.PNG%22%20title%3D%22OMS_Eventlog.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20frequencey%20of%20the%20events%20is%20as%20low%20as%20it%20is%20because%20the%20server%20is%20in%20my%20visual%20studio%20subscription%20and%20is%20only%20active%20when%20I%20need%20it.%20The%20Servers%20in%20the%20other%20environment%20are%20already%20in%20use%20and%20I%20can't%20just%20log%20on%20whenever%20I%20want.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66532%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66532%22%20slang%3D%22en-US%22%3EI%20will%20try%20this%20feature%20in%20my%20test%20lab%20Thursday%20so%20I%20have%20a%20better%20understanding.%20could%20you%20confirm%20the%20following%20%22Open%20the%20Windows%20Event%20Log%2C%20navigate%20to%20Application%20and%20Services%20Logs%5COperations%20Manager%20and%20search%20for%20Event%20ID%203000%20and%205002%20from%20source%20Service%20Connector.%20These%20events%20indicate%20the%20computer%20has%20registered%20with%20the%20OMS%20workspace%20and%20is%20receiving%20configuration.%22%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66310%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66310%22%20slang%3D%22en-US%22%3E%3CP%3EYes%26nbsp%3B%20the%20clients%20are%20set%20to%20find%20updates%20automatically%20and%20I%20even%20had%20them%20downloaded%20automatically%20on%20one%20machine%20the%20only%20thing%20that%20is%20missing%20is%20the%20installation.%20The%20update%20job%20finishes%20but%20says%20no%20data%20and%20the%20runbook%20which%20should%20patch%20the%20machine%20only%20shows%20the%20error%20message%20from%20my%20original%20post.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66114%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66114%22%20slang%3D%22en-US%22%3E%3CP%3Eso%20the%20clients%20are%20set%20to%20find%20updates%20automatically%2C%20when%20you%20log%20in%20after%20an%20update%20attempt%20does%20client%20show%20updates%20pending%20installation%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20havent%20tested%20this%20the%20oms%20update%2C%20so%20currently%20i%20dont%20know%20much%20about%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66103%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66103%22%20slang%3D%22en-US%22%3EI%20didn't%20have%20to%20configure%20any%20source%20in%20the%20updtae%20management%20solution.%20I%20am%20trying%20to%20update%20multiple%20windows%20Servers%202016%20and%20one%20Windows%20Server%202016%20which%20all%20can%20be%20updated%20manually%20from%20the%20GUI.%20Actually%20in%20my%20Visual%20Studio%20Subscription%20the%20machines%20actually%20update%20on%20every%20Startup.%20There%20is%20no%20WSUS%20Server%20in%20my%20deployment%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66028%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20UPdate%20management%20not%20working%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66028%22%20slang%3D%22en-US%22%3E%3CP%3Ewhat%20update%20source%20are%20you%20trying%20to%20use%2C%20are%20you%20able%20to%20update%20the%20machine%20manually%20from%20the%20gui%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I got two seperate azure environments and I am trying to use oms update management (free tier).

Both environments seem to be unable to patch any server they always fail with the most helpful error message of all time "Exception from HRESULT: 0x80240007" and the completed patch management task only shows "no data" nothing unsucessful nothing successfull.OMSerror.PNG

 

Does anyone know what might cause this issue?

The documentation does not really help at all and I can't find anything about this error in azure. 

 

Regards

Carsten 

 

10 Replies

what update source are you trying to use, are you able to update the machine manually from the gui

 

I didn't have to configure any source in the updtae management solution. I am trying to update multiple windows Servers 2016 and one Windows Server 2016 which all can be updated manually from the GUI. Actually in my Visual Studio Subscription the machines actually update on every Startup. There is no WSUS Server in my deployment

so the clients are set to find updates automatically, when you log in after an update attempt does client show updates pending installation ?

 

i havent tested this the oms update, so currently i dont know much about it.

Yes  the clients are set to find updates automatically and I even had them downloaded automatically on one machine the only thing that is missing is the installation. The update job finishes but says no data and the runbook which should patch the machine only shows the error message from my original post.

I will try this feature in my test lab Thursday so I have a better understanding. could you confirm the following "Open the Windows Event Log, navigate to Application and Services Logs\Operations Manager and search for Event ID 3000 and 5002 from source Service Connector. These events indicate the computer has registered with the OMS workspace and is receiving configuration."

Thank you, I really appreciate your help. I checked one of my Windows 2016 Servers and could see both the 3000 and the 5002 events. OMS_Eventlog.PNG

 

The frequencey of the events is as low as it is because the server is in my visual studio subscription and is only active when I need it. The Servers in the other environment are already in use and I can't just log on whenever I want.

I just tried another update and checked the Job History of the Runbooks in the production environment and it seems as if the error has changed now. I didn't change the configuration but now it looks as seen below:OMS_CircularError.PNG

 

Since the runbooks are protected and I cannot see what happens inside it is really annoying.

 

So i booted up a VM in azure and connected to my OMS.

Unfortunately i did not encounter any issues.

the last screen dump you provided indicates issues downloading the update.

 

As all you VM's are based on the same MSDN image could you perhaps try a VM from the gallery ?

 

im sorry i could not provide you with a better answer.

 

have you tried the following

 

Windows update troubleshooter

 

Reset Windows update

 

Please let me know how it goes.

 

Alternativly we could try to use my OMS against one of your machines if you like.

This way we could confirm if your Client target is at fault.

Hi Kent,

 

all machines are based on the default azure Windows Server 2016 image from the azure portal.

The funny thing is that I get this error in two different subscriptions in completly differnt tenants and one of the OMS worklplaces was even setup by another colleage.

 

In the meantime I opened a Microsoft support case and we are now trying to find the cause of the issue.

 

Trying an update from your OMS is not necessary at the time but thanks for the offer.

 

I will update as soon as I know what happens here.

best response confirmed by Carsten Stahlberg (Occasional Contributor)
Solution

Through a Microsoft support call we found out that the new problem is caused by a parameter error in a function call inside the oms patch script and an updated for a default printer driver from 2006 (on windows Server 2016).

 

At the moment when an update fails the script will try to add it to a failed list using this line of code:

AddUpdateToFailList GetUpdateKbID($update.KBArticleIDs) $update.Title $update.Identity.UpdateID  $null "Install Failed" $baseException.HResult 

The problem is that GetUpdateKbID and $update.KBArtcileIDs are treated as two seperate parameters.

 

By june the 15th a new version of the script should be rolled out to all azure datacenters.

The script contains a fixed function call.

AddUpdateToFailList $(GetUpdateKbID($update.KBArticleIDs)) $update.Title $update.Identity.UpdateID  $null "Install Failed" $baseException.HResult