VM Creation


az vm create \

  --resource-group AZ300-RGlod63125445 \

  --name WinVM2 \

  --location "East US" \

  --image win2016datacenter \

  --size Standard_DS3_v2 \

  --vnet-name VNet2-63125445 \

  --subnet Subnet2-63125445 \

  --public-ip-address PIP2-63125445 \

  --admin-username AZ300-VMAdmin \

  --admin-password "AZ300-VMPassw0rd!"



Create NSG

az network nsg rule create --resource-group "AZ300-RGlod63125445" --nsg-name WinVM2NSG --name "Allow_Port_80" --protocol tcp --priority 100 --destination-port-range 80