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
This terraform script will provide all resources to setup an integration with Sentinel and Log Analytics Workspace.
4
+
5
+
This terraform script will provision following resources:
6
+
7
+
- Resource group
8
+
- Log Analytics Workspace
9
+
- Data Collection Endpoint
10
+
- Data Collection Rule
11
+
12
+
This script can be used to provision a custom environment and is used for CI testing.
13
+
14
+
For more information visit the documentation in the [stackrox repo's Sentinel notifier](https://github.com/stackrox/stackrox/tree/master/central/notifiers/microsoftsentinel).
15
+
16
+
## Quick start
17
+
18
+
Requirements:
19
+
20
+
- Install azcli
21
+
- Authenticating via a [Service Principal](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret)
22
+
- Access to the Microsoft Azure StackRox tenant
23
+
- Access to bitwarden
24
+
25
+
```
26
+
# Login into Azure, select the subscription.
27
+
$ az login
28
+
29
+
$ export ARM_SUBSCRIPTION_ID="<id>"
30
+
$ export ARM_CLIENT_SECRET="<password>"
31
+
$ export ARM_TENANT_ID="<tenant_id>"
32
+
$ export ARM_CLIENT_ID="<client_d>"
33
+
34
+
$ terraform init
35
+
$ terraform fmt
36
+
$ terraform validate
37
+
$ terraform apply
38
+
```
39
+
40
+
For later reference example Data Collection Rule configuration: https://github.com/hashicorp/terraform-provider-azurerm/blob/main/examples/azure-monitoring/data-collection-rule/main.tf
41
+
42
+
### Create a service principal
43
+
44
+
In case you need a new service principal you can run the command below. Please only use this if you are
45
+
sure you need new credentials. Make sure to save them in bitwarden.
46
+
47
+
```
48
+
# Create a service principal for authentication
49
+
$ az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/$ARM_SUBSCRIPTION_ID"
0 commit comments