# Azure GIT Server

#### Data Access by Hivel

* Hivel accesses the past 60-90 days of commits and pull requests from active repositories during the initial sync.

#### Whitelist Necessary IP Addresses <a href="#h_01j3f1mcmbfjzaqwgecz0qnyxy" id="h_01j3f1mcmbfjzaqwgecz0qnyxy"></a>

For a secure and uninterrupted connection, make sure to whitelist the following IP addresses:

* **Mandatory IPs**:
  * 107.23.139.76
  * 3.219.89.23
* **Recommended, but Optional IPs**:
  * 45.119.114.218
  * 183.82.116.218

#### Authorization Mechanism

* Hivel gets access using a Personal Access Token, which can be created using this [<mark style="color:purple;">link</mark>](https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops\&tabs=Windows#create-a-pat).
* Users maintain full control and can withdraw access anytime by revoking the Personal Access Token.
* Ensure '**All accessible organizations'** is selected while creating the Personal Access Token.\
  \
  ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FWQ23CAsvj8bRFQTgfyw0%2Fimage.png?alt=media\&token=c576014f-0e52-4f44-b6d0-48350b76afb0)\
  ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FDI3qRLMqzJogW2VKSQ51%2Fimage.png?alt=media\&token=aa7a48e4-3c2d-4c53-8b9f-23c237d98c46)\
  ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2F6QVTdt5mgSnX6FhKspRJ%2Fimage.png?alt=media\&token=5a55fa48-b093-40a4-84b5-03713683899d)

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2F0vccKgvrZradW7UZ5FWB%2Fimage.png?alt=media&#x26;token=b930bc69-052a-4717-af63-c44e321cc522" alt=""><figcaption></figcaption></figure>

**Requirements**

* Ensure to create the Personal Access Token from an account that has "Project Administrator" permissions for all relevant projects and repositories.

**Best Practice**

* Opt for a service account rather than an individual-linked account.
* Service accounts are typically overseen by the company's admin.

**Personal Access Token Permissions**

* Please ensure you select all the options below while creating a Personal Access Token.
  * **Project And Team**: Read&#x20;
  * **User Profile**: Read&#x20;
  * **Code**: Read&#x20;
  * **Build**: Read&#x20;
  * **Graph:** Read&#x20;
  * **Work Items:** Read \
    \
    ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2Fbvzlj9oxA4zEMkKSLa6S%2Fimage.png?alt=media\&token=6dfe77b0-8342-4692-be62-801df0224749)\
    ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2F05fLXq4XnHbDXgIB9rEN%2Fimage.png?alt=media\&token=1550c531-0a79-46cb-86bb-366b6ff12041)\
    ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FC1tDnhhlCe2nBzUwHPCF%2Fimage.png?alt=media\&token=75885a07-7f18-4598-8134-7d35b19bcf17)\
    ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FPIqxw6g5fSl2dAtCLNoy%2Fimage.png?alt=media\&token=86a43ff4-44b4-4d0d-ba6c-2b9ee2febcb9)\
    ![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FRkS5YqtDTaONUGEIiCy1%2Fimage.png?alt=media\&token=a17f527d-4bca-4a02-86fe-2db9244191e9)<br>

**You are almost done.**

* Once a Personal Access Token is created, please copy it and share it with the Hivel team.
* You will receive an email from the Hivel team once your data is all up and running.
