How to pass parameters to Azure yaml templates?
Introduction The previous article discussed the Azure templates, how to create them, and the benefits of using them at different levels (tasks, jobs, and stages). I don’t want to go through that again...
View ArticleHow to create Azure Pipeline templates?
Introduction In Azure Pipeline, we can create YAML-based templates. Templates are used to avoid creating the same multiple tasks and you can call them in the multiple pipelines. Like modules/functions,...
View ArticleHow to declare variables in Golang?
Declaring Variables in Go: A Simple Guide When learning a new programming language, understanding how to declare and use variables is crucial. In Go, also known as Golang, variable declaration is...
View ArticleHow to authenticate to Azure using Python?
Introduction: As businesses increasingly move towards cloud-based solutions, Azure has emerged as a prominent choice for hosting various services and applications. Python, one of the most popular...
View ArticleHow to concatenate strings in Python?
a. Concat String with ‘+’ Operator In Python concatenating strings are easy. For example, let’s say you have two strings to merge then you put the plus (‘+’) operator to merge two strings. str1 =...
View ArticleDictionary in Python
Create a dictionary in Python A dictionary in Python is a key-value pair of objects. Key-value pairs can be different data types. To create an empty dictionary, below is the syntax. dict_example = {}...
View ArticleHow to pass multiple arguments to docker run?
Let’s say your docker build image looks something like this, FROM mcr.microsoft.com/azure-powershell COPY ./testscript.ps1 tmp/testscript.ps1 ENV Parameter1="Val1" ENV Parameter2="Val2" CMD...
View ArticleHow to: Error response from daemon: Bad response from Docker engine
Error: response from daemon: Bad response from Docker engine When you run docker commands you may have encountered the error “ERROR: Error response from daemon: Bad response from Docker engine”...
View ArticleHow to set environment variables in Azure Pipeline?
You can set environment variables in Azure Pipeline so they can be used in the scripts and application code. This variable is process level means it is available during that pipeline run only. To set...
View ArticleHow to create dynamic array in PowerShell?
There are two types of arrays in PowerShell. Fixed array Dynamic Array Fixed Array Fixed arrays are the ones whose values cannot be removed or added. Their sizes are fixed. For example, below is the...
View ArticleHow to Set Environment Variable using GoLang?
In the previous articles, we mentioned setting up environment variables using PowerShell and Python in Windows OS. In this article, we will set up environment variables with GoLang. Set up environment...
View ArticleHow to Set Environment Variable in Windows using Python?
In the previous article, we have seen how to set the environment variables with GUI, PowerShell, and CMD. In this section, let’s continue to set the environment variable programmatically using Python...
View ArticleHow to set environment variables in Windows?
What is an environment variable in Windows? In Windows, an environment variable is a map/hash kind of variable with a Key-Value pair that stores the values of the variable inside the operating system...
View ArticleHow to install Azure DevOps Extension in Azure CLI?
Why do we need an Azure DevOps (ADO) extension in Azure CLI? Well, you know how to manage Azure DevOps services (Pipeline, workItems, Repo, Artifacts, etc) from the portal. If you are a DevOps engineer...
View ArticleHow to use terraform modules?
Why terraform module is required? If you are new to terraform, I will advise you to first check the terraform basics. Alright, you might have worked with multiple programming languages where you want...
View ArticleWhat is a .gitignore file?
Introduction You need to know some git basics to read further this article. The “.GITIGNORE” (Git Ignore) file in the repository is used to exclude files from being committed and checked into the Git...
View ArticleHow to use for_each in terraform?
Use of for_each in Terraform In Terraform, for_each is used to create multiple instances of the resources. It works with both resource and module blocks. for_each works with the below variables. Set...
View ArticleHow to import module in Python?
Import a module in Python As we know to work with any functions or class of that module, we need to install and import that module. To import a module in Python programming language, the import command...
View ArticleWhat is requirements.txt in Python?
Need of requirements.txt in Python People who worked on Python know that the Python language has a vast amount of libraries and packages that you need to install and use as per your script...
View ArticleHow to unzip files using Python?
We need to use the zipfile module to extract the files using Python. Check the Python zipFile module-related documents on its official site:...
View Article