Skip to content

Commit dfd81f1

Browse files
committed
Auto-update documentation
1 parent d16c707 commit dfd81f1

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

articles/sentinel/sap/update-sap-data-connector.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Update Microsoft Sentinel's SAP data connector agent | Microsoft Docs
2+
title: Update Microsoft Sentinel's SAP data connector agent
33
description: This article shows you how to update an already existing SAP data connector to its latest version.
44
author: MSFTandrelom
55
ms.author: andrelom
@@ -13,7 +13,38 @@ This article shows you how to update an already existing Microsoft Sentinel for
1313

1414
If you have a Docker container already running with an earlier version of the SAP data connector, run the SAP data connector update script to get the latest features available.
1515

16-
## Update SAP data connector agent
16+
You can choose to [enable auto-update](#automatically-update-the-sap-data-connector-agent) the SAP data connector agent when a new version of the SAP agent is available, or [manually update the agent](#manually-update-sap-data-connector-agent).
17+
18+
## Automatically update the SAP data connector agent
19+
20+
You can choose to enable automatic updates for the connector agent on [all existing containers](#enable-automatic-updates-on-all-existing-containers) or a [specific container](#enable-automatic-updates-on-a-specific-container).
21+
22+
### Enable automatic updates on all existing containers
23+
24+
To enable automatic updates on all existing containers, run the following command:
25+
26+
```
27+
wget -O sapcon-sentinel-auto-update.sh https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/Solutions/SAP/sapcon-sentinel-auto-update.sh && bash ./sapcon-sentinel-auto-update.sh
28+
```
29+
30+
The command creates a cron job that runs daily and checks for updates. If the job detects a new version of the agent, it updates the agent on all containers that exist when you run the command above. This includes containers in a Preview version. If you add containers after you run the command, the new containers are not automatically updated.
31+
32+
To update additional containers, in the */opt/sapcon/[SID or Agent GUID]/settings.json* file, define the `auto_update` parameter for each of the containers as `true`.
33+
34+
The logs for this update are under *var/log/sapcon-sentinel-register-autoupdate.log/*.
35+
36+
### Enable automatic updates on a specific container
37+
38+
To enable automatic updates on a specific container, run the following command on the container on which you want to enable auto-update:
39+
40+
```
41+
wget -O sapcon-sentinel-auto-update.sh https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/Solutions/SAP/sapcon-sentinel-auto-update.sh && bash ./sapcon-sentinel-auto-update.sh --containername <containername> [--containername <containername>]...
42+
```
43+
44+
The logs for this update are under */var/log/sapcon-sentinel-register-autoupdate.log*.
45+
46+
47+
## Manually update SAP data connector agent
1748

1849
Make sure that you have the most recent versions of the relevant deployment scripts from the Microsoft Sentinel GitHub repository.
1950

0 commit comments

Comments
 (0)