Open utterances-bot opened 2 years ago
I'm receiving this error, can you please help me? Also are you running this on one of the affected VM's or on your pc?
Invoke-Command : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At line:22 char:30
+ CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
You get this error cause there's nothing in $servers variable. It's depends on the result of $workers: $servers = (($workers | where-object {$PSItem.RunbookWorker.LastSeenDateTime -le $date}).RunbookWorker).Name
If there are no staled workers evaluated - it has nowhere to connect to - and that is why you have an error.
Microsoft Monitoring Agent - Clear cache and HybridWorker Group - Mateusz Czerniawski
When clearing the cache is not enough. Kill it with fire
https://www.mczerniawski.pl/azure/microsoft-monitoring-agent-clear-take-2/