Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Azure webhook infrastructure for high availability of the webhook functionality that means if Insights is down for sometime, payloads from devops tools should not be missed.

...

Expand
titleStep 2: Azure Functions
  • Fill the required details:

    • Basics

      • Choose Subscription and Resource Group.

      • Function App name: InsightsWebhookHandler

      • Publish: Code

      • Runtime stack: Java

      • Choose Region where your storage account is created.

    • Monitoring

      • Select insightswebhookstorage option in Storage account.

      • Operating System: Windows

      • Choose Plan type as per needs.

    • Monitoring

      • Enable Application Insights: Yes

      • Application Insights: Create New

    • Click on Review+ Create button and then review the filled details and click on create.

    • After clicking create button, a new page will be opened where you can see your function app deployment. Deployment will take approx. 2-3 minutes to complete.

    • After completing deployment, click on Go to Resource button to go inside function app.

    • Please reference to the images given below:

  • Click on configuration under configured features

  • Click on + New application setting button

  • Fill the name and values and click OK. Repeat this step for all the values of the table given below and click on Save button.

  • Copy the values from the notepad we stored before while setting up azure storage.

Note: Please do not change the Application Setting Name while adding application settings.

Name

Value

1

WEBSITE_RUN_FROM_PACKAGE

<Zip_URL>

2

StorageEndpoint

< Blob Service Endpoint>

3

StorageAccountName

< Storage account name>

4

StorageAccountKey

< Key>

5

WebhookEventContainer

< WebhookEventContainer>

6

FailedEventContainer

< FailedEventContainer>

7

TimerInterval(Every One Hour)

0 0 * * * *

Expand
titleStep 3: API Management

  • Fill the required details and click create button.

  • Click on APIs link from left menu.

  • Click on +Add API link and click on Function App from the given templates.

  • Follow the steps to create API:–

    • Select function app.

      • Click on browse.

      • Click on Function App

      • Select function and click select on right bottom.

      • Click select on left bottom to return to API configuration page.

    • Change the API URL suffix to “function”

    • Click create button.

  • Click on InsightsWebhookHandler API and then click on POST operation (automatically added) under all operations. After that, Post operation will be shown in the Frontend section.

  • Click on the highlighted part given in the image.

  • Click on Query tab and then click on + Add parameter link.

    • name = endpoint

    • Type = string

    • Tick Required checkbox

    • Click on Save button

  • Go to Settings tab in the API and unselect Subscription required and click Save button.

...