Saturday, June 21, 2025

How to create Ubuntu 22.0.4 Virtual Machine (VM) in Azure? | Create Ubuntu 22.0.4 VM in Azure | How to connect to Azure VM from your local machine

 How to Create Ubuntu 22.0.4 Virtual Machines(VM) in Azure portal? Creating Virtual Machine is easy and straight forward in Azure Cloud. Let us see how to do that in Azure portal. 

Pre-requisites:

  • Azure account subscription, click here if you dont have one.
Watch Steps in YouTube channel:


Steps to create Ubuntu 22.0.4 Virtual Machine in Azure
 
1. Login to Azure portal, go to https://portal.azure.com/
2. Click on Virtual Machines.

3. Click on Add virtual machine.

 

4. Now enter the details as below or give values per your subscription and requirements. Select Ubuntu 22.0.4 VM



5. choose authentication type as SSH public key, enter azureuser as user name, enter key pair name.
This step will eventually create SSH keys and allow you to download in your machine.



6. Under Networking


Go with Allow selected ports - SSH port 22
And also select Delete public IP and NIC when VM is deleted option


7. Click on Review, it may take a few mins to finish the validations. If all good, it should pass the validations. Click on Create.

8.  Now download the SSH keys and save it locally.
 

9. Once created, Click on virtual machines.

10. You should see the new VM is running like below:


How to connect to Azure VM from your local machine?



11. Now select that instance, click on connect


Then choose SSH 


12. Copy the value as it shows below in your local terminal(iTerm for Apple laptop) or Git bash for Windows laptop.

13. Make sure your SSH keys is not accessible by others, by executing the below command:

chmod 400 myUbuntuVM_key.pem
14. Now ssh into VM from your local machine using the key

ssh -i myUbuntuVM_key.pem azureuser@your_ip_address


Now it should show you that you are connected to Azure.



Friday, May 23, 2025

How to Automate Security Scan of Terraform Files using Checkov with Jenkins Pipeline? | How to Perform Security scan for Terraform Files using Checkov?

 

Checkov is a static code analysis tool designed to scan Infrastructure as Code (IaC) files and identify potential security and compliance misconfigurations. 

Pre-requisites:

Jenkins pipeline code:

Below Jenkins Pipeline code scan Terraform files and write the output to a file which can be viewed in Jenkins.

pipeline {

    agent any
    stages {
        stage('Checkout') {
            steps {
                git 'https://github.com/akannan1087/myInfra2021Repo'
            }
        }

        stage('Run Checkov Scan') {
            steps {
                sh 'checkov -d . -o junitxml > checkov-report.xml || true'
            }
        }

        stage('Publish Report') {
            steps {
                junit 'checkov-report.xml'
            }
        }
    }
    
    post {
        always {
            archiveArtifacts artifacts: 'checkov-report.xml', fingerprint: true
        }
    }
}


Watch steps in YouTube channel:

DevSecOps Bootcamp June 2025 Schedule | DevOps & AWS Azure Cloud Coaching by Coach AK | DevSecOps and Cloud Computing Online Classes

 πŸš€DevSecOps Bootcamp - Master Security in DevOps | June 2025

Are you ready to supercharge your career in DevSecOps? Whether you're a beginner or an experienced professional, this hands-on bootcamp will take you from zero to expert with real-world training on the latest DevSecOps tools and practices!

✅ Master Top DevSecOps Tools: Git, GitHub, Bitbucket, Jenkins, SonarQube, Slack, Trivy, Nexus, Terraform, Ansible, Docker, Kubernetes, Helm, Prometheus and more!
✅ Cloud Platforms – AWS & Azure
✅ Live Interactive Sessions – Get personalized guidance from industry experts!
✅ Weekend & Weekday Batches – Flexible schedules to fit your lifestyle!
✅ Weekday Evenings Batch Available! – Perfect for working professionals!
✅ Real-World Projects – Build experience that recruiters love!
✅ 100% Hands-On Training – No boring theory, just practical DevSecOps!
✅ Career Support & Guidance – Resume building, interview prep, and networking!

πŸ“… Weekend Batch Starts: June 28th, 2025
πŸ•’ Batch Timings:

  • Weekend Batch: Saturdays (11:30 AM - 01:30 PM CST) & Sundays (1:00 PM - 3:00 PM CST)

