Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created September 20, 2016 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/51fa1d6867de2e4986d1d8784299266e to your computer and use it in GitHub Desktop.
Save nivleshc/51fa1d6867de2e4986d1d8784299266e to your computer and use it in GitHub Desktop.
Deployment Template that updates the network interface settings of a virtual machine
{
"$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