You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sentinel/data-connectors/github-using-webhooks-using-azure-function.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,11 +108,14 @@ If you're already signed in, go to the next step.
108
108
109
109
1. In the Function App, select the Function App Name and select **Configuration**.
110
110
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**.
116
119
117
120
118
121
**Post Deployment steps**
@@ -133,7 +136,8 @@ If you're already signed in, go to the next step.
133
136
2. Click on Settings.
134
137
3. Click on "Webhooks" and enter the function app url which was copied from above STEP 1 under payload URL textbox.
135
138
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"
137
141
138
142
139
143
*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