This is a sample REST API uri to retrieve logs from the AzureDevOps Release.
https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}/logs?api-version=4.1-preview.2
The Verb is GET and content type is "application/zip"
How do i retrieve the zip file through a REST API call through powershell using Invoke-RestMethod ?
If i pass Out-File to this command and save it as zip, it doesn't convert the binary output of the API response to zip.
How do i do it ?