From d5bfcc4dad054eaf02bf1aa7aa3e22207ab33970 Mon Sep 17 00:00:00 2001 From: Dvir Naim <106969883+dvir-ms@users.noreply.github.com> Date: Thu, 7 Sep 2023 14:52:37 +0300 Subject: [PATCH 1/2] Update sapcon-sentinel-ui-agent-kickstart.sh --- Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh b/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh index da2daa00203..aeb304cc3ce 100644 --- a/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh +++ b/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh @@ -61,6 +61,10 @@ while [[ $# -gt 0 ]]; do APPID="$2" shift 2 ;; + --hostnetwork) + HOSTNETWORK=1 + shift 1 + ;; --appsecret) APPSECRET="$2" shift 2 @@ -424,7 +428,9 @@ elif [ "$MODE" == "kvsi" ]; then log "Creating agent and configuring to use Azure Key vault and application authentication" cmdparams+=" -e AZURE_CLIENT_ID=$APPID -e AZURE_CLIENT_SECRET=$APPSECRET -e AZURE_TENANT_ID=$TENANT" fi - +if [ $HOSTNETWORK ]; then + cmdparams+=" --network host" +fi sudo docker create -v "$sysfileloc":/sapcon-app/sapcon/config/system $cmdparams --name "$containername" $dockerimage$tagver >/dev/null log 'Created Microsoft Sentinel SAP agent '"$AGENTNAME" From d0a9fa4af02a08e01330cc6c9f559a665ebbd4e1 Mon Sep 17 00:00:00 2001 From: Dvir Naim <106969883+dvir-ms@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:30:03 +0300 Subject: [PATCH 2/2] Update sapcon-sentinel-ui-agent-kickstart.sh --- Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh b/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh index aeb304cc3ce..9e9187f3301 100644 --- a/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh +++ b/Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh @@ -136,6 +136,7 @@ while [[ $# -gt 0 ]]; do echo "--keymode [kvmi|kvsi]" echo "--configpath " echo "--sdk " + echo "--hostnetwork" echo "--network " echo "--appid " echo "--appsecret "