All Collections
How to integrate Probely with Azure DevOps
How to integrate Probely with Azure DevOps

Learn how to integrate Probely with Azure DevOps in a Continuous Integration and Continuous Delivery (CI / CD) approach.

Jaime Vasconcelos avatar
Written by Jaime Vasconcelos
Updated over a week ago

To foster automation between systems, integrate with Azure DevOps to execute operations in Probely triggered from Azure pipelines using the Probely API.

The integration involves two steps:

  1. Get the integration information from Probely.

  2. Configure Azure to integrate with Probely.

This article describes these steps in detail.

Step 1: Get integration information from Probely

Before configuring the integration in Azure, get the necessary information from Probely:

  1. Get the Target Identifier:

    1. Go to the TARGETS tab in the Probely app.

    2. Click on the target and obtain the target identifier from the URL.

  2. Generate the API Key and save it to configure Azure to be able to do actions in Probely. Learn how to generate an API Key.

Step 2: Configure Azure to integrate with Probely

With the information from Probely, it’s time to do the configuration in Azure:

  1. Log in to the Azure DevOps ( account and go to pipelines.

  2. Click on the pipeline to select it and then on the Edit button on the top-right corner of the screen.

  3. In the list of Agent Jobs, click on the plus ('+') button to add a new task.

  4. Select Command Line from the list and click on Add.

  5. Select the newly added Command Line Script.

  6. Fill out the form with the command line configuration:

    1. Set the Display name with the name of the script.

    2. Set the Script field to:

      curl -k -X POST '<TARGET_ID>/scan_now/' -H 'Authorization: JWT <API_KEY>' -H 'Content-type: application/json' -d '{"scan_profile": "normal"}'


      1. In this example, we trigger a target scan using this API endpoint.
        Explore the API for other operations to trigger from your Azure pipelines.

      2. In the curl command:

        1. Replace <TARGET_ID> and <API_KEY> with the corresponding values obtained in Step 1: Get the integration information from Probely.

        2. If you notice, there is also a parameter defining the scan profile to be used in the scan: -d {"scan_profile": "normal"}. You can remove it, and the scan profile will be the one defined in the target settings.

  7. Click on the Save & queue dropdown menu and select the Save & queue option from the list.

  8. A Run pipeline dialog is displayed. Click on the Save and run button to manually run the pipeline and test the integration.

From now on, every time this Azure pipeline runs, it triggers the scan of the target in Probely.

Did this answer your question?