1. Go to your account home page:
https://<account>.visualstudio.com
2. Click on your name the top right of the page and then on security
3. Click on Add from the Personal access tokens tab
4. Fill the Description, Expires In and Accounts informations, choose your scopes and then click on Create Token
5. Your PAT as been created, make sure you copy the token to use it in your applications !!