Automating container deployment on AKS using Azure DevOps – Part 4

This is the last part in the series "Automating container deployment on AKS using Azure DevOps". So far we have automated the creation of ACR and AKS, built and pushed the container to the Azure Container Registry. In this post, we'll create a release pipeline that will pull the container from ACR and deploy it …

Continue reading Automating container deployment on AKS using Azure DevOps – Part 4

Automating container deployment on AKS using Azure DevOps – Part 3

In Part 3 of this series, I'll automate the creation of AKS. We will add a AKS resource to the ARM template. A new Azure CLI task will be added to the pipeline to assign AcrPull role to the SP of the kubelet. ARM Template The below template shows the addition of the AKS cluster …

Continue reading Automating container deployment on AKS using Azure DevOps – Part 3

Automating container deployment on AKS using Azure DevOps – Part 2

In Part 2 of this series, I’m going to demonstrate automating ACR creation. To follow along with this post you’ll need all the files created in Part 1. I’m also assuming you have a build pipeline setup that builds and pushes a container to ACR. We'll now add an ARM template to deploy ACR. You …

Continue reading Automating container deployment on AKS using Azure DevOps – Part 2

Automating container deployment on AKS using Azure DevOps – Part 1

Introduction In this series of posts, I’ll demonstrate the deployment of Azure Container Registry and Azure Kubernetes Service. I’ll also push a Web API container to ACR and pull that container and deploy it on an AKS pod. To keep things simple, AKS will consist of only one pod. Managed identity will be enabled on …

Continue reading Automating container deployment on AKS using Azure DevOps – Part 1

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

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 …

Continue reading Creating custom roles in Azure

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?