![Create a VM using PowerShell](https://ytimg.googleusercontent.com/vi/ElnqmmLZW98/hq720_2.jpg)
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-powershell
New-AzResourceGroup -Name myResourceGroup -Location 'EastUS'
New-AzVm
-ResourceGroupName 'myResourceGroup'
-Name 'myVM'
-Location “Eastern United States”
-VirtualNetworkName 'myVnet'
-Subnet name 'mySubnet'
-SecurityGroupName 'myNetworkSecurityGroup'
-PublicIpAddressName 'myPublicIpAddress'
-OpenPorts 80.3389
Get-AzPublicIpAddress -ResourceGroupName 'myResourceGroup' Select-Object -Property 'IpAddress'
mstsc /v:publicIpaddress
Install-WindowsFeature -Web Server Name -IncludeManagementTools
Remove-AzResourceGroup -Name myResourceGroup
Please take the opportunity to connect and share this video with your friends and family if you find it useful.
No Comments