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, …
Category: Azure
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 …
Creating custom roles in Azure
Recently, I've been working on an Azure Function that'll automate the creation of a resource group and a Cosmos DB account within that resource group. The function app was configured to use MSI(Managed Service Identity). The function app will run under this identity and the MSI needs to have access to perform the required operations …
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
Azure ARM Templates – Api versions of resources
When you are working with ARM templates you might want to quickly check the latest API version for different resources. This information is scattered across multiple help pages. You can use the PowerShell command Get-AzureRmResourceProvider to get the latest API version for a particular resource. The below snippet gets the latest API version for the …
Continue reading Azure ARM Templates – Api versions of resources
Deploying Azure resources using ARM templates
This post describes the process of creating a Resource Group project, adding resources and deploying the resources to Azure. The following image illustrates the resources that are being deployed and their dependencies. Creating a Resource Group deployment project Select Azure Resource Group under the Cloud section in the New Project window. A main ARM template …
Continue reading Deploying Azure resources using ARM templates
Developing Azure Functions locally
Azure Functions enable running tasks in the background and can work with a range of triggers. You start by creating a Function App and you can add multiple functions to that app. The functions can be in different languages. This post describes how to: Set up your local environment Add the required packages Add triggers …
Creating an Azure Search index
In a previous post, I described how I setup a KB data store using Cosmos DB. This post builds on top of that and explains how to create a search index with Cosmos DB as the data source. Azure Search has a free tier that allows creation of three indexes on a data source of …