Azure ARM nested templates targeting multiple scopes

In my last post, I talked about ARM template deployment scopes. All the templates in that post targeted a single scope. Instead, you can deploy resources at multiple scopes using the same ARM template. This is possible by nesting templates and setting the scope of the nested template. The resource type of the nested template …

Continue reading Azure ARM nested templates targeting multiple scopes

Azure ARM Template Scopes

Not long ago, you could only deploy resources to a resource group using ARM templates. To get create a resource group that you can deploy to, you had to use PowerShell to create the group first. That has all changed now. Now ARM templates can be used to deploy resources at Tenant, Management Group, Subscription, …

Continue reading Azure ARM Template Scopes

Correlation filters with AND condition – Azure Service Bus

This is a short post showing how to deploy an Azure Service Bus topic and subscription with a complex correlation filter. I posted an article a few days ago showing a simpler version of the template. The example shows a correlation filter with a filter expression containing multiple system properties and a custom property. The …

Continue reading Correlation filters with AND condition – Azure Service Bus

Deploying Azure Service Bus with filters

Azure Service Bus topics are used to deliver messages to multiple subscribers. By default a copy of the message is sent to each subscription. But this behavior can be changed by adding rules or filters to the subscription. When a subscription is created, a default rule is added to the subscription. The default rule is …

Continue reading Deploying Azure Service Bus with filters

Azure ARM Templates – Are nested loops possible?

Have you ever wanted to create a nested loop in an ARM template? Currently, it's not possible to create resources within a nested loop. You can use the copy element to create multiple instances of a resource by looping over an array. But you can't loop over an inner array to create sub-resources. For example, …

Continue reading Azure ARM Templates – Are nested loops possible?

Azure ARM Templates – Conditionally setting resource properties

Using Azure Resource Manager(ARM) templates, you can deploy resources based on some condition. You can use the Condition element or the If function to achieve this. When you want to conditionally deploy a top-level resource based on the value of a parameter, the condition element can be used. Conditions cannot be used with child resources. …

Continue reading Azure ARM Templates – Conditionally setting resource properties