web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

unable to deploy build and test environment from LCS

(0) ShareShare
ReportReport
Posted on by 261

Hi Experts,

I need to deploy build and test environment from LCS, the visual studio team services is already configured in LCS project settings. when I try to deploy it shows below error.

The personal access token configured for this project is not authorized to access the configured Visual Studio Team Services site or project. Verify that the personal access token is valid.

 

I have created new personal access token from DevOps and save it on LCS but issue is still the same. 

PAT.png

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Hi Junaid,

    Please check again if the credentials and the project or DevOps environment is correct. Probably also try to pay attention to case sensitive characters?

  • Junaid Profile Picture
    261 on at

    Hi André,

    The credentials and DevOps project is correct.

    could you please advice, if I remove the VSTS project from LCS and add again with updated PAT.

    what will be the impact ? 

    VSTS.jpg

  • André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Hi Junaid,

    I can remember that the personal access token is valid for a certain period of time. Probably it has been expired? In that case, you can indeed try to remove it. Probably, you can first try it in a new project on LCS?

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    You can generate new token and make connection using that .When you generate token by default it set to expire in a year , you can set it to indefinite period and then try to make connection using new toke.

  • Suggested answer
    Rahul Mohta Profile Picture
    21,032 on at

    even after using new token if same error persist then consider opening a support ticker

  • Junaid Profile Picture
    261 on at

    for the testing, I have created a new project in Azure DevOps using process template (Agile) and linked it with LCS VSTS using PAT. its working fine with Agile template but not working with my Basic custom template.

    we cant use Agile template as there are many user stories and other data saved in my existing process template, is there any way I can resolve the build environment issue in existing template.

  • Suggested answer
    Asif365 Profile Picture
    1,431 on at

    Hi Junaid,

    Can you please check the access level and permission from VSTS Project settings and LCS, the account performing the tasks must have full administrator rights on both the LCS project and the VSTS project collection.

    Project Owner permissions on the LCS “Build and TEST” Project.

    Project Collection Administrator permissions on the VSTS site.

  • Junaid Profile Picture
    261 on at

    Hi Asif Ali,

    Issue is not related to access and permissions.

    I can deploy the build environment if I chose Agile process template from same user and PAT.

    actually its related to process template, we have used custom hybrid process template.

    I am trying to use the existing one by fixing the exact issue in this process template.

  • Verified answer
    Junaid Profile Picture
    261 on at

    Just for the update, we had escalated this issue to MS and the support engineer figured out the issue.

    Actually we have used custom process template in which our team has deleted 1,2 states which was not recommended, that's why we were unable to provision build environment from LCS.

    after following MS best practice below we successfully provisioned build environment.

    Do not delete any work item types or out-of-the-box fields

    Do not delete any state of a work item type

    Do not add any required fields to a work item type

  • André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Thanks for the update, Junaid. I have verified your answer, so the tread has the status answered now.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans