I am writing a script for PowerShell but I am running into an error when trying to install the collector from the CLI. I am issuing this command:
c:\windows\temp\SumoCollector.exe -q -console -Vsumo.accessid=xxxxxxxxxxxx -Vsumo.accesskey=xxxxxxxxxxxxxxxxxxxxx -Vcollector.name="$TAG_VALUE - $INSTANCE_ID"
I have tried using quotes around the access key. I keep getting this error:
Missing credentials in quiet mode installation. Please reinstall with credentials
Here are a couple of sample CLI commands that will resolve the issue. Be sure to customize the command to your specific use case:
Start-Process "C:\Deployment\Installers\SumoCollector.exe" "-console -q -Vsumo.accessid=<id> -Vsumo.accesskey=<key>" -Wait
cmd.exe /C '"C:\Deployment\Installers\SumoCollector.exe" -console -q -Vsumo.accessid=<id> -Vsumo.accesskey=<key>'