Maybe this helps:
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello. I have inherited the following situation :
Azure Automation account with Hybrid Worker Group and a single Hybrid Worker inside. The machine on which this worker was installed has been decommissioned and doesn't exist anymore. The problem is that it's name is still present in the Hybrid Worker group in Azure. The GUI doesn't provide me with a way to delete just the worker. I can only delete the whole group. Is there a way to delete only that stale worker machine and preserve the group?
Maybe this helps:
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
Next I intend to put a worker into the group of the stale machine and see if that helps. But I doubt it. Probably this cmdlet Remove-HybridRunbookWorker tries to start the necessary process on the worker machine that is to be deleted and it is this process that tells Azure to delete the machine as well. Since I don't have that machine anymore I'm afraid the only "solution" would be to delete the whole Hybrid worker group.
Well as surprisingly as it sounds, putting the new worker machine into the same hybrid worker group as the stale machine did the trick. Verbose logs in the powershell console were exactly the same, but this time the ghost machine disappeared from the worker group. So to answer my question in the first post: