Configure a Webhook in Microsoft Azure

In Azure, a webhook is a trigger mechanism used to invoke background tasks such as:

  • Runbooks in Azure Automation

  • Web jobs in Web Apps or Service Fabric

  • Serverless tasks via Azure Functions

A common use case involves triggering runbooks in Azure Automation. These runbooks can be started externally using HTTP POST requests to a webhook URI generated by Azure.

Example: A developer’s app running on Azure or any internet-enabled platform can POST to the webhook URI, initiating an automation runbook in Azure.


Create a Webhook API Token from ARM

  1. Log into ARM.

  2. Navigate to Admin Section > API Token.

  3. Click Create API Token.

  1. Enter a Token Name.

  2. Select Type as webhook.

  3. (Optional) Add a Description.

  4. Click Create Option.

  1. Your webhook API token is now created.


Create Webhook with Authentication on Azure

  1. Open the Service Hooks page of your project:

  1. Click Create Subscription.

  2. In the wizard, select the target service for integration.

  1. Click Next to select an event trigger and configure filters if needed.

  1. Enter the Payload URL:

Example: https://login.autorabit.com/api/webhook/v2/autorabit.com/trigger-scm-push-request

  1. Configure Basic Authentication:

  • Username: ARM login username

  • Password: Webhook API token generated in ARM

Note: To trigger webhooks for events like Pull Request Created or Pull Request Updated, use the same URL and authentication method described above.

  1. Review and test the configuration, then complete the wizard.

  1. Click Finish. The configured webhook will appear under Service Hooks.

  1. After the webhook triggers a build and it completes, refresh the Service Hooks tab to confirm success. Review webhook history for trigger count and success/failure status.


For Enterprise Customers

Use the following endpoints: /api/webhook/v2//enterprise/trigger-scm-push-request /api/webhook/v2//enterprise/sync-alm-commits

Last updated

Was this helpful?