3

When I tried to stop the virtual machine on Azure using Powershell cmdlet Stop-AzureRMVM (new ARM one), I get the message box as shown below. Problem with this, If I run this in the batch statements, I get this message box / prompt for each statement where VM is shutdown. How do I suppress this?

enter image description here

Shabbir
  • 441
  • 2
  • 7
  • 17

2 Answers2

6

Using the -Force switch should suppress all questions of that nature, not just for Azure-related cmdlets, but all cmdlets in general.

Rytmis
  • 31,467
  • 8
  • 60
  • 69
1

look at the help and use -force

Loïc MICHEL
  • 24,935
  • 9
  • 74
  • 103