Exception Handling 101: Stop Script Failures in Their Tracks with Custom TryโCatch Tricks
An error in a PowerShell script will prevent it from completing script execution successfully. Using error handling with try-catch blocks
Exploring Different Ways to Check DNS Resolution in Windows PowerShell
Performing DNS resolution in Windows using PowerShell is a fundamental task for network administrators and IT professionals. Here are several
Where to use the โreplace operator and Replace() method & its difference
Introduction Manipulating text is a common task in any scripting or programming language, and PowerShell is no exception. Whether you
How to Use PowerShell for DNS Record Monitoring and Troubleshooting
Introduction DNS (Domain Name System) records are the backbone of internet connectivity for web servers, mail servers, and other networked
Cache Purging in Azure Front Door with Azure PowerShell and CLI
Introduction Azure Front Door is a global, scalable entry point for fast delivery of your applications. It provides load
How to Create Log File using Start-Transcript cmdlet in PowerShell
What is Start-Transcript? As per MSDN, The Start-Transcript cmdlet creates a record of all or part of a PowerShell session
How to remove Multiple bindings in IIS using PowerShell script
As you aware large number of unused URLs in the servers will lead critical to maintenance during the maintenance
Quickly Display Files with PowerShell: Understanding Cat and Get-Content
PowerShell offers powerful cmdlets for managing and Display Files with PowerShell, and among them, Cat (alias for Get-Content) and Get-Content
Getting Redirected (301/302) URIโs in PowerShell
In my working environment, we are managing more than 500+ sites. Usually, sometimes users will make a redirect to other
How to run PowerShell Script from a Batch File
What is a .bat file? A batch file is a text file that the Windows cmd.exe command line processor executes
Export CSV file with Array values using Powershell
One of the best and easiest ways to put data into an easy-to-read format is with a CSV (comma-separated values
Add Tags On An AZURE SQL DATABASE Using PowerShell
As as system admin/DevOps guys, usually during audit time we need to complete the finding (by make the grouping to
Powershell Error handling with $ERROR Variable
In all programming, the code will have errors, and troubleshooting those problems will be difficult. Like another programming language, PowerShell
How to Create and Use PowerShell Modules
What is Module in PowerShell? As per docs.microsoft.com, A module is a package that contains PowerShell members, such as cmdlets,
How to Check SSL Certificate Expiration Date in PowerShell
SSL ( Secure Sockets Layer) is a digital certificate that provides an encrypted connection between server and client and authenticates
Linux Sed Command: The Fastest Way to Find & Replace Text (Real-World DevOps Use Case)
Introduction: The sed command, a powerful stream editor in Linux/Unix, is a cornerstone for text manipulation. This guide will delve
Linux Secrets: How to List Environment Variables (Beginners to Pros)
An environment variable is a dynamic object that defines a location to store some value. We can change the behavior
Dockerfile Mastery: Step-by-Step Guide to Building & Deploying Node.js Containers
Introduction Docker has revolutionized how developers build, ship, and run applications by simplifying dependency management and environment consistency. At the
Step-by-Step Guide: Creating Simple Docker Image from a Dockerfile
Docker has revolutionized how developers build, ship, and run applications by simplifying dependency management and environment consistency. At the core
How to Use Policy Fragments to Simplify Your Azure API Management Policies
In the evolving landscape of API-driven architectures, Azure API Management (APIM) has emerged as a critical tool for securing, scaling,
How to check Website status on the Linux Server
Maintaining website uptime is essential for a positive user experience, as even short periods of downtime can frustrate users and
Understanding Environment Variables in Linux: A Must-Know for DevOps and System Admins
What Are Environment Variables in Linux? Environment Variables in Linux are dynamic values that the operating system and various
Cross-Subscription Code Integration: How to Access External Azure DevOps Repos Like a Pro
Introduction Efficiently integrating code from external Azure DevOps repositories is crucial for collaborative projects and streamlined development workflows. This comprehensive
How To Copy Secrets From KeyVault To Another KeyVault In Azure
Introduction Azure Key Vault is a secure cloud service for managing secrets, encryption keys, and certificates. In modern multi-region deployments,
How to Delete a Blob from an Azure Storage using PowerShell
In one of my automation (Delete a Blob), I need to delete the previously stored reports (reports will always append
How to view the secret variables in Azure DevOps
Today, I will be taking about a technique using which you can view the secret variables in Azure DevOps. Introduction
How to pass objects between tasks in Azure pipeline
In our previous post, we already discussed about "How to pass values between Tasks in a Pipeline" where we can
Linux Environment Variables
What Are Linux Environment Variables? Linux environment variables are dynamic values that the operating system and various applications use to
Delete File or Directory in Linux with Scheduled Azure DevOps Pipeline
In my working environment, we are managing more Linux based Agent machines for building the solution to create artifacts and
How to Drop SQL database using PowerShell
My Scenario: As a System Admin/DevOps Guys, we got urgent cost optimization process and it need to done in very
Top Kubectl Commands Every DevOps Engineer Needs for Kubernetes Troubleshooting
Introduction In the fast-paced world of cloud-native applications, Azure Kubernetes Service (AKS) has become a go-to platform for DevOps teams across the world. However, managing and troubleshooting Kubernetes clusters can
Troubleshooting DNS Failures in Azure Kubernetes Service (AKS) Clusters
Introduction Monitoring DNS resolution inside Azure Kubernetes Service (AKS) is essential for maintaining reliable application connectivity. When DNS failures occur, services can experience intermittent connectivity or complete outages. One effective
Mastering Persistent Storage in Azure Kubernetes Service (AKS): A Step-by-Step Guide Using Azure Disks
Kubernetes is the leading managed container orchestration platform preferred by customers deploying microservices-based architectures in the cloud. Azure Kubernetes Service offers Kubernetes as a managed service, where the container orchestration
When AKS Wonโt Scale Down: How We Fixed a Real Node Pool Autoscaling Failure in Production
Managing autoscaling in Azure Kubernetes Service (AKS) is not always straightforward. Recently, we ran into a problem where node pool scale down was not happening in both regions, and workloads
Boost Application Reliability with Kubernetes postStart Hooks (Real-World Examples Inside)
Introduction Hooks allow developers to run custom logic at critical points in a containerโs lifecycle. These hooks help with initialization and graceful shutdown, ensuring applications are reliable, performant, and consistent.
Mastering the Kubernetes kubectl Patch Command with Examples in Azure AKS
Managing Kubernetes resources efficiently is essential for scalable cloud-native applications. Theย kubectl patchย command lets you quickly update running Kubernetes resources โ such as labels, container images, or replicas โ without redeploying
Update AKS Node Pools with Labels: A Comprehensive Guide Using Azure CLI
In today's dynamic cloud environments, effectively managing your Azure Kubernetes Service (AKS) clusters is paramount. Labels offer a robust mechanism for organizing and optimizing your AKS resources, enabling efficient workload
Mastering Kubernetes HPA: How to Filter Horizontal Pod Autoscalers on Linux and Windows
Introduction to Horizontal Pod Autoscalers (HPAs) In Kubernetes, a Horizontal Pod Autoscaler (HPA) is a critical resource that automatically scales the number of pods in a deployment, replica set, or
Step-by-Step Guide: How to Create & Manage Custom Kubernetes Namespaces using Kubectl
Namespace are a foundational concept in Kubernetes that enable logical isolation of resources within a cluster. They allow teams, projects, or environments (e.g., dev, staging, prod) to share the same
How to Copy Files from and to Kubernetes Pods: A Comprehensive Guide for Windows and Linux
Introduction Azure Kubernetes Service (AKS) is a powerful platform for deploying and managing containerized applications. However, managing files within pods can sometimes be challenging. This article will guide you through
How to Use scripts inside configMap in Windows-Based Kubernetes Deployments: A Step-by-Step Guide
If you're running Windows-based applications on Kubernetes, using ConfigMaps to manage startup scripts ensures consistency, scalability, and easier configuration management. This guide walks you through the process of creating a
Mastering Kubernetes Event Logs: Real-Time Debugging, Monitoring & Alerts Made Easy
However, the teams that manage these clusters need to know whatโs happening to the state of objects in the cluster, and this in turn introduces a requirement to gather real-time
How to Restart Pod in Kubernetes with rollout: A Detailed Guide
Kubernetes provides a robust mechanism for managing application deployments, ensuring high availability and smooth rollouts. The kubectl rollout status command is essential for monitoring deployment progress, while various methods exist
Configure autoscaling in Azure Kubernetes Service with CPU & Memory
Introduction: Azure Kubernetes Service (AKS) empowers you to dynamically scale your applications to meet fluctuating demands. By leveraging CPU and memory-based autoscaling, you can optimize resource allocation, minimize costs, and
How To Connect Azure Kubernetes Cluster Using Kubectl
Introduction Azure Kubernetes Service (AKS) simplifies the deployment, management, and scaling of containerized applications using Kubernetes. To interact with an AKS cluster, you need to establish a connection using