# Prerequisites

**Ensure the following requirements are fulfilled before integrating CI CD Harness with Avo Assure.**

1. Harness Username&#x20;
2. Harness Password&#x20;
3. Ensure you have installed and configure Docker with infrastructures.
4. Ensure delegate have Cloud Avo Assure Client and it should be run as Custome delegate.
5. To trigger the Avo Assure Client as an image, the custom delegate must be installed, active, and connected within the Harness Project.

### Add Delegate to the Harness Project

#### &#x20;Step-by-step instructions to add Delegate to the Harness Project.

1. Navigate to **Harness** application.
2. Select **Account Settings** option from the right pane of the Harness home page.
3. Click **Delegates** option from the **Account-level** resources section.

<figure><img src="/files/W9TA6az4lHbWQN0mgPgC" alt=""><figcaption></figcaption></figure>

4. Click **Install a Delegate** button to bring the **New Delegate** window.

<figure><img src="/files/eb1iqCHAkvOdSDa2cYOp" alt=""><figcaption></figcaption></figure>

5. **To install Delegate in Harness we have two options.**
   1. Kubernetes
   2. Docker

#### **a. Docker**

#### Steps after selecting Docker as option.

1\. Enter the Name in the **Delegate Name** textbox.

2\. Click **Copy** icon to copy the command to install Delegate.

{% hint style="info" %}
**Note:** Past the copied command into the Notepad to use feather.
{% endhint %}

<figure><img src="/files/ZZHTXmjmdanyTVXW7DBw" alt=""><figcaption></figcaption></figure>

3\. Open the **Command Prompt** in system and pull the Avo Assure Client Image in Command prompt and run it.

4\. Past the copied command to the Command prompt which is copied from the New Delegate window in Harness.

<figure><img src="/files/hiuJqryyTWaufWZg4QB5" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** Ones the delegate run successful in command prompt you can see the status in the **Account Resources: Delegates window.**
{% endhint %}

<figure><img src="/files/dusnWKhX3X6f8TUivpGX" alt=""><figcaption></figcaption></figure>

## Integrate the Delegate as a step in Harness Pipeline

{% hint style="info" %}
**Note:** Most CI/CD tools support multiple scripting languages for pipeline execution (such as cURL, Javascript, Python, PowerShell- RestMethod, Shell- wget). In this documentation, we have provided an example using **ShellScript**. User can use other supported languages as needed.
{% endhint %}

**Step-by-step instructions to add Delegate as a step in Harness Pipeline.**

1\. Navigate to the projects section in Harness and select Project

2\. Navigate to the Pipeline that already has test steps, if not create a new pipeline to add Avo’s custom delegate with a shell script step.

<figure><img src="/files/R1k5fAg8D5Np8AXSuUUf" alt=""><figcaption></figcaption></figure>

3\. Add Avo Assure as a pipeline step and select the running delegate in the Advance options Menu. This pipeline step has to run a shell script.

<figure><img src="/files/8iFiacNxPFBWqvcBJxx3" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/integrations-in-avo-assure/devops-integration/cloud-execution/ci-cd-harness/prerequisites.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
