Something that was announced recently at Microsoft Build 2017 in the US was all the new features released part of Azure Resource Manager deployment using JSON templates.
- Property Iteration – copying of properties within resources
- Resource Iteration – parallel or serial copying of resources in CopySet constructs
- Cross Resource Group Deployment
The video of the announcement is at the very bottom. However the one that took my fancy and one that was asked about by a recent customer was resource iteration and using arrays to create multiple copies of a resource in Azure using parallel copies.
The online documentation covers it in detail – Deploy multiple instances of a resource or property in Azure Resource Manager templates. But directly below is a slide from my recent customer presentation that covers the outline of the copy construct, then further underneath is my sample JSON code which deploys Azure Service Bus using an array and parallel copies to deploy service bus across to 3 regions at once.
I also include a screenshot to what it looks like in Azure after deployment has taken place.
You can find the rest of the sample scripts here – https://github.com/rjmax/Build2017