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.
Monday, August 22, 2022
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.
Thursday, August 11, 2022
Resolve "Kitchen.yml does not exist" Issue in Azure Pipelines with Execute Chef Component Task
You might encounter "kitchen.yml does not exist" issue with execute chef component task in Azure pipelines. Reason for this failure is, Azure DevOps pipeline task is looking for the kitchen.yml file in the Build.SourcesDirectory by default. Further, there is no parameter to pass the kitchen.yml file location with kitchen create command.
Thursday, July 21, 2022
How to Enable Read Write for Deployed Content in Kudus When Using Web Deploy Package
The Build Packages which is packaged as webdeploy and deployed to Azure App service using Kudu, only have the read access . However, If you want to change content using kudu of Azure app service or stop/start a web job, you would not be able to do so due to not having wright permission. This blog explains how to enable read write permission to content in an app service deployed using a web deploy package.
You would be able to see the read only mode message similar to following image.
Friday, July 15, 2022
How to Successfully Deploy .NET Web App Built with Windows Agent Using Linux Agents
When building a .NET Web App with /p:WebPublishMethod=Package build argument to package as a web deployment package, the package is created with a folder structure where all the dll files are located in inner subfolder. If we use Azure DevOps Windows agents, We can deploy these packages using msdeploy.exe to correct path of Azure App service without worrying about the folder structure of the build package. However, If we use Azure DevOps Linux agents to deploy, it deploys packages with kudus copy and copying the inner folder structure to wwwroot. Then the App service will fail to run the .NET web application. This blog explains how to correctly deploy a .NET Web App built with Windows as a web deployment package using Azure DevOps Linux agents.
Web deployment package would create a folder hierarchy such as below. If we deploy below package using Linux agent, it will copy content folder with the all the sub folders to the wwwroot of the App service making the app to not runnable.
Thursday, June 30, 2022
Setting up Chef Infra server in Ubuntu 20.04 WSL2 in Windows 10/11
This blog explains how to configure chef infra server in WSL2 in Windows 10/11.
Prerequisites:
- WSL2 with Ubuntu 20.04 installed
Let's get started,
- Go to https://www.chef.io/downloads/tools/infra-server/ and download the relevant infra server.
- Copy downloaded .deb file to your work folder.
- Open WSL2 and run the following command to install the chef infra server on WSL2
sudo dpkg -i chef-server-core-<version>.deb
- Run the below command to start all the Chef services.
Monday, June 20, 2022
Resolve "System has not been booted with systemd as init system (PID 1). Can't operate" in WSL2 Ubuntu 20.04 distro
Sunday, May 15, 2022
Drawing Workflow Charts in Azure DevOps Wikis
Azure DevOps wikis supports Mermaid syntax that can be used to draw diagrams such as flow charts, UML diagrams, pie charts, Gantt charts and many more.
This blog explains mermaid syntax sample in Azure DevOps
- Script starts with :::mermaid and ends with :::
- Diagram type can be defined as graph, pie and more
- Shape style can be selected as,
() - rounded rectangle
{} - diamond
[] - rectangle
-
Azure DevOps YAML pipelines now support the stringList parameter type, which allows you to present multiple selectable options as checkboxe...
-
As DevOps engineers, you get requirements to do scripts to perform several actions on application or get status of the application backend ...
-
This blog explains how to use GitHub Copilot Chat to perform various Azure Kubernetes Service (AKS) tasks, such as creating an AKS cluster a...
