Azure

myjob818@Azure:~$ az vm create --name myVM --resource-group 83f1619a-8d3f-489a-acef-c2b3c5a5c700 --image Win2016Datacenter --size Standard_DS2_v2 --location eastus --admin-username $USERNAME --admin-password $PASSWORD
{
"fqdns": "",
"id": "/subscriptions/977ab379-3ba5-4f6c-9463-59c9f5d74c57/resourceGroups/83f1619a-8d3f-489a-acef-c2b3c5a5c700/providers/Microsoft.Compute/virtualMachines/myVM",
"location": "eastus",
"macAddress": "00-0D-3A-13-13-51",
"powerState": "VM running",
"privateIpAddress": "10.0.0.4",
"publicIpAddress": "23.96.83.255",
"resourceGroup": "83f1619a-8d3f-489a-acef-c2b3c5a5c700",
"zones": ""
}

{
"fqdns": "",
"id": "/subscriptions/31f9efe7-46ea-4f82-9fab-6e8e197c83b1/resourceGroups/18f3fa8e-ddeb-4307-9e01-6f75911018bb/providers/Microsoft.Compute/virtualMachines/myVM",
"location": "eastus",
"macAddress": "00-0D-3A-1D-37-8C",
"powerState": "VM running",
"privateIpAddress": "10.0.0.4",
"publicIpAddress": "104.211.50.232",
"resourceGroup": "18f3fa8e-ddeb-4307-9e01-6f75911018bb",
"zones": ""
}

posted @ 2019-02-26 11:32  JackSun924  阅读(186)  评论(0编辑  收藏  举报