# Azure Cloud Authentication

The recommended way to access your Azure DevOps project is to use personal access tokens (PAT). PAT is like a combination of a user name and a password that are valid for a certain time only and can have restricted access to your Azure DevOps resources.

To create a personal access token, you have to follow the following steps:

1. Sign in to your organization in [Azure DevOps](https://knowledgebase.autorabit.com/product-guides/arm/integration-and-plugins/azure-devops).
2. From your home page, open your profile. Go to your **security details**.
3. Select **+ New Token**.
4. **Name** your token, select the **organization** where you want to use the token, and then choose a **lifespan** for your token.
5. Select the **scopes** for this token to authorize for your specific tasks.
6. Click **Create**.
7. When you're done, make sure to copy the token. For your security, it won't be shown again. **Use this token as your password.**

**Pre-requisites:**

If you select **Custom defined** access, then you must select the below options:

1. &#x20;**Code**: Select at least **Read** or any other option, except status, so that we are able to enable the pull request.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FDvuYnIEM6yFUD8HTewqx%2Fimage.png?alt=media&#x26;token=96bc0f1a-d4fa-4524-9337-4011c9d6adc7" alt="" width="563"><figcaption></figcaption></figure>

2. **Member Entitlement Management**: Select at least the **Read** option, so that we are able to fetch users, i.e. reviewers; and can perform approval-related operations.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FAFb9lM6AKLdbCI7y4u9t%2Fimage.png?alt=media&#x26;token=a8b165b8-78e6-488c-887e-7ba7aab1d95e" alt="" width="398"><figcaption></figcaption></figure>

{% hint style="danger" %}
**Limitations:**

When we generate PAT with custom defined access, we won't be able to see **DIFF** of a pull request. This is because the Diff API is not supported with custom access option.

We can only see Diff if PAT is generated with **Full access**.
{% endhint %}
