Skip to content

Commit 87167cf

Browse files
committed
Incorp changes from public PR 112459 / ansereb
1 parent 0f0dced commit 87167cf

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

articles/sentinel/data-connectors/github-using-webhooks-using-azure-function.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,14 @@ If you're already signed in, go to the next step.
108108

109109
1. In the Function App, select the Function App Name and select **Configuration**.
110110
2. In the **Application settings** tab, select ** New application setting**.
111-
3. Add each of the following application settings individually, with their respective string values (case-sensitive):
112-
WorkspaceID
113-
WorkspaceKey
114-
logAnalyticsUri (optional) - Use logAnalyticsUri to override the log analytics API endpoint for dedicated cloud. For example, for public cloud, leave the value empty; for Azure GovUS cloud environment, specify the value in the following format: `https://<CustomerId>.ods.opinsights.azure.us`.
115-
4. Once all application settings have been entered, click **Save**.
111+
3. Add each of the following application settings individually, with their respective string values (case-sensitive):
112+
113+
- WorkspaceID
114+
- WorkspaceKey
115+
- logAnalyticsUri (optional) - Use logAnalyticsUri to override the log analytics API endpoint for dedicated cloud. For example, for public cloud, leave the value empty; for Azure GovUS cloud environment, specify the value in the following format: `https://<CustomerId>.ods.opinsights.azure.us`.
116+
- GithubWebhookSecret (optional) - To enable webhook authentication generate a secret value and store it in this setting.
117+
118+
1. Once all application settings have been entered, click **Save**.
116119

117120

118121
**Post Deployment steps**
@@ -133,7 +136,8 @@ If you're already signed in, go to the next step.
133136
2. Click on Settings.
134137
3. Click on "Webhooks" and enter the function app url which was copied from above STEP 1 under payload URL textbox.
135138
4. Choose content type as "application/json".
136-
5. Subscribe for events and Click on "Add Webhook"
139+
1. (Optional) To enable webhook authentication, add to the "Secret" field value you saved to GithubWebhookSecret from Function App settings.
140+
1. Subscribe for events and click on "Add Webhook"
137141

138142

139143
*Now we are done with the GitHub Webhook configuration. Once the GitHub events triggered and after the delay of 20 to 30 mins (As there will be a dealy for LogAnalytics to spin up the resources for the first time), you should be able to see all the transactional events from the GitHub into LogAnalytics workspace table called "githubscanaudit_CL".*

0 commit comments

Comments
 (0)