Access AppConfiguration from Function App using Managed Identity

Accessing Azure App Configuration using Managed Identity in Azure Functions is slightly different from accessing other Azure services. For most Azure services (Storage, Service Bus, Key Vault), you typically: Enable Managed Identity on the Function Grant RBAC access to the resource Create the SDK client using DefaultAzureCredential However, App Configuration is usually loaded as part of the application configuration pipeline at startup, so it must be added via the host builder. ...

February 21, 2026 · 1 min

Coding with Integrity

Coding with Integrity The real measure of a software engineer is simple — how you code when no one is watching. We often associate strong engineering with technical brilliance — mastering languages, designing scalable systems, or solving complex problems. But beyond skill, the most valuable attribute a software engineer can bring to the table is integrity. “Coding with Integrity, is how you code when you know that no one is going to review your code” ...

February 20, 2026 · 2 min

Managing Azure APIM Operation Policies in Terraform by Importing OpenAPI Specification

When using Terraform to import an OpenAPI/Swagger definition into Azure API Management (APIM), the API and its operations are created successfully. However, one subtle behavior can cause confusion when trying to manage operation-level policies declaratively. This post explains the issue and a simple workaround. The Scenario I was importing my API using Terraform: Swagger/OpenAPI definition imported into APIM API created successfully All operations appeared correctly in Azure Later, I wanted to attach operation-level policies using Terraform using azurerm_api_management_api_operation_policy ...

February 20, 2026 · 3 min

Demo workflow for Minikube

Photo by Shubham Dhage on Unsplash Photo by Shubham Dhage on Unsplash Here’s a ready-to-run “one-shot” demo workflow for Minikube that sets up a webserver deployment, exposes it, configures HPA, and generates load so you can see autoscaling in action immediately. You can copy-paste these commands one after the other in your terminal. Step 0: (Optional) Clean up old resources kubectl delete deployment webserver --ignore-not-found kubectl delete svc webserver --ignore-not-found kubectl delete hpa webserver --ignore-not-found kubectl delete pod load-generator --ignore-not-found ...

January 31, 2026 · 2 min

Using Model Overlays using .modelfile

Photo by Steve Johnson on Unsplash When you want to use a model but don’t want to keep initializing it with a specific persona, temperature, and other attributes, you can use the .modelfile Customization Approach. Step 1: Create a .modelfile as shown below (sys_admin.modelfile) # 1. THE BASE (Required) FROM llama3 # 2. BRAIN PHYSICS (Parameters) PARAMETER temperature 0.7 # Creativity (0.0 to 1.0+) PARAMETER num_ctx 4096 # How many “tokens” of memory it has PARAMETER top_k 40 # Limits the “vocabulary” pool for each word PARAMETER top_p 0.9 # Probability threshold for word choice PARAMETER repeat_penalty 1.1 # Prevents the AI from getting stuck in a loop PARAMETER stop “User:” # Tells the AI exactly when to stop talking PARAMETER stop “—” ...

January 31, 2026 · 3 min

Extracting Swagger definition for Azure Logic App and importing to Azure APIM

Use case — I want to import a Logic App as an API within my APIM instance. There is no direct way to get the swagger file of a logic app using CLI (at least, I could not figure out). So, detailing the steps to extract the swagger definition of a logic app. I use the generated swagger file to import a Logic App as an API within APIM using Azure CLI ...

June 10, 2024 · 2 min

Calling a Logic App from APIM

There are couple of ways to integrate an APIM with Logic App. The most common use case as far as I know is exposing the Logic App as an API on the APIM. The other scenario is calling a Logic App from APIM. I will provide the APIM policy snippet to call a Logic App. If you are using Managed Identity to authenticate to Logic App (will cover in a separate article), you can skip sending the bearer token. ...

May 22, 2024 · 2 min

Reducing Data Transfer Objects using Tuples in C#

I have come across quite a few ASP.NET Core WebAPI solutions where there is a inordinate number of Data Transfer Object (DTO) classes. This results in a kind of class explosion which I think can be avoided. Yes, DTOs do have their utility, no doubt. But, many a times as the application evolves and grows, we often end up with numerous DTOs and these DTOs sometimes differ just by a handful of attributes or in some cases they are a simple composition of multiple entities / DTOs. ...

November 25, 2021 · 4 min

How to get rid of a rouge instance in Azure App Service Plan

If you have been using Azure App Services for a while to host your API, there is a small chance that you would have encountered the issue with a faulty instance. Your API just doesn’t respond or keeps crashing in a particular instance. And, if your ARR Affinity was enabled, your problems will just be exacerbated. Some users will always be routed to the faulty instance. AFAIK, there are no straight forward way to release an instance that is allotted to you by Azure for the given App Service Plan. Adding more instances and removing instances (scale out / in) will not guarantee that the rogue instance will be released. I will share the approach I took to get rid of the rogue instance. Note that, the approach below needs your app service to be out of rotation and should not be serving incoming requests. ...

April 22, 2021 · 2 min

How I ended up writing cleaner PATCH calls using JSON Patch

I have written my fair share of RESTful API but am no expert by any measure. I had never given enough thought about the HTTP Verbs I should be using (like, PUT, POST, PATCH) while writing API. If a resource had to be created, I would automatically go for POST (_never considered the idempoten_cy angle at all) and if a resource had to be modified, I would go for PATCH. ...

July 6, 2020 · 5 min