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?
相关问题
- running headless chrome in an microsoft azure web
- Docker task in Azure devops won't accept "$(pw
- Register MicroServices in Azure Active Directory (
- Removing VHD's from Azure Resource Manager aft
- Cannot use the Knowledge academic API
相关文章
- SQL Azure Reset autoincrement
- How to cast Azure DocumentDB Document class to my
- Can't get azure web role to run locally using
- Azure WebApp - Unable to auto-detect the runtime s
- How to change region for Azure WebSite
- Azure webjob vs cloud service
- Azure data transfer Identity Column Seed Jumped by
- Download Azure web app?
Have you tried below sample template
https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-different-rg-vnet
you should be able to update your ARM template to create your VM into an existing VNet.
am assuming by json, you mean an ARM Template.
you should be able to do that by grabbing a subnet reference to the existing subnet on your existing VNET and then associating your new VM's NIC to the subnet reference you obtained. have a look at sample here