Azure Cloud Shell PowerShell Tutorial | Create Windows Virtual Machine in Azure

Published: 12 July 2026
on channel: TutoGenix
28
1

Create Resource Group
New-AzResourceGroup -Name "myResourceGroup" -Location "centralindia"

Create Windows VM
New-AzVm `
-ResourceGroupName "myResourceGroup" `
-Name "myVM" `
-Location "centralindia" `
-Image "MicrosoftWindowsServer:WindowsServer:2022-datacenter-azure-edition:latest" `
-VirtualNetworkName "myVnet" `
-SubnetName "mySubnet" `
-SecurityGroupName "myNetworkSecurityGroup" `
-PublicIpAddressName "myPublicIpAddress" `
-OpenPorts 80,3389

Check VM Status
Get-AzVM -ResourceGroupName "myResourceGroup" -Name "myVM" -Status

Get Public IP
Get-AzPublicIpAddress -ResourceGroupName "myResourceGroup" | Select-Object Name, IpAddress

Delete Resource Group
Remove-AzResourceGroup -Name "myResourceGroup"


On this page of the site you can watch the video online Azure Cloud Shell PowerShell Tutorial | Create Windows Virtual Machine in Azure with a duration of hours minute second in good quality, which was uploaded by the user TutoGenix 12 July 2026, share the link with friends and acquaintances, this video has already been watched 28 times on youtube and it was liked by 1 viewers. Enjoy your viewing!