Skip to content

Instantly share code, notes, and snippets.

@bobalob
Last active January 17, 2017 21:17
Show Gist options
  • Save bobalob/243e1970a5c9601a33e48b0b37b88893 to your computer and use it in GitHub Desktop.
Save bobalob/243e1970a5c9601a33e48b0b37b88893 to your computer and use it in GitHub Desktop.
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"publicIpNames": {
"type": "array",
"defaultValue": [
"dave-ninja-ip",
"dave-super-ip",
"dave-mega-ip"
]
}
},
"variables": {},
"resources": [
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('publicIpNames')[copyIndex()]]",
"location": "[resourceGroup().location]",
"copy": {
"name": "publicIpLoop",
"count": "[length(parameters('publicIpNames'))]"
},
"properties": {
"publicIPAllocationMethod": "Dynamic"
}
}
],
"outputs": { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment