Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Can we do script to auto restart for Services if the VM Agent status is not ready using Powershell ?

$
0
0

Hi everyone, 

This is my current scenario:  
VM status is "Running",  VMAgent is "Not Ready",Windows Azure Guest Agent  service is "Stopped".

I will manually start Windows Azure Guest Agent whenever my VMAgent is not ready. 

So is there any script I can write using Powershell to automatically Start the service whenever VMAgent is not ready ?



 


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>