先创建linux
安装azcli

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

创建资源组

az vm create --resource-group 资源组名称 --name 主机名 --location EastAsia  --image MicrosoftWindowsServer:WindowsServer:2012-r2-datacenter-smalldisk-g2:latest --authentication-type password --admin-username 登录账号 --admin-password 密码 --size Standard_B1s --os-disk-size-gb 64  --public-ip-sku Basic --public-ip-address-allocation dynamic