0

I am using a simple workflow to stop a VM. It is executing fine and showing everything fine. But When I am cross checking my VM is not getting stopped. Is there anything which I am missing here ?

workflow StopVM
    {
      inlineScript
      {
         Stop-AzureVM -Name "VM123" -ServiceName "Service123"
      }
    }
Alex
  • 327
  • 2
  • 3
  • 8

1 Answers1

1

Probably you have missed to add credential to link to azure. Without making link you can't run azure-cmdlts. However you can do the same thing using certificate also.

Here is some stuff-

Stop-AzureVM does not shutdown my Azure-VM (Runbook)

Community
  • 1
  • 1
Aatif Akhter
  • 2,126
  • 1
  • 25
  • 46