Welcome to KasdevTech ☁️

Cloud-native blogs on Azure, DevOps, FinOps & more.

Azure Application Gateway – Backend Health Unknown

Azure Application Gateway – Backend Health Unknown? If you’re using Azure Application Gateway and you see: Backend health: UNKNOWN Backend health: UNHEALTHY Don’t panic. This is a common issue — and we’ll walk through how to fix it end-to-end, even if you’re new to Azure. What Does “Unknown” or “Unhealthy” Mean? Unknown = App Gateway can’t reach the backend (network issue) Unhealthy = App Gateway can reach the backend, but probe failed (wrong path, port, etc.) Step-by-Step Troubleshooting Step 1: Check Backend Pool IP/VM Go to: App Gateway → Backend pools Confirm: ...

August 3, 2025 · 3 min · Kasi Suresh

Terraform Role Assignment Fails on Azure — Fixed with Correct RBAC & Automation

Terraform often fails when assigning roles in Azure due to RBAC permission issues. Here’s how I fixed this in a CI/CD pipeline using the right roles and automation.

July 29, 2025 · 2 min · Kasi Suresh

Automate Azure Cleanup — Before It Costs

Automate Azure Cleanup — Before It Costs Me Most of us don’t realize how fast an Azure bill can grow — until we get that painful monthly invoice. The surprise? It’s rarely because of production workloads. It’s the small, forgotten things: Test VMs that should’ve been deleted Staging App Services left running Orphaned managed disks Zombie NICs that no one even remembers creating These idle resources quietly drain money. Solution: Weekly Automated Cleanup Instead of manually checking everything, I built a simple system that does it all for me — safely and automatically. ...

July 28, 2025 · 3 min · Kasi Suresh

RAG (Retrieval-Augmented Generation)

Generative AI is powerful—but what if your model needs real-time, domain-specific, or private data? That’s where RAG (Retrieval-Augmented Generation) comes in. What is RAG? RAG stands for Retrieval-Augmented Generation. It’s a technique that enhances a language model’s response by retrieving relevant documents from a knowledge base and injecting them into the prompt. Think of it as “chat with memory or custom knowledge.” How RAG Works (Simplified) User asks a question System retrieves relevant context (documents) from a vector database (like ChromaDB or Pinecone) Retrieved context is combined with the user’s question The language model (like GPT-4o) generates a response using this combined input Example: Build a RAG App with FastAPI + OpenAI + ChromaDB Let’s walk through an architecture example of a chatbot that answers questions from your company docs. ...

July 21, 2025 · 1 min · Kasi Suresh

Terraform Destroy Fails in Azure Due to Resource Dependencies

Running terraform destroy in Azure sometimes fails due to implicit resource dependencies. Here’s how I resolved a common NSG and subnet dependency issue and ensured clean teardown.

July 16, 2025 · 2 min · Kasi Suresh

Terraform State Corruption in Azure — Recovered

Faced a corrupted Terraform state file in Azure Blob Storage? Here’s a real-world recovery guide to restore infrastructure state safely in 4 simple steps.

July 16, 2025 · 1 min · Kasi Suresh

Azure DevOps pipeline stuck on 'Initialize job' Step-by-step fix

Azure DevOps pipeline stuck on ‘Initialize job’? Step-by-step fix Ever had your Azure DevOps pipeline hang at the very first step – Initialize job – and not move forward? This issue is frustrating and common — especially with self-hosted agents, permissions misconfiguration, or pipeline resource locks. Let’s break down exactly how to troubleshoot and fix this problem step-by-step. What does ‘Initialize job’ actually mean? It’s the very first phase in a pipeline run: ...

July 9, 2025 · 2 min · Kasi Suresh

Azure Network Reference Architectures

Azure Network Reference Architectures By now, you’ve learned about VNets, peering, firewalls, DNS, and more. Let’s bring it all together with real Azure networking architectures you can apply in production. Design Pattern 1: Hub-Spoke with VPN Gateway Perfect for hybrid connectivity and centralized control. Key Features: Central Hub VNet with: VPN Gateway Azure Firewall or NVA DDoS Protection Multiple Spoke VNets for apps/environments VNet Peering for traffic Diagram: [On-Premises] | ====== Site-to-Site VPN ====== | +------------------+ | Hub VNet | | VPN + Firewall | +------------------+ / | \ / | \ [Spoke A] [Spoke B] [Spoke C] Design Pattern 2: Private Link + NAT Gateway For secure outbound and fully private access to PaaS. ...

July 8, 2025 · 2 min · Kasi Suresh

Azure Networking Cost Optimization & Monitoring Best Practices

Azure Networking Cost Optimization & Monitoring Azure networking is powerful — but can get expensive if you’re not careful. This post covers: What costs the most in Azure networking? How to reduce cost without compromising security Tools to monitor and alert for network health What Costs the Most? Resource Cost Impact Azure Firewall $$$ — Pay per deployment + GB used ExpressRoute $$$ — Monthly base + bandwidth Data Transfer Charges for traffic between regions or zones VPN Gateway Based on SKU and time Peering Inbound = Free, Outbound = $$$ Public IP Basic = Free, Standard = Billable Cost Optimization Tips Use NAT Gateway Instead of Load Balancer SNAT Avoid port exhaustion More scalable for outbound traffic Predictable IP and cost Consolidate Firewalls in Hub One Azure Firewall in the Hub VNet Route all traffic through it Use UDRs and ASGs to enforce control Avoid Cross-Region Traffic Peering across regions = paid outbound Keep apps and databases in same region when possible Use Azure Cost Management Enable tags on VNet, Firewall, NAT Gateway Group by project/team/app Set up budgets and alerts Monitoring Tools Tool Use For Network Watcher Packet capture, NSG flow logs Azure Monitor Metrics for Firewall, VPN, Gateway Log Analytics Query NSG and Firewall logs Connection Monitor End-to-end checks (latency, loss) Monitor These Metrics Firewall throughput NAT Gateway SNAT ports used VPN Tunnel status (S2S, P2S) Inbound/outbound bytes per VNet Number of dropped packets (NSG) Set Alerts (Examples) Alert if VPN Gateway is down Alert if Azure Firewall hits 80% throughput Alert on unexpected data transfer spikes Final Tip Secure, scalable Azure networking is possible without breaking the bank. But it requires: ...

July 8, 2025 · 2 min · Kasi Suresh

How to Build Your Own AI Chatbot

Want to build your own AI-powered chatbot for your business or blog? Here’s a simplified step-by-step blueprint that works in 2025: Tech Stack Backend: FastAPI + OpenAI API Frontend: React + Tailwind CSS Memory / Search: ChromaDB or Pinecone Hosting: Render.com + GitHub Pages (free tier) Steps to Build Get an OpenAI API Key from https://platform.openai.com Setup FastAPI App with a /chat endpoint Use ChromaDB or Pinecone to store and retrieve past questions/answers (for RAG) Create React Chat UI with an input box, chat bubbles, and streaming response Deploy Frontend to GitHub Pages and Backend to Render.com (free tier)

July 8, 2025 · 1 min · Kasi Suresh