How do I upload a new task definition to an Azure Devops 2019 server?

Jeff Laing 21 Reputation points
2020-11-30T06:04:12.267+00:00

We used a TFS 2015 server for many years, and only recently (last 12 months or so) upgraded to AZDO 2019 In the process, we appear to have lost the ability to upload new Build Task definitions, something that we do fairly infrequently, but when we need it, we need it. We use a script almost completely lifted from here: https://blogs.infosupport.com/custom-build-tasks-in-tfs-2015/ However, when we try it now, we get a 404 error.

GETting from _apis/distributedtask/tasks/{id} appears to work fine.
PUTting to it (to upload a new version of the task) is not working (returns 404)

I have modified the script to pass api-version=4.0 or 5.0, etc but can find no value that helps. I can find no mention anywhere of the /tasks API on any documentation pertaining to 2019 which is what I believe our server is running. All documentation for "modern" versions of AZDO seem to hint at /taskgroups as being something to investigate but none of those REST requests work either.

Where do I go from here? How do I determine the actual APIs that are being offered by our (onsite) AZDO Server?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,995 questions
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2020-11-30T22:42:43.27+00:00

    If the document is lacking info or in error I'd use the Site Feedback link and post the details over here. I've reported several and they're generally responsive to the reports.
    https://github.com/MicrosoftDocs/feedback/issues

    to the issue I'd ask in forums over on DeveloperCommunity

    --please don't forget to Accept as answer if the reply is helpful--


2 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-11-30T13:01:06.13+00:00

    Devops / TFS is not currently supported here on QnA. The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/spaces/22/index.html

    --please don't forget to Accept as answer if the reply is helpful--


  2. Dave Patrick 426.1K Reputation points MVP
    2020-11-30T20:36:20.85+00:00

    Is that really an appropriate answer about a deficiency in the documentation

    Well they closed the TFS uservoice site and moved feedback over to DeveloperCommunity links I posted.

    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/spaces/22/index.html

    43784-image.png

    --please don't forget to Accept as answer if the reply is helpful--