stevevillardi / Logic.Monitor

LogicMonitor PowerShell Module for automating LM Portal tasks using APIv3
https://www.powershellgallery.com/packages/Logic.Monitor
Mozilla Public License 2.0
23 stars 3 forks source link

Add automatic upgrade info parameter to set-lmcollector #10

Closed djust270 closed 1 year ago

djust270 commented 1 year ago

I recently ran into an issue where I needed to change the escalating chain ID for all collectors. I did so using set-lmcollector, but found afterwards that the automatic upgrade schedule we set was removed. Adding the parameter 'automaticupgradeinfo' accepting a PSObject, allows reusing the current upgrade schedule information.

stevevillardi commented 1 year ago

@djust270 Thanks for opening the pull request. I took a look into the issue and I see that I had mistakenly set the HTTP request method to PUT instead of PATCH which is the cause for the issue. I went ahead and fixed the bug in the latest committed version and will roll the fix into the next release!