onlyutkarsh / ExportImportBuildDefinition

Export and Import your build definitions. Useful for recreating all the build steps, variables, schedules, etc in a different team project/account.
http://bit.ly/exportimportbuild
Other
17 stars 8 forks source link

Unable to Import - TFS.WebApi.Exception: TF400813 #17

Closed PaulMatthewMadden closed 7 years ago

PaulMatthewMadden commented 7 years ago

Installed product versions

Description

Export seems to work fine. Importing gives me the following error (same Collection and same Team Project):

"Unable to parse the uploaded JSON due to error TFS.WebApi.Exception: TF400813: Resource not available for anonymous access. Client authentication required."

I am using TFS 2017 (15.105.25910.0). My TFS website is HTTP. My user account is part of the Project Collection Administrators security group. Same result on IE, Edge, and Chrome.

I notice when I install the extension it asks for the following permissions:

Shouldn't there be some 'write' permissions for importing?

Looks like a great extension when working! I would love to be able to use it! Thanks!

tfs 2017 import export build def install

tfs 2017 import export build def error

onlyutkarsh commented 7 years ago

@PaulMatthewMadden Thanks for the feedback. Looks like you are on TFS 2017 RTM version. The vso.agentpools scope is available only from Update1 RC2 onwards. So installing TFS 2017 Update 1 should resolve the issue. See #16 where we discussed the same.

regarding your question Shouldn't there be some 'write' permissions for importing? Yes, write permission for creating the definition, but vso.build_execute covers that.

If you are interested, more details on scopes is here

onlyutkarsh commented 7 years ago

@PaulMatthewMadden I am closing the issue. Please let me know if the issue still exists even after installing TFS 2017 Update 1.

PaulMatthewMadden commented 7 years ago

Thank you very much! That all makes sense now. I appreciate your quick response! I will let you know if I have further problems.