azure-resource-managerazure-virtual-networkazure-rm-templateazure-vm-templates

Can I attach a VM to NIC through an arm template?


When I tried doing this with portal I could achieve it from virtual machine networking .. I wanted to know if it works with either NIC or VM arm-template .I tried the both and they failed. 1.Network profile - Networking ID 2.Virtual Machine -ID


Solution

  • It seems you cannot attach an existing or a new NIC and attach to the existing VM through template. There is no property of NIC to achieve it. You just can create a VM and attach an existing or new NIC to it. For more details about template of NIC, see Microsoft.Network/networkInterfaces template reference.