Share via

unable to create a release using azure devops api

Phani 1 Reputation point Microsoft Employee
2022-03-24T01:00:28.167+00:00

Hello Team,

I wanted to create a release using azure devops release pipeline for a given build number . I tried to use the create release API but getting error with unable to find the artifacts .
could you please tell me what am missing here

Error Message

VS403230: Artifact source with alias XXX could not be found in the existing release
Azure DevOps ActivityId: 398784a3-fce0-4608-b683-90f86f91a049
Details: {"$id":"1","innerException":null,"message":"VS403230: Artifact source with alias XXX could not be found in the existing release.","typeName":"Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException, Microsoft.VisualStudio.Services.ReleaseManagement2.Data","typeKey":"InvalidRequestException","errorCode":0,"eventId":3000}
clientRequestId: 78740569-efcb-4158-961d-c870a6de6a5a

Body :

{
"definitionId": 66,
"description": "Creating Sample release",
"artifacts": [
{
"alias": "XXX",
"instanceReference": {
"definitionId":6340,
"id":12194274
}
}
],
"isDraft": false,
"reason": "none",
"manualEnvironments": null
}

Community Center | Not monitored
0 comments No comments

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,862 Reputation points Microsoft Employee Moderator
    2022-03-24T01:50:09.483+00:00

    Currently, Azure DevOps is not supported on Microsoft Q&A.

    The Azure DevOps team and community are active and answering questions on https://developercommunity.visualstudio.com/spaces/21/index.html Please post your question there and experts will guide you.

    You can also ask for help on Stack overflow: https://stackoverflow.com/questions/tagged/azure-devops.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.