We need to stop the azure VM because azure cast each running cast based on used .hence we created powershell scripts to start to stop the Vms based on running . We can use above scripts and please create credential using SPN on azure active directly else its will ask each time to auththe resource