I came across two REST APIs but not sure will fetch the deployment logs.
GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}/logs?api-version=5.1-preview.2
GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}/environments/{environmentId}/deployPhases/{releaseDeployPhaseId}/tasks/{taskId}/logs?api-version=5.1-preview.2
- I tried with the first REST API. It is retrieving the data in form of
transfer-encoded
format. How to retrieve the real data from the body in NodeJS? - In order to check the second REST API, I didn't have values for
releaseDeployPhaseId
andtaskId
. I didn't get those information in Azure DevOps Release Pipeline portal.
Can anyone help me on this? Thanks in advance!