How to add Approval gates in ADO Yaml Pipeline?
The Automation Code
by Chirag Nagrekar
4d ago
Why Approval gate is required? The approval gate in the YAML pipeline is to protect the pipeline from accidentally running or prevent malicious intent of the Authorized user from running the pipeline. It will make the pipeline more robust. For example, let’s say you have an ADO pipeline that removes the unallocated resources from the subscription but management wants the data, and your capacity management team pulls the report on the last Monday of every month. Here comes the situation, your team member accidentally runs the pipeline before the capacity team pulls out the report. In this situa ..read more
Visit website
How to Solve – You must be in the docker-users group error?
The Automation Code
by Chirag Nagrekar
1w ago
Issue with Docker-Desktop on Windows Machine. Well, after the docker desktop installation, you might get the error “You are not allowed to use Docker. You must be in the docker-users group” on the windows platform. Docker Desktop error This error typically comes after the docker desktop installation. When you install docker desktop, docker local group docker-users is created and the user who has installed the software should be part of that group. How to get docker-users members? In windows machines, there are methods to get the local group members. Using GUI Open Computer Management by typing ..read more
Visit website
How to send Emails with SendGrid in ADO Pipeline?
The Automation Code
by Chirag Nagrekar
2w ago
What is SendGrid? SendGrid is a SaaS email service or delivery tool that helps send emails. We can consider SendGrid as an SMTP server. SendGrid is free for emails up to 100/day. Sendgrid is used for personal as well as Business as well but for our demo today I have used my personal account. To open your account in SendGrid just sign up on this website https://app.sendgrid.com and create an API key. We have not covered in detail how to create API for SendGrid that you can google and get it easily. ADO and SendGrid Integration Although SendGrid is a third-party tool, ADO provides a marketplace ..read more
Visit website
How to use secret value in Azure Pipeline?
The Automation Code
by Chirag Nagrekar
3w ago
In Azure Pipeline, sometimes you need to use sensitive values that cannot be displayed as plain text. In Azure Pipeline there is a provision to use secrets or passwords. There are two ways to achieve this. Methods to use secret values Azure pipeline secret variable Azure KeyVault Let’s see both of them. a. Using Azure pipeline Secret Va/riable We need to store the variables in a library group to use this method. For example, we have a library called WebApp_Build. Add secret value Here, AppPassword is a sensitive variable, and to protect it click on the lock button and its value will be secur ..read more
Visit website
How to use ImportExcel in PowerShell?
The Automation Code
by Chirag Nagrekar
1M ago
People working as a PowerShell developers have to work a lot with saving data into csv files. Working with CSV files is the most efficient way to save the custom output in readable table format. However, some requests we receive are to store the output in an Excel file. As we know there are some significant differences between csv and excel like charts, formatting, etc. I don’t want to go into details but they are easily available on the internet. To work with the Excel file in PowerShell, we need to use the ImportExcel module. To download the ImportExcel module from the PowerShell gallery, us ..read more
Visit website
How to update, add or delete XML nodes using PowerShell?
The Automation Code
by Chirag Nagrekar
1M ago
In previous articles, I have written some content on how to create an XML file using PowerShell and how to use the xPath using PowerShell. You can refer to them below. Create XML File using PowerShell How to use xPath in XML? Use xPath in XML using PowerShell – Part 2 This article has below points covered. Update Node Value Add a new node and attribute in XML Delete specific Node in XML file Consider the book XML sample from the Microsoft site below. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v=vs.85) Update Node value Updating the values of the node using x ..read more
Visit website
How to use XML xPath in PowerShell – Part-2?
The Automation Code
by Chirag Nagrekar
2M ago
In the previous post, we have gone through several different syntaxes like the Dotnet Dot (.) method for filtering XML file nodes and their values. In addition, we have seen the xPath syntaxes like Dot (.), double dot (..), and a single slash (‘/’). If you haven’t gone through the previous article, the link is below. How to use XML xPath in PowerShell – Part-1? In this article, we will discuss the remaining syntaxes of xPath from the w3Schools article. https://www.w3schools.com/xml/xpath_syntax.asp Double Slash (‘//’) method ‘//’ syntax searches nodes from the current Node no matter where th ..read more
Visit website
How to use XML xPath in PowerShell – Part-1?
The Automation Code
by Chirag Nagrekar
2M ago
In this article, I will explain how the xPath works in PowerShell to filter out the XML file to get the nodes and their attributes. To summarize better we have compared the dot (.) method for properties and the xPath method and at the end of the article, you can understand how using xPath makes your life simple when you work with XML files. Consider the Books XML file from the MS website for reference. We have just used a small portion of it as shown below. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v=vs.85) <?xml version="1.0"?> <catalog> < ..read more
Visit website
How to get the FQDN of the Windows server?
The Automation Code
by Chirag Nagrekar
3M ago
There are several methods to get the fQDN (Fully Qualified Domain Name) of the Server. Here we will discuss a few known methods. Methods: Using Computer Properties. Using PowerShell Using Python Using Cmd 1. Using Computer Properties A straightforward method to check the FQDN of the server is by clicking right-click on “This PC” and selecting properties. This is a rapid method. Computer PropertiesServer FQDN Here, you can get the domain name as well as the FQDN of the server. But this method doesn’t work if you want to get the multiple servers’ computer properties remotely. To get FQDN for m ..read more
Visit website
How to install terraform extension in Azure Pipeline?
The Automation Code
by Chirag Nagrekar
3M ago
To add/remove extensions in Azure DevOps or in Azure Pipeline, you need to use the Organization settings page. For example, in the below pipeline, we need to add terraform-related tasks but it’s not available by default. Terraform task not available in Pipeline So, browse the organization setting by clicking on the Organization Name, and at the bottom, you will see the “Organization Settings” tab. Organization Settings Click on the extensions under General. On the right side, you will see the Installed extensions and if any member from your organization has requested for the new extension. In ..read more
Visit website

Follow The Automation Code on Feedspot

Continue with Google
OR