Thursday, May 3, 2018

Script to Create New VM in existing VNET in Azure

#Modified by : Neeraj

New-AzureRmResourceGroup -Name MyRSGroup -Location EastUS
New-AzureRmVm -ResourceGroupName "vpn-1" `
    -Name "myVM" `
    -Location "East US" `
    -VirtualNetworkName "vnet1" `
    -SubnetName "subnet1" `
    -SecurityGroupName "myvmSG" `
    -PublicIpAddressName "myvmPIP" `
    -OpenPorts 80,3389
Since we didn't provide any image information so bydefault it will pick a small windows 2016 image

No comments:

Post a Comment

Thanks for showing interest in tech-jockey.

Content of this blog has been moved to GITHUB

Looking at current trends and to make my content more reachable to people, I am moving all the content of my blog https://tech-jockey.blogsp...