Skip to content

Commit

Permalink
Merge pull request #8963 from Azure/dvir-ms-patch-12
Browse files Browse the repository at this point in the history
Update sapcon-sentinel-ui-agent-kickstart.sh
  • Loading branch information
v-atulyadav authored Sep 7, 2023
2 parents aea89e0 + d0a9fa4 commit c5a588f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Solutions/SAP/sapcon-sentinel-ui-agent-kickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ while [[ $# -gt 0 ]]; do
APPID="$2"
shift 2
;;
--hostnetwork)
HOSTNETWORK=1
shift 1
;;
--appsecret)
APPSECRET="$2"
shift 2
Expand Down Expand Up @@ -132,6 +136,7 @@ while [[ $# -gt 0 ]]; do
echo "--keymode [kvmi|kvsi]"
echo "--configpath <path>"
echo "--sdk <filename>"
echo "--hostnetwork"
echo "--network <network>"
echo "--appid <guid>"
echo "--appsecret <secret>"
Expand Down Expand Up @@ -424,7 +429,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"
Expand Down

0 comments on commit c5a588f

Please sign in to comment.