user10708061
user10708061

Reputation:

How start virtual machines as a job in powershell azure

Im working on a powershell script which starts multiple as jobs i have tried this

Start-AzureRmVM -ResourceGroupName "Test2" -Name "tux" -AsJob true

but all i got was this error message : Stop-AzureRmVM : A parameter cannot be found that matches parameter name 'AsJob'.

Upvotes: 1

Views: 324

Answers (1)

Charles Xu
Charles Xu

Reputation: 31414

You just need to execute the command like below if you want to start the VM as a job:

Start-AzureRmVM -ResourceGroupName "Test2" -Name "tux" -AsJob

Upvotes: 2

Related Questions