将VM添加到现有的vnet和子网 [英] Add VM to existing vnet and subnet

查看:125
本文介绍了将VM添加到现有的vnet和子网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用json文件创建虚拟机.除vnet和子网外,其他所有东西都运行良好,每次创建新的VM时,它都会创建一个新的vnet和子网,如何使用json模板创建VM并将它们分配给现有的vnet和子网?

I am using a json file to create a VM. Everything works good with exception of the vnet and subnet, every time I created a new VM, it creates a new vnet and subnet, how can I create VMs and assign them to an existing vnet and subnet using a json template?

推荐答案

您是否尝试过以下示例模板

Have you tried below sample template

https://github.com. com/Azure/azure-quickstart-templates/tree/master/201-vm-different-rg-vnet

您应该能够更新ARM模板,以将VM创建到现有的VNet中.

you should be able to update your ARM template to create your VM into an existing VNet.

这篇关于将VM添加到现有的vnet和子网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