How 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 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: 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 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 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 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 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 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 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 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 Article