Forum Discussion

Tamilselvan2030's avatar
Tamilselvan2030
Copper Contributor
Mar 21, 2024

Pipeline outcome summary for all pipelines reports

I am looking the solution for azure DevOps report for deployment where we can see the complete flow of deployment , who initiated it, who approved it and who deployed it. 

1 Reply

  • Would suggest the following:

     

    1. Use Deployment Approvals in Azure Pipelines
    • Azure DevOps allows pre-deployment and post-deployment approvals.
    • You can configure approvals in classic release pipelines or YAML pipelines.
    • Approvers must have View releases permissions to approve or reject deployments.
    1. Retrieve Approver Information via REST API
    • Azure DevOps REST API to query approvals:
    https://dev.azure.com/{organization}/{project}/_apis/pipelines/approvals?expand=steps&api-version=7.1-preview.1

     

    • This API returns details about who approved the deployment and their identity.
    1. Generate a Deployment Report
    • You can create a custom report using Azure DevOps Analytics or Power BI.
    • The report can include:
      • Initiator (who triggered the pipeline)
      • Approver (who approved the deployment)
      • Deployer (who executed the deployment)
    • Use queries in Azure DevOps to extract this data.

Resources