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 :
Microsoft Dynamics AX (Archived)

Is there a way to pass username/password to VSTS (Visual Studio Online aka TFS) from AX to avoid login?

(0) ShareShare
ReportReport
Posted on by 395

My goal is to setup an AX12 build machine that automatically force synchronizes from VSTS via a PowerShell command.  If there is an existing better way, let me know.

I have everything setup but the issue is the login window that pops up every now and then to authenticate to VSTS.

It is called at \Classes\SysVersionControlFilebasedBackEndTfs\init on this line:

tfsConnectionManagerProxy = new Microsoft.Dynamics.AX.Framework.TeamFoundationServerFacade.ConnectionManagerProxy(tfsServer, tfsProject);

So there is no obvious user/pass there.

Any ideas what the best approach is?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Alex

    Go through this blog created by our friend Lane.

    www.axdeveloperconnection.it/.../ax-2012-visual-studio-online-hosted-tfs

    Hope this help you.

  • Alex Kwitny Profile Picture
    395 on at

    I came across the MSDN blog that Lane use to get started, but Lane's is definitely more robust. The only issue is it uses alternative credentials, which are strongly discouraged in favor of PAT (Personal Access Token).

    It looks like I'm going to have to be the first person to dev it! Should be fun. Thanks for the direction Denis!

  • Denis Macchinetti Profile Picture
    16,444 on at

    Alex, if you go also through this blog post, blogs.msdn.microsoft.com/.../visual-studio-and-tfs-support-in-ax-2012-r3-cu8, the last comment say : To have the credentials working you have to install VS 2012 or VS 2010 along with VS 2013

    To be honest I don't know if works...

  • Alex Kwitny Profile Picture
    395 on at

    I think that's old. There are 2 pieces that need installed (I forget which) to get working, and I'm pretty sure I have AX12 RTM working with VSTS.  The big key piece of info I didn't realize and that was in Joris's post is that MS exposed the TFS facade source inside of AX.

    I had been decompiling it and working backwards, but if they've got it just exposed there, I should be able to make some changes to get the PAT working relatively easy I would think.

    And it also would solve another problem, which is any administrator (in AX) gets the Live Id login prompt. So when I have business consultants poking around in a Dev environment, but they don't need anything with VSTS, the prompt causes confusion/problems.

    The only issues is PAT's are tied to users, so I'd have to have a "general" user and PAT's per user.  Hopefully I'll make a nice blogpost about it that others can use!

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans