Skip to content

Visual Studio Online Build Fails GetTeamBuildNumber Task failed unexpectedly.  #7

@johnkattenhorn

Description

@johnkattenhorn

Why I try to use this excellent package with TFS Online I get this error.

C:\a\src.deploy\Variables.targets (30): The "GetTeamBuildNumber" task failed unexpectedly.
Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access https://xxxxx.visualstudio.com/defaultcollection.

I'm wondering if the account that the build agent is running with needs another permission that it doesn't get with the online version by default.

I'm queuing the build using the TFS Owners account (mine).

I'm not the strongest MSBuild guy so any debugging steps / suggestion would be most welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions