Home

Update Management through OMS Gateway ?

%3CLINGO-SUB%20id%3D%22lingo-sub-218810%22%20slang%3D%22en-US%22%3EUpdate%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218810%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20pretty%20confusing%20topic%20for%20me.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20i%20have%20a%20lot%20of%20VMs%20in%20Azure%2C%20they%20dont%20have%20internet%20access%20but%20they%20are%20configured%20to%20connect%20to%20log%20analytics%20through%20the%20OMS%20gateway%20which%20is%20basically%20acts%20like%20a%20proxy%20for%20them%2C%20it%20works%20perfectly%20i%20can%20collect%20all%20the%20logs%20needed%20and%20perf%20counters%20no%20problem%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20enabled%20update%20management%20on%20these%20servers%20as%20well.%20so%20then%20i%20have%20to%20allow%20hosts%20in%20the%20OMS%20gateway%20using%26nbsp%3BAdd-OMSGatewayAllowedHost%20powershell%20command.%20which%20i%20did%20as%20per%20the%20documentation%20here%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flog-analytics%2Flog-analytics-oms-gateway%23configure-for-automation-hybrid-workers%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flog-analytics%2Flog-analytics-oms-gateway%23configure-for-automation-hybrid-workers%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20believed%20that%20it%20should%20use%20the%20OMS%20GatewayProxy%20to%20access%20the%20Update%20repository%20and%20get%20the%20assessment%20and%20can%20push%20the%20updates%20now%2C%20but%20i%20checked%20and%20the%20VMs%20seems%20to%20not%20be%20working%20like%20this%20and%20might%20need%20actually%20another%20proxy%20settings%20to%20get%20to%20the%20update%20service%20from%20Microsoft.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20questions%20are%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20should%20i%20add%20the%20update%20service%20URLs%20to%20the%20allowed%20hosts%20in%20oms%20gateway%20%3F%20and%20then%20would%20the%20VMs%20connect%20to%20the%20Update%20services%20through%20just%20the%20OMS%20proxy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUpdate%20catalogue%20URLs%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3Emicrosoft.com%3C%2FLI%3E%3CLI%3E*.update.microsoft.com%3C%2FLI%3E%3CLI%3Ewindowsupdate.com%3C%2FLI%3E%3CLI%3E*.download.windowsupdate.com%3C%2FLI%3E%3CLI%3Emicrosoft.com%3C%2FLI%3E%3CLI%3E*.download.microsoft.com%3C%2FLI%3E%3CLI%3Ecom%3C%2FLI%3E%3CLI%3E*.windowsupdate.com%3C%2FLI%3E%3CLI%3Emicrosoft.com%3C%2FLI%3E%3CLI%3Ewindows.com%3C%2FLI%3E%3CLI%3Elive.com%20(this%20is%20required%20if%20you%20have%20connected%20a%20Microsoft%20Account)%3C%2FLI%3E%3CLI%3Emicrosoft.com%3C%2FLI%3E%3CLI%3E*.mp.microsoft.com%3C%2FLI%3E%3C%2FUL%3E%3CP%3E-%20Or%20does%20the%20VMs%20still%20need%20to%20set%20up%20a%20proxy%20that%20have%20access%20to%20the%20internet%3F!%26nbsp%3B%3C%2FP%3E%3CP%3Eif%20anyone%20have%20experience%20with%20this%20would%20be%20great%20to%20share.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EAhmed%20Atef%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-218810%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Automation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUpdate%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285941%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285941%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Ahmed%20for%20quick%20answer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20tell%20me%20how%20you%20configure%20a%20WSUS%20GPO%20policy%20in%20such%20a%20scenario%20with%20Azure%20Update%20Management%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285938%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285938%22%20slang%3D%22en-US%22%3E%3CP%3Ethe%20Gateway%20itself%20can%20connect%20to%20microsoft%20update%20as%20it%20have%20internet%20access%2C%20but%20that%20doesnt%20mean%20that%20the%20agents%20can%20pull%20the%20missing%20updates%20from%20the%20gateway.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20opened%20a%20case%20with%20MS%20support%20to%20investigate%20this%20before%20going%20to%20the%20WSUS%20solution%20as%20i%20wanted%20to%20avoid%20the%20management%20of%20WSUS%20as%20well%2C%20and%20i%20thought%20that%20the%20agent%20can%20use%20the%20oms%20gateway%20to%20act%20as%20a%20proxy%20and%20connect%20to%20update.microsoft.com%20and%20pull%20the%20updates%20from%20there%2C%20MS%20Support%20told%20me%20that%20this%20is%20not%20possible%20the%20agents%20must%20bound%20to%20an%20update%20repository%2C%20either%20WSUS%20or%20Microsoft%20Update%2C%20and%20of%20course%20VMs%20don't%20have%20direct%20internet%20connectivity.%20so%20there%20are%202%20ways%2C%20setting%20a%20system%20proxy%20on%20the%20VMs%20where%20you%20can%20only%20allow%20internet%20access%20to%20certain%20URLs%20(was%20not%20applicable%20in%20my%20case)%20%2C%20the%20other%20way%20is%20WSUS%2C%20and%20yes%20i%20do%20automatic%20approvals%20for%20security%20and%20critical%20updates%20on%20WSUS%2C%20then%20the%20assessment%20and%20the%20scheduling%20of%20the%20updates%20are%20all%20from%20the%20portal.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20WSUS%20Config%20is%20done%20only%201%20time%2C%20then%20everything%20else%20i%20manage%20from%20the%20portal.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20setup%20was%20back%20in%20April%2C%20and%20as%20things%20changes%20alot%20within%20the%20log%20analytics%20and%20Azure%20Monitor%20space%2C%20i%20hope%20that%20the%20oms%20gateway%20can%20actually%20work%20as%20proxy%20for%20updates%20on%20the%20agents%20as%20well.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285934%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285934%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EThis%20is%20something%20that%20I%20wanted%20to%20avoid.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%20you%20are%20sure%20that%20there%20is%20no%20way%20that%20OMS%20Gateway%20server%20can%20connect%20to%20update.microsoft.com%20and%20download%20the%20update%3F%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20does%20managing%20the%20updates%20look%20like%20in%20this%20case%3F%3C%2FP%3E%3CP%3EYou%20must%20do%20%22approve%22%20in%20WSUS%20for%20a%20specific%20KB%20and%20create%20Scheduled%20Update%20Deployment%20in%20Azure%20side%3F%26nbsp%3BSomething%20more%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285920%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285920%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Tomek%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhat%20we%20ended%20up%20doing%20is%20installing%20WSUS%20on%20the%20OMS%20Gateway%2C%26nbsp%3B%20it%20acts%20as%20repository%20for%20updates%2C%20all%20updates%20are%20downloaded%20to%20it%2C%20all%26nbsp%3Bservers%20are%20configured%20to%20have%20the%20wsus%20as%20their%20update%20source%20through%20GPO%2C%20but%20all%20orchestration%20and%20schedules%20of%20updates%20are%20managed%20through%20the%20Update%20Management%20Solution.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285847%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285847%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20similar%20question%20about%20OMS%20Gateway.%20Did%20you%20manage%20to%20find%20out%20more%3F%20I%20would%20like%20to%20configure%20the%20OMS%20Gateway%20in%20such%20a%20way%20that%20updates%20are%20downloaded%20on%20it%20and%20sent%20to%20agents.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219123%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219123%22%20slang%3D%22en-US%22%3E%3CP%3Ei%20have%20now%202%20VMs%20that%20are%20not%20connected%20to%20the%20internet%20directly%20or%20through%20internet%20proxy..%20but%20connected%20to%20log%20analytics%20through%20the%20OMS%20proxy%26nbsp%3Bbut%20they%20show%20up%20as%20not%20assessed%20on%20the%20Update%20management%20solution.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eso%20thats%20mean%20that%20the%20OMS%20gateway%20doesnt%20serve%20the%20update%20management%20as%20proxy%20i%20assume%20%3F%20but%20it%20would%20make%20more%20logic%20that%20if%20your%20VM%20is%20connected%20through%20OMS%20gateway%20proxy%20then%20Update%20management%20should%20work%20too.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20will%20add%20the%20URLs%20as%20allowed%20hosts%20in%20the%20oms%20gateway%20and%20see%20what%20comes%20up.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%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-219045%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20Management%20through%20OMS%20Gateway%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219045%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EIdeally%2C%20update%20services%20should%20just%20connect%20through%20the%20OMS%20proxy.%20However%2C%20for%20testing%20purposes%2C%20you%20can%20the%20update%20service%20URLs%20to%20the%26nbsp%3Ballowed%20hosts%20in%20OMS%20gateway.%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20a%20secondary%20measure%2C%20you%20could%20also%20try%20using%20the%20WSUS%20pass%20through%20gateway%20app%20published%20on%20the%20Azure%20marketplace.%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Ahmed Atef
Contributor

Hi Guys,

 

A pretty confusing topic for me. 

 

Now i have a lot of VMs in Azure, they dont have internet access but they are configured to connect to log analytics through the OMS gateway which is basically acts like a proxy for them, it works perfectly i can collect all the logs needed and perf counters no problem here.

 

i enabled update management on these servers as well. so then i have to allow hosts in the OMS gateway using Add-OMSGatewayAllowedHost powershell command. which i did as per the documentation here 

https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-oms-gateway#configure-for-automat...

 

i believed that it should use the OMS GatewayProxy to access the Update repository and get the assessment and can push the updates now, but i checked and the VMs seems to not be working like this and might need actually another proxy settings to get to the update service from Microsoft.

 

My questions are:

 

 

- should i add the update service URLs to the allowed hosts in oms gateway ? and then would the VMs connect to the Update services through just the OMS proxy.

 

Update catalogue URLs 

  • microsoft.com
  • *.update.microsoft.com
  • windowsupdate.com
  • *.download.windowsupdate.com
  • microsoft.com
  • *.download.microsoft.com
  • com
  • *.windowsupdate.com
  • microsoft.com
  • windows.com
  • live.com (this is required if you have connected a Microsoft Account)
  • microsoft.com
  • *.mp.microsoft.com

- Or does the VMs still need to set up a proxy that have access to the internet?! 

if anyone have experience with this would be great to share.

 

Thanks

Ahmed Atef
 

7 Replies

Ideally, update services should just connect through the OMS proxy. However, for testing purposes, you can the update service URLs to the allowed hosts in OMS gateway.

As a secondary measure, you could also try using the WSUS pass through gateway app published on the Azure marketplace.  

i have now 2 VMs that are not connected to the internet directly or through internet proxy.. but connected to log analytics through the OMS proxy but they show up as not assessed on the Update management solution. 

 

so thats mean that the OMS gateway doesnt serve the update management as proxy i assume ? but it would make more logic that if your VM is connected through OMS gateway proxy then Update management should work too. 

 

i will add the URLs as allowed hosts in the oms gateway and see what comes up. 

 

 

 

I have a similar question about OMS Gateway. Did you manage to find out more? I would like to configure the OMS Gateway in such a way that updates are downloaded on it and sent to agents.

Hi Tomek,

 

what we ended up doing is installing WSUS on the OMS Gateway,  it acts as repository for updates, all updates are downloaded to it, all servers are configured to have the wsus as their update source through GPO, but all orchestration and schedules of updates are managed through the Update Management Solution. 

This is something that I wanted to avoid.

So you are sure that there is no way that OMS Gateway server can connect to update.microsoft.com and download the update? 

How does managing the updates look like in this case?

You must do "approve" in WSUS for a specific KB and create Scheduled Update Deployment in Azure side? Something more?

the Gateway itself can connect to microsoft update as it have internet access, but that doesnt mean that the agents can pull the missing updates from the gateway.

 

I opened a case with MS support to investigate this before going to the WSUS solution as i wanted to avoid the management of WSUS as well, and i thought that the agent can use the oms gateway to act as a proxy and connect to update.microsoft.com and pull the updates from there, MS Support told me that this is not possible the agents must bound to an update repository, either WSUS or Microsoft Update, and of course VMs don't have direct internet connectivity. so there are 2 ways, setting a system proxy on the VMs where you can only allow internet access to certain URLs (was not applicable in my case) , the other way is WSUS, and yes i do automatic approvals for security and critical updates on WSUS, then the assessment and the scheduling of the updates are all from the portal. 

 

the WSUS Config is done only 1 time, then everything else i manage from the portal. 

 

this setup was back in April, and as things changes alot within the log analytics and Azure Monitor space, i hope that the oms gateway can actually work as proxy for updates on the agents as well. 

Thanks Ahmed for quick answer.

 

Could you tell me how you configure a WSUS GPO policy in such a scenario with Azure Update Management?