az vm create --name vm-test \
--location westus3 \
--subscription test-sub
--resource-group test-rg \
--vnet-name test-vpc \
--subnet test-subnet \
--zone 2 \
--accelerated-networking true \
--public-ip-address "" \
--nsg "" \
--authentication-type ssh \
--admin-username azureuser \
--ssh-key-name test_key \
--image image-imperva-waf-v1.0.0 \
--size Standard_D2s_v5 \
--nic-delete-option 1 \
--plan-publisher imperva \
--plan-product securesphere-waf-v14 \
--plan-name imperva-securesphere-waf-1
- --name VM名称
- --location 机房location(region)
- --subscription 订阅
- --resource-group 资源组
- --vnet-name 虚拟网络名称
- --subnet 子网
- --zone 可用区
- --accelerated-networking 是否开启网络加速(true/false)
- --public-ip-address 公网IP(""表示不需要公网)
- --nsg 新建安全组(""表示不新建安全组)
- --authentication-type 认证方式
- --admin-username 管理用户名
- --ssh-key-name ssh-key文件名称
- --image 镜像名称
- --size VM规格
- --nic-delete-option 网络删除选项(1表示网卡随服务器删除)
- --plan-publisher imperva \
- --plan-product securesphere-waf-v14 \
- --plan-name imperva-securesphere-waf-1
参考文档
利用 CLI 查找并使用市场购买计划信息 - Azure Virtual Machines | Microsoft Learn
Creating VM's From a Marketplace Image That Needs A Plan - samcogan.com