Resolve "Unable to connect to the server: getting credentials: exec:...
az aks get-credentials is used to get the kubeconfig updated so that we can access AKS clusters from a terminal (You need to first use az login and az account set --subscription to connect to your...
View ArticleSetup jsonnet-bundler in WSL2
We need jsonnet-bundler to package the jsonnet projects For example, to generate the required Prometheus rules and Grafana dashboards in kubernetes-mixin project used for Kubernetes monitoring,...
View ArticleReplace String in Variable in Azure DevOps YAML Pipelines
In Azure DevOps YAML pipelines there are several functions available for you to use. replace is such a useful function, which you can use to replace string segements within a string. Let's look at how...
View ArticleGetting Started with GitHub Copilot with VS Code
GitHub Copilot is the AI pair programmer who will assit us in writing code efficiently, while we are working with VS Code, Visual Studio, JetBrains IDEs or Neovim. Let's explore how to get started with...
View ArticleCheck The C# Language Version of a Project
C# Language version used in your project is determined by the .NET Framework you are using. We can set specific language version for a project if required for exxampe if we need to use the preview...
View ArticleNo More " Escaping Needed with C# 11
Writing json body in C# code as a string variable value to pass on to a method or service, is something you may hate as you need to escape every " that you use in your json specification, even though...
View ArticleWriting a json Easily and Elegently in in C# 11
In the previous post "No More " Escaping Needed with C# 11" we have discussed, how the json can be writen in C# code, without having to escape each occurance of double quote, when we use the new C# 11...
View ArticleAzure Redis Connectivity Checker App
Here is a simple .NET application to test connectivity to Azure Redis Cache. The application code is available in GitHub chamindac/RedisConnectionChecker. Refer the video for more details.
View ArticleUse Template Parameter to Create Array in Bash Task in Azure Pipelines
Converting Azure pipeline parameter type of object, which contain an array of strings, to an array object in bash script task is not clearly documented. We can use the join expression for Azure...
View ArticleCreate Deployment Groups Dynamically in Azure DevOps Release Pipeline
Deployment groups are used in Azure DevOps classic release pipelines to define groups of targets an application should be deployed. We may sometime need to create these deployment groups dyamically...
View ArticleResolve "BadRequest message: error: code: InUseSubnetCannotBeDeleted" with...
Bicep is really simple and easy to implement infrastructure as Code tool for Azure. However, there is a bit of an issue with subnet resource when we try to redeploy. Even without no changes Bicep is...
View ArticleSet Value for a Secret Variable in Azure Release Pipelines while Triggering...
You might want to trigger a release from another release pipeline, specially if you are deploying to a multi tenant application environment. In such cases when you trigger a pipeline from another...
View ArticleCreate Azure CNI based AKS Cluster with Application Gateway Ingress...
AKS clusters can be created with two networking types Kubenet (basic networking) and Azure CNI (advanced networking). If you are using Windows nodes as well in your AKS cluster you must use Azure CNI...
View ArticleCreating AKS Node Count Grafana Panel with Azure Monitor
AKS can be setup with automatic node scaling using VM scalesets in node pools. It will be useful to monitor how the nodes are scaling over time to have a good insights, in to the AKS cluster nodes...
View ArticleHorizontal Pod Autoscaler Desired Replica Count Grafana Chart with Azure...
Horizontal Pod Autoscaler (HPA) in Kubernetes manage the number of instances for each pod deployment based on the scale settings specified. Itw would be good insights to monitor the demand for scaling...
View ArticlePod Counts Grafana Chart with Azure Monitor for AKS
We have discussed how to create a Grafana panel for view Horizontal Pod Autoscaler (HPA) desired pod counts in AKS (Azure Kubernetes Services) in the post "Horizontal Pod Autoscaler Desired Replica...
View ArticleRun .NET Core 3.1 Application with Windows Server Core 2019 Docker Image
You would love to run your .NET applications as Linux containers instead of using Windows containers. However, there are situations that you have to run your .NET applications as Windows containers...
View ArticleResolve "encountered an error during hcsshim::System::CreateProcess: failure...
As discussed in the post "Run .NET Core 3.1 Application with Windows Server Core 2019 Docker Image" there could be situations you need to setup .NET Core 3.1 on Windows servercore docker image....
View ArticlePod Restart Counts Grafana Chart with Azure Monitor for AKS
If your pods are often restarting it might indicate a problem you might have in your application deployed to AKS. For example, there was some significant number of restarts seen in .NET 3.1...
View ArticleContainer Restart Counts Grafana Chart with Azure Monitor for AKS
We have disucussed pod restart Grafana panel in AKS in the post "Pod Restart Counts Grafana Chart with Azure Monitor for AKS". We can create similar panel for container restarts using managed Grafana...
View Article