Purview : How to capture scan completion status via atlas api call

Sunita Gannavarapu 66 Reputation points Microsoft Employee
2023-10-13T11:22:15.3566667+00:00

My customer wants to trigger the scans using synapse pipeline, where we are using a web activity call to trigger a scan (which is already created in purview), we need to then run another web activity to update the asset description after the scan is completed. Is there a way to get a signal back in the pipeline when the scan gets completed so we can trigger the next activity?

In short, we need to know when a scan gets completed to initiate next task which should start once the scan is completed. Any pointers will be helpful. Thank you.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,378 questions
Microsoft Security | Microsoft Purview
0 comments No comments
{count} votes

Accepted answer
  1. Smaran Thoomu 24,260 Reputation points Microsoft External Staff Moderator
    2023-10-14T08:02:34.2466667+00:00

    @Sunita Gannavarapu I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .

    Ask: How to capture scan completion status via atlas api cal

    My customer wants to trigger the scans using synapse pipeline, where we are using a web activity call to trigger a scan (which is already created in purview), we need to then run another web activity to update the asset description after the scan is completed. Is there a way to get a signal back in the pipeline when the scan gets completed so we can trigger the next activity?
    Is there a way to get a signal back in the pipeline when the scan gets completed so we can trigger the next activity?

    Solution: We do have an API to get the status of the scan which was triggered earlier.

    we need to specify the DataSource and the scan name and call the API to get the scan status and then can use it as per our requirement.
    the API for scan is : Scan Result - List Scan History - REST API (Azure Purview) | Microsoft Learn

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sunita Gannavarapu 66 Reputation points Microsoft Employee
    2023-10-13T14:10:10.7833333+00:00

    Hi All,

    Got Answer to my Question. We do have an API to get the status of the scan which was triggered earlier.

    we need to specify the DataSource and the scan name and call the API to get the scan status and then can use it as per our requirement.

    the API for scan is : Scan Result - List Scan History - REST API (Azure Purview) | Microsoft Learn

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.