You can use the Start-AzVM PowerShell command to start Azure VM using PowerShell.
Below is the syntax of the Start-AzVM PowerShell command.
Start-AzVM [-ResourceGroupName] <String> [-Name] <String>
Start-AzVM -ResourceGroup "Your resource Group Name" -Name "Virtual Machine Name"
Below cmdlet will start the “TsInfoVM1” virtual machine under the “Demo123” resource group.
Start-AzVM -ResourceGroup "Demo123" -Name "TsInfoVM1"
Once I have executed the Azure PowerShell cmdlet, I get the output below, and it starts the Virtual machine.
OperationId : 403c32fd-53d0-43ee-ab0f-8bbd1aae06fb Status : Succeeded StartTime : 4/10/2023 12:05:26 PM EndTime : 4/10/2023 12:05:39 PM Error :
You can see the same output in the below screenshot.
I have verified the Virtual machine status in the Azure Portal to cross-check. See the below screenshot. It started the Virtual Machine Successfully.
In this article, we discussed how to start Azure VM using PowerShell with the help of the Start-AzVM PowerShell command. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.