Hello there,
According to your description ,as far as I know ,a socket operation encountered a dead network. This could indicate a serious failure of the network system (i.e. the protocol stack that the WinSock DLL runs over), the network interface, or the local network itself. This error can happen when the network cable gets disconnected or the network becomes otherwise inaccessible.
Use PowerShell 7+
Only load the Microsoft.Graph modules you template needs
Set $maximumfunctioncount to its max value of 32768.
This article describes runbook issues that might occur and how to resolve them. https://learn.microsoft.com/en-us/azure/automation/troubleshoot/runbooks
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--