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
}