πŸ“… Weekday Evening Batch Starts: July 1st, 2025
πŸ•’ Batch Timings:

  • Weekday Evenings Batch: Tuesdays & Thursdays (6:00 PM - 8:00 PM CST)

πŸ“ Online – Learn from Anywhere!

🎯 Spots are Limited! Secure your seat now and take the first step toward becoming a DevSecOps pro!

πŸ“ž Contact Coach AK Now:
πŸ“± +1 (469) 733-5248 (WhatsApp Available)
πŸ“§ devops.coaching@gmail.com

πŸ’₯ Act Fast! Early Bird Discounts Available! πŸš€

πŸ‘‰ Register Today by making payments, contact Coach AK!

πŸ“ˆ Why Join this Bootcamp?

✅ Hands-on Training – Work on real-world projects
✅ Learn Top Security Tools - SonarQube, Aqua Trivy, GitHub Advanced Security, Checkov
✅ Expert-Led Live Sessions – Interactive & practical guidance
✅ Career Support – Resume tips, interview prep & certification guidance
✅ Project-Based Learning – Apply skills in real DevOps environments

Thursday, April 17, 2025

How to install Checkov | How to Scan Terraform Code for finding security issues using Checkov | How to Perform Security scan for Terraform Files?

 

Checkov is a static code analysis tool designed to scan Infrastructure as Code (IaC) files and identify potential security and compliance misconfigurations. 

How to install Checkov on Linux Ubuntu?

There are several ways to install Checkov on Ubuntu 22.04, but we will be using PIP.

1. Using pip (Recommended):

This is the most common and generally recommended method as it installs the latest stable version and manages dependencies easily.

  • Prerequisites: Ensure you have Python and pip installed. If not, open your terminal and run:

    sudo apt update
    sudo apt install python3-pip -y
    
  • Install Checkov: Once pip is installed, run the following command to install Checkov: 

          sudo pip3 install checkov 
  • Verify Installation: After the installation is complete, you can verify it by checking the Checkov version:

    checkov --version

    This should print the installed Checkov version.


How to Scan Terraform files using Checkov?

Make sure Terraform is installed in your machine where you will be performing scanning.

Navigate to Terraform directory where you created Terraform files and execute the below command:
For e.g., if you have created terraform files under project-terraform directory, navigate to that dir.

cd project-terraform

Run the below command to scan terraform files:

checkov -d .

Now you will see the issues(if there are any) with TF files like below:


Based on the errors, you can resolve the issues one by one.

Watch Steps on YouTube channel:

Wednesday, April 16, 2025

What is Checkov? | How to install Checkov on Linux Ubuntu to scan Terraform Code for finding security issues?

Checkov is an open source, static code analysis tool designed to scan Infrastructure as Code (IaC) files and identify potential security and compliance misconfigurations. 

Supported IaC types:

Checkov scans following IaC file types:

  • Terraform (for AWS, GCP, Azure and OCI)
  • CloudFormation (including AWS SAM)
  • Azure Resource Manager (ARM)
  • Serverless framework
  • Helm charts
  • Kubernetes
  • Docker

Here's a breakdown of Checkov tutorials

