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, …
Author: rjayapal
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
Passing JSON Web Tokens to Web API
Part I of this post talked about authenticating a user in an Angular Single Page Application and fetching the id_token. The app still needs to be integrated with the Web API. The following changes are required in order to make the Web API accept and use the JSON Web Token. The Angular Single Page Application …
Using Azure AD to Authenticate users in an Angular app
This post describes the process of setting up Azure AD and modifying an Angular Single Page Application to authenticate users using the ADAL library. Angular version 4 is being used. Part II of the post will describe passing the authentication token to the back-end Web API. Azure AD setup - Creating applications in AD Follow …
Continue reading Using Azure AD to Authenticate users in an Angular app