Created
September 20, 2016 07:12
-
-
Save nivleshc/51fa1d6867de2e4986d1d8784299266e to your computer and use it in GitHub Desktop.
Deployment Template that updates the network interface settings of a virtual machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"nicName": { | |
"type": "string", | |
"metadata": { | |
"Description": "The name of the NIC to Create or Update" | |
} | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"metadata": { | |
"Description": "The IP configurations of the NIC" | |
} | |
}, | |
"dnsServers": { | |
"type": "array", | |
"metadata": { | |
"Description": "The DNS Servers of the NIC" | |
} | |
} | |
}, | |
"resources": [ | |
{ | |
"name": "[parameters('nicName')]", | |
"type": "Microsoft.Network/networkInterfaces", | |
"location": "[resourceGroup().location]", | |
"apiVersion": "2015-05-01-preview", | |
"properties": { | |
"ipConfigurations": "[parameters('ipConfigurations')]", | |
"dnsSettings": { | |
"dnsServers": "[parameters('dnsServers')]" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment