Skip to content

Latest commit

 

History

History
48 lines (46 loc) · 2.74 KB

File metadata and controls

48 lines (46 loc) · 2.74 KB

Setup webhooks

  • Login to devops portal https://dev.azure.com/

  • Navigate to your Azure DevOps project.

  • Go to the "Project Settings" by clicking on the gear icon in the bottom-left corner.

  • In the Project Settings page, select "Service hooks" under the "Pipelines" section. servicehook

  • Click on the "Create subscription" button to create a - new service hook subscription.

  • Choose the event that will trigger the service hook. - You can select from a wide range of events such as - code pushed, work item created/updated, build - completed, release deployment completed, etc. Select - the appropriate event for your use case. servicehook

  • Select the service to send the event to. Azure DevOps - supports various services such as Azure Functions, - Azure Logic Apps, Webhooks, etc. Choose the service - that you want to integrate with. servicehook

  • Configure the settings for the selected service. The configuration options may vary depending on the - service you choose. Typically, you'll need to provide details like the endpoint URL, authentication, payload format, etc. servicehook

  • Test the service hook by sending a test payload or use - a recent event to validate the integration.

  • Save the service hook subscription.

Test the webhooks

  • Test the above functionality inside the logic app.
    1. Navigate to the service hooks list.
    2. Select the webhook.
    3. Click to the history.
    4. Select the running workflow.
    5. Copy the Request inside the content servicehook
  • Create new logic app workflow
    1. Add example workflow.
    2. Add Trigger "When a http request is received". workflow
  • Setting "When a http request is received" action
    1. Click to the action.
    2. The left side property window opens, click "User simple payload to generate schema"
    3. Use the copy the request content and paste in the sample json payload.
    4. click done.
    5. Save the workflow. workflow step
  • Once you save the workflow in the workflow home page you able to see the workflow Url. trigger url
  • modify the actual webhook url. Copy above workflow url and update the url action section.
    1. update Url point number 1.
    2. Click test button again. action
  • Navigate to the logic app workflow and see the history.
    1. Click to the workflow and select the example 1 workflow.
    2. Click to the history tab. action
    3. Click the link you will able to see the last run see the request and response body. action