Monday, October 24, 2022

Deploy AKS Cluster with GitHub Actions

GitHub actions facilitate automation of software workflows to enable continuous delivery and deployment. It has facility to customize your own workflows or utilize built-in workflows. This blog explains how to deploy Azure Kubernetes Cluster with Microsoft Create AKS Cluster action in GitHub Marketplace.

Pre-requisites:

  • GitHub repository
  • Basic knowledge on YAML build pipelines.

Let's get started.

Sunday, October 23, 2022

Find Network Adapter Status with PowerShell

This blog explains how to verify network adapter is enabled or disabled in Windows machine using a PowerShell script.

Following is the look up values for net connection status for Disconnected and Connected.

Disconnected

 0

Connected

 2


Thursday, October 20, 2022

GitHub Actions Secrets

Continuous integration and continuous deployment are well-known process in today's Software world which supported by several software workflow automation tools. No matter which tool you use, the secrets such as passwords should be hidden and secured. 

GitHub actions is a feature available in GitHub which can be utilized to create CI CD pipelines for the software products. This blog explains how to manage secrets in GitHub Action pipelines.

Pre-requisites: GitHub Repository 

Monday, September 19, 2022

Hiding Outputs of PowerShell

There might be situations where you want to hide outputs from PowerShell scripts. This blog explains how to achieve that.

Following code sample is used to connect with azure portal and show the resource group details. To avoid output values visible in the logs, we can add | Out-Null as shown in the following sample. You can learn more about Out-Null from here.

Wednesday, September 14, 2022

Resolve "maximum shards open; [type=validation_exception]" in Chef Automate Dashboard

This blog explains how to fix Chef dashboard compliance failure due to exceeding shards limit, which may give you an error similar to below.

Issue: Chef automate compliance node connection failing with following error message.

invalid output Report processing error: rpc error: code = Internal desc = InsertInspecReport: elastic: Error 400 (Bad Request): Validation Failed: 1: this action would add [10] total shards, but this cluster currently has [998]/[1000] maximum shards open; [type=validation_exception]

Friday, September 9, 2022

Terraform State List and Terraform Graph

This blog explains two useful commands available in Terraform.

Tip 01

You might have a requirement to view resources in terraform state file to get an idea on resources already applied with your Terraform script. But, if you try to do it by reading the state file, it is not an easy task. You can get list of resources available in Terraform state file with a simple command as explain below.

Monday, August 22, 2022

Resolve Chef Kitchen Verify Error "Cannot converge without accepting the Chef Infra Client License"

You might have experienced, Azure pipeline failing from kitchen verify step due to Chef Infra client License not accepted error while  creating a Chef test kitchen in Azure. Let's look at how to fix this issue in this post.

Wednesday, August 17, 2022

Creating Chef Test Kitchen in Azure Using Azure Pipelines

When you are working with Chef, you can use chef’s integrated testing framework to test recipes to ensures recipes run as expected before applying recipes to production. This blog explains how to configure, chef test kitchen in an Azure VM using Azure DevOps pipeline.