# Azure DevOps Services Git

{% stepper %}
{% step %}

### Personal Access Token (PAT)

Personal Access Token is required to authenticate and authorize API requests to Azure DevOps Services.\
To create a Personal Access Token:

* Login to your Azure DevOps account.
* Go to User Settings then Personal Access Tokens then click New Token.
* Set a descriptive Name and an appropriate Expiration date.
* Select the required Organization.
* Under Scopes, choose Custom defined and ensure the following permissions are granted: Code (Read) — to list repositories and read commit data. Project and Team (Read) — to retrieve project metadata. User Profile (Read) — to access identity information.
* Click Create and securely copy the generated token.

{% hint style="info" %}
**Code (Read)** — to list repositories and read commit data.\
**Project and Team (Read)** — to retrieve project metadata.\
**User Profile (Read)** — to access identity information.
{% endhint %}

{% hint style="warning" %}
The token owner must have at least "Basic Read" access to the Azure DevOps project and repository.
{% endhint %}
{% endstep %}

{% step %}

### Organization Name

The name of your Azure DevOps organization. You can find it in the URL of your DevOps portal:\
Example: <https://dev.azure.com/your\\_organization\\_name/>
{% endstep %}

{% step %}

### Is Secure

This optional field defines whether the connection uses secure protocol. It should be set to true for all Azure DevOps Service connections (HTTPS).
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Please perform a connection test to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# 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.octoxlabs.com/adapters/adapters/azure-devops-services-git.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.
