I have powershell code where I am trying to fetch the releases using azure devops rest api and able to do it successfully I am using below rest Api. Only the issue which I am facing is when I check from azure portal it is having more releases of that particular deployments whereas rest api is giving me only top 6-7 release information?
Could someone tell me why this behavior?
2
Answers
What exactly are you trying to fetch? You may get a list of releases here: Releases – List.
In your case, you are trying to get deployments. Deployments show each deployment (or redeployment) into each environment of a particular release definition.
The reason why you are not getting all the releases under a release definition is because the API is paginating the results. You can use $top and continuationToken to get all the releases of the release definition.
This is an example for a different requirement for your reference