Getting Started and Basic Usage:

  • Installation: Checkov can be installed using pip, brew, or Docker. For example, using pip:
          sudo apt install python3-pip -y
              sudo pip3 install checkov
    • Basic Scanning: To scan a single file or a directory, use the -f (file) or -d (directory) flags:
      checkov -f main.tf
      checkov -d /path/to/your/iac/code
    • Output: Checkov provides a detailed output of passed and failed checks, including the check ID, description, the resource and file location, and a link to more information about the policy
    • Specifying Frameworks: You can specify the IaC framework to scan using the --framework flag:
             checkov -d /path/to/kubernetes/manifests --framework kubernetes
             checkov -f eks-deploy-k8s.yaml
    • Output Formats: Checkov supports various output formats using the --output flag, such as cli (default), jsonjunitxml, and sarif. For e.g, for JSON output format, use below command:
              checkov -d . --output json


    Monday, April 7, 2025

    DevSecOps Bootcamp June 2025 Schedule | DevOps & AWS Azure Cloud Coaching by Coach AK | DevSecOps and Cloud Computing Online Classes

    πŸš€ DevSecOps Bootcamp - Master Security in DevOps | June 2025

    Are you ready to supercharge your career in DevSecOps? Whether you're a beginner or an experienced professional, this hands-on bootcamp will take you from zero to expert with real-world training on the latest DevSecOps tools and practices!

    ✅ Master Top DevSecOps Tools: Git, GitHub, Bitbucket, Jenkins, SonarQube, Slack, Trivy, Nexus, Terraform, Ansible, Docker, Kubernetes, Helm, Prometheus and more!
    ✅ Cloud Platforms – AWS & Azure
    ✅ Live Interactive Sessions – Get personalized guidance from industry experts!
    ✅ Weekend & Weekday Batches – Flexible schedules to fit your lifestyle!
    ✅ Weekday Evenings Batch Available! – Perfect for working professionals!
    ✅ Real-World Projects – Build experience that recruiters love!
    ✅ 100% Hands-On Training – No boring theory, just practical DevSecOps!
    ✅ Career Support & Guidance – Resume building, interview prep, and networking!

    πŸ“… Weekend Batch Starts: June 1st, 2025
    πŸ•’ Batch Timings:

    • Weekend Batch: Saturdays (11:35 AM - 01:30 PM CST) & Sundays (1:00 PM - 3:00 PM CST)

    πŸ“… Weekday Evening Batch Starts: June 10th, 2025
    πŸ•’ Batch Timings:

    • Weekday Evenings Batch: Tuesdays & Thursdays (6:00 PM - 8:00 PM CST)

    πŸ“ Online – Learn from Anywhere!

    🎯 Spots are Limited! Secure your seat now and take the first step toward becoming a DevSecOps pro!

    πŸ“ž Contact Coach AK Now:
    πŸ“± +1 (469) 733-5248 (WhatsApp Available)
    πŸ“§ devops.coaching@gmail.com

    πŸ’₯ Act Fast! Early Bird Discounts Available! πŸš€

    πŸ‘‰ Register Today by making payments, contact Coach AK!

    πŸ“ˆ Why Join This Bootcamp?

    ✅ Hands-on Training – Work on real-world projects
    ✅ Learn Top Security Tools – SonarQube, Trivy, Aqua Security, GitHub Advanced Security
    ✅ Expert-Led Live Sessions – Interactive & practical guidance
    ✅ Career Support – Resume tips, interview prep & certification guidance
    ✅ Project-Based Learning – Apply skills in real DevOps environments

    Friday, April 4, 2025

    DevSecOps Tutorials | How to setup Prowler in AWS cloud to evaluate AWS Security

    Prowler is a open source security auditing tool designed to assess security best practices, misconfigurations, and compliance in AWS environments.

    Key Features of Prowler:

    •  Customizable, and lightweight
    •  AWS Security Best Practices – Checks for security misconfigurations in AWS services.
    •  Compliance auditing 
    •  Multi-Account Scanning – Can scan multiple AWS accounts.
    •  Multiple Output Formats – Generates JSON, CSV, HTML, and JUnit reports.
    •  Works with CI/CD, AWS Organizations, and automated security workflows 

    Pre-requisites:

    • AWS cli installed

    Install Required Dependencies:

    sudo apt update && sudo apt install -y unzip awscli jq python3-pip git

    How to setup in Prowler in AWS cloud?

    git clone https://github.com/prowler-cloud/prowler.git

    cd prowler

    chmod +x prowler

    ./prowler

    Run Prowler Scans

    To Run a Full AWS Security Scan. 

    ./prowler -M json,csv -o prowler-report




    Wednesday, March 19, 2025

    DevSecOps Bootcamp May 2025 Schedule | DevOps & AWS Azure Cloud Coaching by Coach AK | DevSecOps and Cloud Computing Online Classes

    ✔️ "πŸš€ DevSecOps Bootcamp - Master Security in DevOps | May 2025"

    Are you ready to supercharge your career in DevSecOps? Whether you're a beginner or an experienced professional, this hands-on bootcamp will take you from zero to expert with real-world training on the latest DevSecOps tools and practices!

    ✅ Master Top DevSecOps Tools: Git, GitHub, Bitbucket, Jenkins, SonarQube, Slack, Trivy, Nexus, Terraform, Ansible, Docker, Kubernetes, Helm, Prometheus and more!
    ✅ Cloud Platforms – AWS & Azure
    ✅ Live Interactive Sessions – Get personalized guidance from industry experts!
    ✅ Weekend & Weekday Batches – Flexible schedules to fit your lifestyle!
    ✅ Weekday Evenings Batch Available! – Perfect for working professionals!
    ✅ Real-World Projects – Build experience that recruiters love!
    ✅ 100% Hands-On Training – No boring theory, just practical DevSecOps!
    ✅ Career Support & Guidance – Resume building, interview prep, and networking!

    πŸ“… Weekend Batch Starts: May 24th, 2025
    πŸ•’ Batch Timings:

    • Weekend Batch: Saturdays (09:45 AM - 11:30 AM CST) & Sundays (10:30 PM - 12:30 PM CST)

    πŸ“… Weekday Evening Batch Starts: May 27th, 2025
    πŸ•’ Batch Timings:

    • Weekday Evenings Batch: Tuesdays & Thursdays (6:00 PM - 8:00 PM CST)

    πŸ“ Online – Learn from Anywhere!

    🎯 Spots are Limited! Secure your seat now and take the first step toward becoming a DevSecOps pro!

    πŸ“ž Contact Coach AK Now:
    πŸ“± +1 (469) 733-5248 (WhatsApp Available)
    πŸ“§ devops.coaching@gmail.com

    πŸ’₯ Act Fast! Early Bird Discounts Available! πŸš€

    πŸ‘‰ Register Today by making payments, contact Coach AK!

    πŸ“ˆ Why Join This Bootcamp?

    Hands-on Training – Work on real-world projects
    Learn Top Security Tools – SonarQube, Snyk, Trivy, Aqua Security
    Expert-Led Live Sessions – Interactive & practical guidance
    Career Support – Resume tips, interview prep & certification guidance
    Project-Based Learning – Apply skills in real DevOps environments

    Saturday, March 8, 2025

    How to Implement CICD Pipeline using GitHub Actions | GitHub Actions Tutorials | GitHub Actions CICD Pipeline | How to Deploy Java WAR file using GitHub Actions and Maven to Tomcat Server

    Please find steps for Deploying Java WAR file to Tomcat using GitHub Actions:

    Watch Actions in YouTube:

      Pre-requisites:

      Implementation steps:

      We need to setup secrets to store tomcat user name, password and Tomcat url.

      Add Tomcat user name, password and Tomcat Host url as Secret in GitHub Actions

      Go to your GitHub Repo --> Settings --> 

      Click on Secrets and Variables under Security in left nav 
      Click new Repository Secret

      Create TOMCAT_HOST secret and add tomcat url

      Create TOMCAT_USER secret and add user name
      Create TOMCAT_PASSWORD secret and Tomcat password


      GitHub Actions Workflow YAML for Deploying a WAR file to Tomcat

      You will create this file .github/workflows/cicd.yaml inside GitHub Repo where your Java code is.

      name: Build a WAR file using Maven and Deploy Java App to Tomcat running in AWS EC2
      on:
        push:
          branches: [ "main" ]
      jobs:
        build:
          runs-on: ubuntu-latest
          steps:
          - uses: actions/checkout@v3
          - name: Set up JDK 11
            uses: actions/setup-java@v2
            with:
              distribution: 'adopt'
              java-version: '11'
          - name: Build with Maven
            run: mvn clean install -f MyWebApp/pom.xml
          - name: Deploy to Tomcat
            run: |
              curl -v -u ${{ secrets.TOMCAT_USER }}:${{ secrets.TOMCAT_PASSWORD }} \
              -T MyWebApp/target/MyWebApp.war \
              "http://${{ secrets.TOMCAT_HOST }}/manager/text/deploy?path=/MyWebApp&update=true"

      Commit the file.

      As soon as you commit, build will run immediately in GitHub Actions. 
      Now you can see the output of build in Actions tab.

      Check the output in Tomcat

      Saturday, March 1, 2025

      DevSecOps Bootcamp May 2025 Schedule | DevOps & AWS Azure Cloud Coaching by Coach AK | DevSecOps and Cloud Computing Online Classes

       πŸš€ Join the Ultimate DevSecOps Bootcamp – May 2025! πŸ”₯

      Are you ready to supercharge your career in DevSecOps? Whether you're a beginner or an experienced professional, this hands-on bootcamp will take you from zero to expert with real-world training on the latest DevSecOps tools and practices!

      ✅ Master Top DevSecOps Tools: Git, GitHub, Bitbucket, Jenkins, SonarQube, Slack, Trivy, Nexus, Terraform, Ansible, Docker, Kubernetes, Helm, Prometheus and more!
      ✅ Cloud Platforms – AWS & Azure
      ✅ Live Interactive Sessions – Get personalized guidance from industry experts!
      ✅ Weekend & Weekday Batches – Flexible schedules to fit your lifestyle!
      ✅ Weekday Evenings Batch Available! – Perfect for working professionals!
      ✅ Real-World Projects – Build experience that recruiters love!
      ✅ 100% Hands-On Training – No boring theory, just practical DevSecOps!
      ✅ Career Support & Guidance – Resume building, interview prep, and networking!

      πŸ“… Weekend Batch Starts: May 24th, 2025
      πŸ•’ Timings: Saturdays11:35 AM - 01:30 PM CST & Sundays -12:45 PM - 2:30 PM CST

      πŸ“… Weekday Evening Batch Starts: May 27th, 2025
      πŸ•’ Timings: Tuesdays & Thursdays (6:00 PM - 8:00 PM CST)

      πŸ“ Online – Learn from Anywhere!

      🎯 Spots are Limited! Secure your seat now and take the first step toward becoming a DevSecOps pro!

      πŸ“ž Contact Coach AK Now:
      πŸ“± +1 (469) 733-5248 (WhatsApp Available)
      πŸ“§ devops.coaching@gmail.com

      πŸ’₯ Act Fast! Early Bird Discounts Available! πŸš€

      πŸ‘‰ Register Today by making payments, contact Coach AK!

      Tuesday, February 18, 2025

      DevSecOps Bootcamp March 2025 Schedule | DevOps & AWS Azure Cloud Coaching by Coach AK | DevSecOps and Cloud Computing Online Classes

      πŸš€ Join the Ultimate DevSecOps Bootcamp – March 2025! πŸ”₯

      Are you ready to supercharge your career in DevSecOps? Whether you're a beginner or an experienced professional, this hands-on bootcamp will take you from zero to expert with real-world training on the latest DevSecOps tools and practices!

      ✅ Master Top DevSecOps Tools: Git, GitHub, Bitbucket, Jenkins, SonarQube, Slack, Trivy, Nexus, Terraform, Ansible, Docker, Kubernetes, Helm, Prometheus and more!
      ✅ Cloud Platforms – AWS & Azure
      ✅ Live Interactive Sessions – Get personalized guidance from industry experts!
      ✅ Weekend & Weekday Batches – Flexible schedules to fit your lifestyle!
      ✅ Weekday Evenings Batch Available! – Perfect for working professionals!
      ✅ Real-World Projects – Build experience that recruiters love!
      ✅ 100% Hands-On Training – No boring theory, just practical DevSecOps!
      ✅ Career Support & Guidance – Resume building, interview prep, and networking!

      πŸ“… Weekend Batch Starts: February 22, 2025
      πŸ•’ Batch Timings:

      • Weekend Batch: Saturdays (11:35 AM - 01:30 PM CST) & Sundays (12:45 PM - 2:30 PM CST)

      πŸ“… Weekday Evening Batch Starts: March 3rd, 2025
      πŸ•’ Batch Timings:

      • Weekday Evenings Batch: Mondays & Wednesdays (6:00 PM - 8:00 PM CST)

      πŸ“ Online – Learn from Anywhere!

      🎯 Spots are Limited! Secure your seat now and take the first step toward becoming a DevSecOps pro!

      πŸ“ž Contact Coach AK Now:
      πŸ“± +1 (469) 733-5248 (WhatsApp Available)
      πŸ“§ devops.coaching@gmail.com

      πŸ’₯ Act Fast! Early Bird Discounts Available! πŸš€

      πŸ‘‰ Register Today by making payments, contact Coach AK!

      Sunday, February 2, 2025

      DevSecOps Bootcamp Feb 2025 Schedule | DevOps & AWS Azure Cloud Coaching by Coach AK | DevSecOps and Cloud Computing Online Classes

      πŸš€ Join the Ultimate DevSecOps Bootcamp – February 2025! πŸ”₯

      Are you ready to supercharge your career in DevSecOps? Whether you're a beginner or an experienced professional, this hands-on bootcamp will take you from zero to expert with real-world training on the latest DevSecOps tools and practices!

      Master Top DevSecOps Tools: Git, GitHub, Bitbucket, Jenkins, SonarQube, Slack, Trivy, Nexus, Terraform, Ansible, Docker, Kubernetes, Helm, Prometheus and more!
      Cloud Platforms – AWS & Azure
      Live Interactive Sessions – Get personalized guidance from industry experts!
      Weekend & Weekday Batches – Flexible schedules to fit your lifestyle!
      Weekday Evenings Batch Available! – Perfect for working professionals!
      Real-World Projects – Build experience that recruiters love!
      100% Hands-On Training – No boring theory, just practical DevSecOps!
      Career Support & Guidance – Resume building, interview prep, and networking!

      πŸ“… Weekend Batch Starts: February 22, 2025
      πŸ•’ Batch Timings:

      • Weekend Batch: Saturdays (11:35 AM - 01:30 PM CST) & Sundays (12:45 PM - 2:30 PM CST)

      πŸ“… Weekday Evening Batch Starts: February 24, 2025
      πŸ•’ Batch Timings:

      • Weekday Evenings Batch: Mondays & Wednesdays (6:00 PM - 8:00 PM CST)

      πŸ“ Online – Learn from Anywhere!

      🎯 Spots are Limited! Secure your seat now and take the first step toward becoming a DevSecOps pro!

      πŸ“ž Contact Coach AK Now:
      πŸ“± +1 (469) 733-5248 (WhatsApp Available)
      πŸ“§ devops.coaching@gmail.com

      πŸ’₯ Act Fast! Early Bird Discounts Available! πŸš€

      πŸ‘‰ Register Today! Click Here

      Thursday, January 30, 2025

      How to Setup AquaSec Trivy for Vulnerability scanning | How to scan Springboot Docker image using Trivy Scanner | Create Jenkins Pipeline for scanning Docker image for Springboot Microservices App

      Watch steps in YouTube channel:

      Pre-requisites:

      Jenkins Pipeline for scanning docker image using Trivy scanner:

      pipeline {
          agent any
          environment {
              registry = "acct_id.dkr.ecr.us-east-1.amazonaws.com/coachak/springboot-app"
          }

          stages {
              stage('Checkout') {
                  steps {
                      git 'https://github.com/akannan1087/docker-spring-boot'
                  }
              }
              
              stage ("Build JAR") {
                  steps {
                      sh "mvn clean install"
                  }
              }
              
              stage ("Build image") {
                  steps {
                      script {
                          dockerImage = docker.build registry
                          dockerImage.tag("$BUILD_NUMBER")
                      }
                  }
              }
              
          // Scanning Docker images using Trivy scanner
           stage('Trivy Security scan') {
           steps{
               script {
                  sh "trivy image --severity HIGH,CRITICAL,MEDIUM acct_id.dkr.ecr.us-east-1.amazonaws.com/coachak/springboot-app:$BUILD_NUMBER"
               }
            }
           }
          // Uploading Docker images into AWS ECR
          stage('Pushing to ECR') {
           steps{  
               script {
                      sh 'aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin acct_id.dkr.ecr.us-east-1.amazonaws.com'
                      sh 'docker push acct_id.dkr.ecr.us-east-1.amazonaws.com/coachak/springboot-app:$BUILD_NUMBER'
               }
              }
           }
          }
      }

      Pipeline Output:




      Scan report can be viewed in Jenkins


      Friday, January 24, 2025

      How to create Pull Request (PR) templates in Azure Repos? | Creating pull request template in Azure Repos


      Watch steps in YouTube channel:

      Azure Repos allows you to create Pull Request (PR) templates to standardize and streamline the PR process for your team. This ensures that all necessary information is included, making the review process more efficient. 

      Step-by-Step Guide

      1. Navigate to Your Repository:

        • Go to the Azure Repos repository where you want to create a PR template.
      2. Create a .azuredevops Directory:

        • create a new directory named .azuredevops in the root of your repository. This is where Azure Repos looks for configuration files, including PR templates.
      3. Create a PULL_REQUEST_TEMPLATE File:

        • Inside the .azuredevops directory, create a file named PULL_REQUEST_TEMPLATE.md. This file will contain the template for your pull requests.

            4. Add Template Content:

      • Open the PULL_REQUEST_TEMPLATE.md file and add the content you want to include in your PR template. You can use Markdown to format the template. Here’s an example of a basic PR template:

      ## What type of PR is this? (check all applicable)
      - [ ] πŸ• New Feature
      - [ ] 🎨 Enhancment Feature
      - [ ] πŸ› Bug
      ## Describe about your code changes
      <!-- 
      Please do not leave this blank 
      This PR [adds/removes/fixes/replaces] the [feature/bug/etc]. 
      -->
      ## Related Feature & Documents
      <!-- 
      Please use this format link issue numbers: Fixes #123
      -->
      ## Screenshots/Recordings Link In Sharepoint
      <!-- Visual changes require screenshots -->

      ## Created Unit tests, etc?
      - [ ] πŸ‘ yes
      - [ ] πŸ™… no, because they aren't needed
      - [ ] πŸ™‹ no, because I need help
      ## Added to documentation?
      - [ ] πŸ“œ README.md
      - [ ] πŸ“• wiki
      - [ ] πŸ™… no documentation needed
      ## [optional] Are there any post-deployment tasks we need to perform?

          5. Commit and Push:

      • Commit the PULL_REQUEST_TEMPLATE.md file to your repository and push it to Azure Repo.

      git add .azuredevops/PULL_REQUEST_TEMPLATE.md 
      git commit -m "Add pull request template" 
      git push origin main


      Tuesday, January 21, 2025

      How to Setup AquaSec Trivy Vulnerability Scanner | How to install AquaSec Trivy Scanner on Linux OS | Security Scanning Tool | DevSecOps Tutorials

      What is Trivy?

      • open-source security scanner tool developed by Aqua Security. 
      • Used for vulnerability scanning in such as 
        • container images 
        • file systems/folders 
        • Git repositories
        • Kubernetes clusters
        • misconfiguration in files such as Terraform, K8S manifest files
      • Trivy helps identify security issues and misconfigurations early in the software development lifecycle.

      How to Install Trivy scanner on Linux OS?

      Trivy scanner can be installed so many ways. Check here for more information. But we will using APT package manager to install on Ubuntu.

      sudo apt-get install wget gnupg -y
      wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null 
      echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | sudo tee -a /etc/apt/sources.list.d/trivy.list 
      sudo apt-get update 
      sudo apt-get install trivy -y

      Check Trivy got installed
      trivy --version


      This confirm that Trivy got installed successfully.

      Perform Docker image scan locally
      trivy image nginx:latest

      where nginx is name of the docker image

      You can also pass arguments to filter based on severity
      trivy image --severity HIGH,CRITICAL,MEDIUM nginx:latest

      Perform scanning a Git Repo

      where repo_url is the public git repo that you want to scan

      Perform scanning a file system locally
      trivy fs your_folder

      where your_folder is directory on your machine where you have installed Trivy.

      Additional links:
      If you want to integrate Trivy with Jenkins CICD pipeline for automating docker image scanning, please click here.
      If you want to integrate Trivy with Azure DevOps CICD pipeline for automating docker image scanning, please click here.

      Watch the video in my YouTube channel:

      How to create Ubuntu 22.0.4 Virtual Machine (VM) in Azure? | Create Ubuntu 22.0.4 VM in Azure | How to connect to Azure VM from your local machine

       How to Create Ubuntu 22.0.4 Virtual Machines(VM) in Azure portal? Creating Virtual Machine is easy and straight forward in Azure Cloud. Let...